simulation_framework::standalone_activity_service::StandaloneActivityService Class Reference
Last update: 16.07.2025It provides a running process of desired activity returned by interface IStandaloneActivityCreator and keeps it communicating and being scheduled by simulation framework core process. More...
#include <standalone_activity_service.h>
Public Member Functions | |
| StandaloneActivityService (std::unique_ptr< IStandaloneActivityCreator > standalone_activity_creator) | |
| int | Run () |
| Start the Standalone Activity service and keep it alive waiting for standalone request on this Activity from simfwk core process (simfwk_cli) More... | |
Detailed Description
It provides a running process of desired activity returned by interface IStandaloneActivityCreator and keeps it communicating and being scheduled by simulation framework core process.
If you have implemented my_activity_creator.h of interface IStandaloneActivityCreator based on example in simfwk-core/service/standalone_activity_service/standalone_activity_creator/i_standalone_activity_creator.h, then you can create an executable using this class, which runs your desired activity as service, keep talking and being scheduled by simfwk_cli.
This example shows how to implement this process and join the simulation from standalone
Constructor & Destructor Documentation
◆ StandaloneActivityService()
| simulation_framework::standalone_activity_service::StandaloneActivityService::StandaloneActivityService | ( | std::unique_ptr< IStandaloneActivityCreator > | standalone_activity_creator | ) |
Construct an Standalone Activity as Service to join simulation standalonely
- Parameters
-
standalone_activity_creator An interface defines how the activity should be instanciated
Member Function Documentation
◆ Run()
| int simulation_framework::standalone_activity_service::StandaloneActivityService::Run | ( | ) |
Start the Standalone Activity service and keep it alive waiting for standalone request on this Activity from simfwk core process (simfwk_cli)
- Returns
- Programm return code which indicates whether the Standalone Activity is healthy
The documentation for this class was generated from the following file: