Skip to main content

AVxcelerate Simulation Framework 2025 R2

i_simulation_instance

Last update: 16.07.2025
1
5
6#pragma once
7
8#include <chrono>
9#include <memory>
10
16{
17namespace core
18{
19namespace lifecycle
20{
21
23
28{
29 public:
30 virtual ~ISimulationInstance() = default;
31
33 virtual void StepOnce() = 0;
34
36 virtual void Reset() = 0;
37
39 virtual void Init() = 0;
40
42 virtual bool IsSimulationFinished() = 0;
43
45 virtual std::chrono::milliseconds GetSimulationDuration() const = 0;
46
49 virtual std::chrono::milliseconds GetSimulationBaseCycleTime() const = 0;
50};
51
52} // namespace lifecycle
53} // namespace core
54} // namespace simulation_framework
virtual std::chrono::milliseconds GetSimulationDuration() const =0
return the duration of the simulation in milliseconds
virtual void Reset()=0
provides the reset to SimRunner to let the simulation back to init state
virtual void StepOnce()=0
Step the simulation based on base cycle time.
virtual void Init()=0
Initialize based on user config and turn the instance to ready state.
virtual std::chrono::milliseconds GetSimulationBaseCycleTime() const =0
return the base cycle time of the simulation in milliseconds, which usually is the greatest common di...
virtual bool IsSimulationFinished()=0
indicates whether this run if simulation reaches the end
The namespace for all core functionalities under namespace simulation_framework.
The top namespace for simulation framework.

Connect with Ansys