Implementation of SimulationManager which manages an FTILoop. More...
#include <simulation_manager_fti.h>
Public Member Functions | |
| FTILoopSimManager (const jsonSharedPtr &simulationConfig, const EngineLauncherManagerConstSharedPtr &engineLauncherManager, const MainProcessLauncherManager::const_shared_ptr &processLauncherManager) | |
| Constructor. More... | |
| ~FTILoopSimManager () | |
| Destructor. Will shutdown the simulation if it was initialized. More... | |
| bool | hasSimulationTimedOut () const override |
Public Member Functions inherited from SimulationManager | |
| SimulationManager (const jsonSharedPtr &simulationConfig) | |
| Constructor. More... | |
| SimulationManager ()=delete | |
| virtual | ~SimulationManager ()=default |
| RequestResult | initializeSimulation () |
| Initialize the simulation. More... | |
| RequestResult | resetSimulation () |
| Reset the currently running simulation. More... | |
| RequestResult | stopSimulation () |
| Request to stop the simulation if it was running, if it wasn't the call has no effect. More... | |
| RequestResult | runSimulationUntilDoneOrTimeout () |
| Runs the simulation until a separate thread stops it or simTimeout (defined in SimulationConfig) is reached. If simTimeout is zero or negative, ignore it. More... | |
| RequestResult | runSimulation (unsigned numIterations) |
| Run the Simulation for specified amount of timesteps. More... | |
| RequestResult | shutdownSimulation () |
| Shuts down the simulation. More... | |
| SimState | currentState () |
| returns the current state of the simulation More... | |
| std::string | printSimState (const SimState &simState) |
| returns a simulation state as a string More... | |
| SimulationDataManager & | getSimulationDataManager () |
Additional Inherited Members | |
Public Types inherited from SimulationManager | |
| enum | SimState { SimState::Created, SimState::Initialized, SimState::Running, SimState::Stopped, SimState::Failed, SimState::NotSet } |
| States the simulation can be in. More... | |
Public Types inherited from PtrTemplates< SimulationManager > | |
| using | shared_ptr = std::shared_ptr< SimulationManager > |
| using | const_shared_ptr = std::shared_ptr< const SimulationManager > |
| using | unique_ptr = std::unique_ptr< SimulationManager > |
| using | const_unique_ptr = std::unique_ptr< const SimulationManager > |
Static Public Member Functions inherited from SimulationManager | |
| static void | validateConfig (jsonSharedPtr &config) |
| Validates config against Simulation schema. More... | |
Protected Attributes inherited from SimulationManager | |
| jsonSharedPtr | _simConfig |
| Simulation Configuration. More... | |
| SimulationDataManager | _simulationDataManager |
| SimulationTime | _simTimeout = SimulationTime::zero() |
Implementation of SimulationManager which manages an FTILoop.
| FTILoopSimManager::FTILoopSimManager | ( | const jsonSharedPtr & | simulationConfig, |
| const EngineLauncherManagerConstSharedPtr & | engineLauncherManager, | ||
| const MainProcessLauncherManager::const_shared_ptr & | processLauncherManager | ||
| ) |
Constructor.
| simulationConfig | Simulation configuration |
| engineLauncherManager | Engine launchers |
| processLaunchers | Process launchers |
| FTILoopSimManager::~FTILoopSimManager | ( | ) |
Destructor. Will shutdown the simulation if it was initialized.
|
overridevirtual |
Implements SimulationManager.