simulation_framework::core::lifecycle::ISimulationInstance Class Reference
Last update: 19.09.2025class ISimulationInstance More...
#include <i_simulation_instance.h>

Public Member Functions | |
| virtual void | StepOnce ()=0 |
| Step the simulation based on base cycle time. | |
| virtual void | Reset ()=0 |
| provides the reset to SimRunner to let the simulation back to init state | |
| virtual void | Init ()=0 |
| Initialize based on user config and turn the instance to ready state. | |
| virtual bool | IsSimulationFinished ()=0 |
| indicates whether this run if simulation reaches the end | |
| virtual std::chrono::milliseconds | GetSimulationDuration () const =0 |
| return the duration of the simulation in milliseconds | |
| virtual std::chrono::milliseconds | GetSimulationBaseCycleTime () const =0 |
| return the base cycle time of the simulation in milliseconds, which usually is the greatest common divisor of all activity cycle times | |
Detailed Description
class ISimulationInstance
ISimulationInstance defines the common interface for a Simulation Instance which needs to be controlled by SimRunner
Definition at line 24 of file i_simulation_instance.h.
Member Function Documentation
◆ GetSimulationBaseCycleTime()
|
pure virtual |
return the base cycle time of the simulation in milliseconds, which usually is the greatest common divisor of all activity cycle times
Implemented in simulation_framework::core::lifecycle::SimulationInstance.
◆ GetSimulationDuration()
|
pure virtual |
return the duration of the simulation in milliseconds
Implemented in simulation_framework::core::lifecycle::SimulationInstance.
◆ Init()
Initialize based on user config and turn the instance to ready state.
Implemented in simulation_framework::core::lifecycle::SimulationInstance.
◆ IsSimulationFinished()
|
pure virtual |
indicates whether this run if simulation reaches the end
Implemented in simulation_framework::core::lifecycle::SimulationInstance.
◆ Reset()
provides the reset to SimRunner to let the simulation back to init state
Implemented in simulation_framework::core::lifecycle::SimulationInstance.
◆ StepOnce()
Step the simulation based on base cycle time.
Implemented in simulation_framework::core::lifecycle::SimulationInstance.
The documentation for this class was generated from the following file: