|
|
| Simulation () |
| | Default constructor for a Simulation instance. Initializes the simulation with the default logger.
|
| |
| | Simulation (const std::string &log_name) |
| | Constructs a Simulation with a specified logger.
|
| |
| | Simulation (const std::string &log_name, const std::string &log_filepath) |
| | Constructs a Simulation with a specified logger and log file.
|
| |
|
| ~Simulation ()=default |
| | Virtual destructor for polymorphic cleanup.
|
| |
| | Simulation (const Simulation &other) |
| | Copy constructor creating an independent deep copy of the simulation. All models are cloned; modifications to the copy do not affect the original.
|
| |
| Simulation & | operator= (const Simulation &other) |
| | Copy assignment operator for deep copying simulation state.
|
| |
| | Simulation (Simulation &&other) noexcept |
| | Move constructor for transferring simulation ownership.
|
| |
| Simulation & | operator= (Simulation &&other) noexcept |
| | Move assignment operator for transferring simulation ownership.
|
| |
| std::unique_ptr< Model > | CreateNewModel (const std::string &model_name) |
| | Creates a new model instance and adds it to the simulation.
|
| |
|
void | ClearModels () |
| | Removes all models from the simulation.
|
| |
| void | AddModel (const std::unique_ptr< Model > &model) |
| | Adds a model to the simulation. The model is cloned and managed by the simulation.
|
| |
|
void | Run (int duration=-1) |
| | Executes one step of the simulation for all models. Calls RunTransitions() on each registered model in sequence.
|
| |
| std::vector< std::unique_ptr< Model > > | GetModels () const |
| | Retrieves all models in the simulation.
|
| |
| ModelSlotProxy | operator[] (size_t idx) |
| | Mutable index-based model access.
|
| |
| const Model & | operator[] (size_t idx) const |
| | Const index-based model access.
|
| |
| std::map< size_t, std::string > | GetModelIndexNameMap () const |
| | Provide a mapping of model indices to their names for all models in the simulation.
|
| |
| std::unique_ptr< Model > | GetModel (int idx) const |
| | Retrieves a specific model by index in the simulation.
|
| |
| std::vector< std::string > | GetModelNames () const |
| | Retrieves the names of all models in the simulation.
|
| |
| const std::map< std::string, History > & | GetModelHistory (size_t idx) const |
| | Retrieves the complete state histories for the model at the index.
|
| |
| const std::vector< std::string > | GetModelHistoryNames (size_t idx) const |
| | Retrieves history names for the model at the specified index.
|
| |
|
void | SetDuration (int duration) |
| |