Skip to main content

AVxcelerate Simulation Framework 2025 R2 SP02

sim_runner

Last update: 19.09.2025
1
3
4#pragma once
5
6#include "core/lifecycle/i_simulation_instance/i_simulation_instance.h"
7#include "core/service/sim_runner/i_sim_runner.h"
8#include <memory>
9
15{
16namespace core
17{
18
19class SimRunnerImpl;
20
27{
28 public:
31
34 explicit SimRunner(std::unique_ptr<lifecycle::ISimulationInstance> sim_instance);
35
39 StateFeedback Run() override;
40
44 StateFeedback Pause() override;
45
50
54 StateFeedback StepN(int n) override;
55
59 StateFeedback Stop() override;
60
64
67 SimState GetSimulationState() const;
68
73
75 void RunOverSimulation() override;
76
77 private:
79 std::unique_ptr<SimRunnerImpl> impl_;
80};
81
82} // namespace core
83} // namespace simulation_framework
Interface for controlling and managing simulation execution.
Simulation runner with external control logic.
Definition sim_runner.h:27
StateFeedback Resume() override
Resumes the simulation.
StateFeedback Stop() override
Stops the simulation immediately.
StateFeedback Pause() override
Pauses the simulation.
void RunOverSimulation() override
Runs the simulation until it ends without accepting further commands.
StateFeedback Terminate() override
Terminates the simulation.
~SimRunner()
Destructor for SimRunner.
SimRunner(std::unique_ptr< lifecycle::ISimulationInstance > sim_instance)
Constructs a SimRunner with a simulation instance.
StateFeedback StepN(int n) override
Steps the simulation forward by a specified number of frames.
StateFeedback Run() override
Executes the simulation and changes the state to kRunning.
SimState GetSimulationState() const
Retrieves the current state of the simulation.
uint64_t GetExecutedStepCount() const
Retrieves the number of executed simulation steps.
This is the concrete Topic class that can be used for creation of a communication channel with given ...
Definition topic.h:38
The namespace for all core functionalities under namespace simulation_framework.
The top namespace for simulation framework.
Represents feedback for the execution status of a control command.

Connect with Ansys