RTC Toolkit
2.0.0
|
Implements the Telemetry Subscriber business logic. More...
#include <businessLogic.hpp>
Public Types | |
using | ComponentType = LifeCycle |
using | OperationalLogicFactory = std::function< std::unique_ptr< OperationalLogicIf >(OperationalLogicFactoryParams const &)> |
Protected Member Functions | |
template<typename T > | |
void | GetParam (const rtctk::componentFramework::DataPointPath &path, T &value) |
Helper method to fetch and log datapoint values loaded from the Runtime Repository. More... | |
template<typename T > | |
bool | GetOptionalParam (const rtctk::componentFramework::DataPointPath &path, T &value) |
Helper method similar to GetParam, except no exceptions are thrown if the path does not exit and the value is not modified. More... | |
std::optional< numapp::NumaPolicies > | LoadNumaPolicies (const rtctk::componentFramework::DataPointPath &path) |
Helper method that builds full path and logs loaded configuration. More... | |
Protected Attributes | |
std::string | m_name |
rtctk::componentFramework::RuntimeRepoIf & | m_rtr |
OperationalLogicFactory | m_operational_logic_factory |
std::unique_ptr< OperationalLogicIf > | m_operational_logic |
Operational logic constructed during Initialization with parameters from configuration. More... | |
Implements the Telemetry Subscriber business logic.
using rtctk::telSub::BusinessLogic::OperationalLogicFactory = std::function<std::unique_ptr<OperationalLogicIf>(OperationalLogicFactoryParams const&)> |
BusinessLogic::BusinessLogic | ( | const std::string & | name, |
componentFramework::ServiceContainer & | services, | ||
OperationalLogicFactory | factory | ||
) |
|
override |
|
override |
Main tasks:
|
overridevirtual |
Main tasks:
Reimplemented from rtctk::componentFramework::Runnable< Super >::BizLogicIf.
|
overridevirtual |
Main tasks:
Reimplemented from rtctk::componentFramework::Runnable< Super >::BizLogicIf.
|
override |
Main tasks:
|
overridevirtual |
TBC if we have anything to do here.
Reimplemented from rtctk::componentFramework::Runnable< Super >::BizLogicIf.
|
override |
Deletes the operational logic if the object exists.
When the Reset command is received and the Starting activity is executed, we need to delete the operational logic object that might already exist, because the component has already been initialised. If the component is starting for the first time then there is nothing to do.
st | This parameter is ignored. |
|
override |
TBD what, if anything can be updated? I can't think of anything that does not require reinitialization.
|
inlineprotected |
Helper method similar to GetParam, except no exceptions are thrown if the path does not exit and the value is not modified.
true
if the datapoint exists and false
otherwise.
|
inlineprotected |
Helper method to fetch and log datapoint values loaded from the Runtime Repository.
|
override |
|
protected |
Helper method that builds full path and logs loaded configuration.
|
protected |
|
protected |
Operational logic constructed during Initialization with parameters from configuration.
|
protected |
|
protected |