Skip to main content

AVxcelerate Simulation Framework 2025 R2 SP02

simulation_framework::core::IStandaloneActivityCreator Class Reference

Last update: 19.09.2025

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. More...

#include <i_standalone_activity_creator.h>

Public Member Functions

virtual std::string GetName ()=0
 
virtual std::unique_ptr< core::lifecycle::IActivityCreate (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"

{
public:
MyActivityCreator(const std::string& name) : standalone_activity_name_(name) {}
std::unique_ptr<IActivity> Create(const core::StandaloneInitData& standalone_init_data)
override
{
std::shared_ptr<ITopic> topic_going_to_publish = std::make_shared<TopicToBePublished>("TopicToBePublished");
std::shared_ptr<ITopic> topic_want_to_receive = std::make_shared<TopicSubscribingOn>("TopicSubscribingOn");
return std::make_unique<MyActivity>(
}
std::string GetName() override { return standalone_activity_name_; }
private:
std::string standalone_activity_name_;
};
This is the interface class for creating a standalone activity service. It defines how a customized a...
This is the concrete Topic class that can be used for creation of a communication channel with given ...
Definition topic.h:38

Definition at line 55 of file i_standalone_activity_creator.h.

Member Function Documentation

◆ Create()

virtual std::unique_ptr< core::lifecycle::IActivity > simulation_framework::core::IStandaloneActivityCreator::Create ( const core::StandaloneInitData &  standalone_init_data)
pure virtual

Create an std::unique_ptr<IActivity> which will be scheduled remotely through scheduling event.

Parameters
standalone_init_dataThe 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()

virtual std::string simulation_framework::core::IStandaloneActivityCreator::GetName ( )
pure virtual
Returns
the name of this standalone activity

The documentation for this class was generated from the following file:

Connect with Ansys