Abstract base class representing a state transition model. Models manage a state vector, execute transitions, and maintain history of state changes. Subclasses must implement state management, transition execution, and history tracking.
|
|
virtual | ~Model ()=default |
| | Virtual destructor for proper polymorphic cleanup.
|
| |
| virtual void | SetState (const Eigen::VectorXd &state)=0 |
| | Sets the current state of the model.
|
| |
| virtual Eigen::VectorXd | GetState () const =0 |
| | Retrieves the current state of the model.
|
| |
|
virtual void | RunTransitions ()=0 |
| | Executes all registered transitions on the current state. Transitions are applied in the order they were added and may modify history.
|
| |
| virtual void | AddTransition (const std::unique_ptr< Transition > &t)=0 |
| | Adds a transition to the model.
|
| |
| virtual std::vector< std::string > | GetTransitionNames () const =0 |
| | Retrieves the names of all registered transitions.
|
| |
|
virtual void | ClearTransitions ()=0 |
| | Clears all registered transitions. Deletes all stored Transition unique_ptrs.
|
| |
| virtual std::map< std::string, History > | GetHistories () const =0 |
| | Retrieves the history records for all state variables.
|
| |
|
virtual void | CreateDefaultHistories ()=0 |
| | Creates default history tracking for the model. This method initializes standard history records based on the model's state.
|
| |
| virtual void | SetHistories (const std::map< std::string, History > &h)=0 |
| | Sets the history records for the model.
|
| |
|
virtual void | ClearHistories ()=0 |
| | Clears all history records and resets history tracking state.
|
| |
| virtual void | SetHistoryCaptureInterval (int interval)=0 |
| | Sets the global history capture interval for this model.
|
| |
| virtual int | GetHistoryCaptureInterval () const =0 |
| | Retrieves the global history capture interval.
|
| |
| virtual void | SetFinalTimestep (int final_timestep)=0 |
| | Sets the final timestep that must always be recorded.
|
| |
| virtual int | GetFinalTimestep () const =0 |
| | Retrieves the final timestep forced into history output.
|
| |
| virtual std::string | GetModelName () const =0 |
| | Retrieves the name identifier for this model.
|
| |
| virtual std::string | GetLogName () const =0 |
| | Retrieves the logger name used by this model.
|
| |
|
| Model (const Model &)=delete |
| | Deleted copy constructor (models are non-copyable by public API).
|
| |
|
Model & | operator= (const Model &)=delete |
| | Deleted copy assignment operator (models are non-copyable by public API).
|
| |
| virtual std::unique_ptr< Model > | clone () const =0 |
| | Creates a deep copy of this model.
|
| |