Skip to main content
Factory class for creating activities for autonomy simulation. #include <activity_factory.h> Inheritance diagram for simulation_framework::autonomy::ActivityFactory: Inheritance graph [legend] Collaboration diagram for simulation_framework::autonomy::ActivityFactory: Collaboration graph [legend]

Public Member Functions

Public Member Functions inherited from simulation_framework::core::lifecycle::IActivityFactory

Detailed Description

Factory class for creating activities for autonomy simulation. The ActivityFactory implements the IActivityFactory interface to provide mechanisms for creating and managing simulation activities. It supports creating both generic and FMU-based activities, allowing for flexible integration into various simulation workflows. The class also manages the base cycle time for the simulation, which can be retrieved or modified as needed. See also core::lifecycle::IActivityFactory, core::lifecycle::IActivity, core::SimulationParameters

Constructor & Destructor Documentation

ActivityFactory()

Constructs an ActivityFactory instance. Initializes the factory with the simulation parameters and an optional base cycle time. Parameters

Member Function Documentation

Create()

override virtual Creates a simulation activity. Generates a simulation activity based on the provided name and scheduler client type. The activity is returned as a unique pointer for efficient memory management. Parameters Returns A unique pointer to the created core::lifecycle::IActivity instance. Exceptions Implements simulation_framework::core::lifecycle::IActivityFactory.

CreateFmuActivity()

override virtual Creates an FMU-based simulation activity. Generates a simulation activity specific to an FMU (Functional Mock-up Unit), using the provided FMU configuration and scheduler client type. Parameters Returns A unique pointer to the created FMU activity as an IActivity instance. Exceptions Implements simulation_framework::core::lifecycle::IActivityFactory.

GetSimulationBaseCycleTime()

override virtual Retrieves the simulation’s base cycle time. Provides the base cycle time used for scheduling and synchronization in the simulation. Returns The simulation base cycle time in milliseconds. Implements simulation_framework::core::lifecycle::IActivityFactory.

SetSimulationBaseCycleTime()

override virtual Sets the simulation’s base cycle time. Updates the base cycle time used for scheduling and synchronization in the simulation. Parameters Implements simulation_framework::core::lifecycle::IActivityFactory. The documentation for this class was generated from the following file: