Implementation of SimulationManager which manages an EventLoop. More...
#include <simulation_manager_event_loop.h>
Public Member Functions | |
EventLoopSimManager (const jsonSharedPtr &simulationConfig, const EngineLauncherManagerConstSharedPtr &engineLauncherManager, const MainProcessLauncherManager::const_shared_ptr &processLauncherManager) | |
Constructor. More... | |
~EventLoopSimManager ()=default | |
bool | hasSimulationTimedOut () const override |
![]() | |
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 | |
![]() | |
enum | SimState { SimState::Created, SimState::Initialized, SimState::Running, SimState::Stopped, SimState::Failed, SimState::NotSet } |
States the simulation can be in. More... | |
![]() | |
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 void | validateConfig (jsonSharedPtr &config) |
Validates config against Simulation schema. More... | |
![]() | |
jsonSharedPtr | _simConfig |
Simulation Configuration. More... | |
SimulationDataManager | _simulationDataManager |
SimulationTime | _simTimeout = SimulationTime::zero() |
Implementation of SimulationManager which manages an EventLoop.
EventLoopSimManager::EventLoopSimManager | ( | const jsonSharedPtr & | simulationConfig, |
const EngineLauncherManagerConstSharedPtr & | engineLauncherManager, | ||
const MainProcessLauncherManager::const_shared_ptr & | processLauncherManager | ||
) |
Constructor.
simulationConfig | Simulation configuration |
engineLauncherManager | Engine launchers |
processLaunchers | Process launchers |
|
default |
|
inlineoverridevirtual |
Implements SimulationManager.