i_activity
Last update: 19.09.2025This is the concrete Topic class that can be used for creation of a communication channel with given ...
Definition topic.h:38
Interface for simulation activities.
Definition i_activity.h:30
virtual void SetUpCommunication()=0
Sets up the Pub/Sub communication for the activity.
virtual const SimulationParameters::CustomizedParameters & GetCustomizedParameters() const =0
Retrieves the customized parameters for the activity.
virtual void Shutdown()=0
Shuts down the activity.
virtual std::chrono::milliseconds GetCycleTime() const =0
Retrieves the cycle time of the activity.
virtual void WaitForPubSubConnection()=0
Waits until Pub/Sub pairing is complete.
virtual void Step()=0
Executes one step of the activity.
virtual void SetSimulationSettings(const scheduling::SimulationSettings &sim_settings)=0
Set the simulation settings for this activity.
virtual ~IActivity()=default
Virtual destructor for proper cleanup of derived classes.
virtual std::string GetName() const =0
Retrieves the name of the activity.
virtual std::string GetSimulationOutputDirectory() const =0
Retrieves the output directory for simulation results.
virtual void Init()=0
Initializes the activity.
virtual time::Timestamp GetCurrentTimestamp() const =0
Retrieves the current simulation timestamp.
The namespace for all core functionalities under namespace simulation_framework.
The top namespace for simulation framework.
std::unordered_map< std::string, std::string > CustomizedParameters
A definition of customized parameters which simulation could use as input. key is the name of the cus...
Definition simulation_parameters.h:28