Skip to main content

AVxcelerate Simulation Framework 2025 R2 SP02

simulation_framework::core::lifecycle::ISimulationInstance Class Reference

Last update: 19.09.2025

class ISimulationInstance More...

#include <i_simulation_instance.h>

Inheritance diagram for simulation_framework::core::lifecycle::ISimulationInstance:

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()

virtual std::chrono::milliseconds simulation_framework::core::lifecycle::ISimulationInstance::GetSimulationBaseCycleTime ( ) const
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()

virtual std::chrono::milliseconds simulation_framework::core::lifecycle::ISimulationInstance::GetSimulationDuration ( ) const
pure virtual

return the duration of the simulation in milliseconds

Implemented in simulation_framework::core::lifecycle::SimulationInstance.

◆ Init()

virtual void simulation_framework::core::lifecycle::ISimulationInstance::Init ( )
pure virtual

Initialize based on user config and turn the instance to ready state.

Implemented in simulation_framework::core::lifecycle::SimulationInstance.

◆ IsSimulationFinished()

virtual bool simulation_framework::core::lifecycle::ISimulationInstance::IsSimulationFinished ( )
pure virtual

indicates whether this run if simulation reaches the end

Implemented in simulation_framework::core::lifecycle::SimulationInstance.

◆ Reset()

virtual void simulation_framework::core::lifecycle::ISimulationInstance::Reset ( )
pure virtual

provides the reset to SimRunner to let the simulation back to init state

Implemented in simulation_framework::core::lifecycle::SimulationInstance.

◆ StepOnce()

virtual void simulation_framework::core::lifecycle::ISimulationInstance::StepOnce ( )
pure virtual

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:

Connect with Ansys