virtual ~Model();
/** @brief Get the set of [actions](@ref Action) in *ready* state */
- virtual ActionList* getReadyActionSet() const { return readyActionSet_; }
+ ActionList* getReadyActionSet() const { return readyActionSet_; }
/** @brief Get the set of [actions](@ref Action) in *running* state */
- virtual ActionList* getRunningActionSet() const { return runningActionSet_; }
+ ActionList* getRunningActionSet() const { return runningActionSet_; }
/** @brief Get the set of [actions](@ref Action) in *failed* state */
- virtual ActionList* getFailedActionSet() const { return failedActionSet_; }
+ ActionList* getFailedActionSet() const { return failedActionSet_; }
/** @brief Get the set of [actions](@ref Action) in *done* state */
- virtual ActionList* getDoneActionSet() const { return doneActionSet_; }
+ ActionList* getDoneActionSet() const { return doneActionSet_; }
/** @brief Get the set of modified [actions](@ref Action) */
- virtual ActionLmmListPtr getModifiedSet() const { return modifiedSet_; }
+ ActionLmmListPtr getModifiedSet() const;
/** @brief Get the maxmin system of the current Model */
lmm_system_t getMaxminSystem() const { return maxminSystem_; }
virtual bool nextOccuringEventIsIdempotent() { return true; }
protected:
- ActionLmmListPtr modifiedSet_;
lmm_system_t maxminSystem_ = nullptr;
- bool selectiveUpdate_;
private:
e_UM_t updateMechanism_ = UM_UNDEFINED;
- ActionList* readyActionSet_; /**< Actions in state SURF_ACTION_READY */
- ActionList* runningActionSet_; /**< Actions in state SURF_ACTION_RUNNING */
- ActionList* failedActionSet_; /**< Actions in state SURF_ACTION_FAILED */
- ActionList* doneActionSet_; /**< Actions in state SURF_ACTION_DONE */
+ ActionList* readyActionSet_ = new ActionList(); /**< Actions in state SURF_ACTION_READY */
+ ActionList* runningActionSet_ = new ActionList(); /**< Actions in state SURF_ACTION_RUNNING */
+ ActionList* failedActionSet_ = new ActionList(); /**< Actions in state SURF_ACTION_FAILED */
+ ActionList* doneActionSet_ = new ActionList(); /**< Actions in state SURF_ACTION_DONE */
heap_type actionHeap_;
};