simulation_framework::core::IStandaloneActivityCreator Class Reference
Last update: 16.07.2025This is the interface class for creating a standalone activity service. It defines how a customized activity needs to be instantiated through or not through StandaloneInitData. More...
#include <i_standalone_activity_creator.h>
Public Member Functions | |
| virtual std::string | GetName ()=0 |
| virtual std::unique_ptr< core::lifecycle::IActivity > | Create (const core::StandaloneInitData &standalone_init_data)=0 |
| Create an std::unique_ptr<IActivity> which will be scheduled remotely through scheduling event. | |
Detailed Description
This is the interface class for creating a standalone activity service. It defines how a customized activity needs to be instantiated through or not through StandaloneInitData.
You have already the example how you create an activity "MyActivity" in simfwk-core/lifecycle/activity/base_activity.h
This example shows how to implement the IStandaloneActivityCreator interface based on "MyActivity"
Definition at line 54 of file i_standalone_activity_creator.h.
Member Function Documentation
◆ Create()
|
pure virtual |
Create an std::unique_ptr<IActivity> which will be scheduled remotely through scheduling event.
- Parameters
-
standalone_init_data The class contains inputs required for this Standalone Activity. The StandaloneActivityCreator is responsible to decode this properly and use the inputs data for initialization of BaseActivity
- Returns
- A pointer of IActivity interface which will be controlled remotely by simfwk core
◆ GetName()
|
pure virtual |
- Returns
- the name of this standalone activity
The documentation for this class was generated from the following file: