|
RTC Toolkit
0.1.0-alpha
|
#include <businessLogic.hpp>
Public Types | |
| 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) |
| template<typename T > | |
| bool | GetOptionalParam (const rtctk::componentFramework::DataPointPath &path, T &value) |
| std::optional< numapp::NumaPolicies > | LoadNumaPolicies (const rtctk::componentFramework::DataPointPath &path) |
Protected Attributes | |
| rtctk::componentFramework::RuntimeRepoApiIf & | m_rtr |
| OperationalLogicFactory | m_operational_logic_factory |
| std::unique_ptr< OperationalLogicIf > | m_operational_logic |
| Operational logic constructed during Initialization with parameters from configuration. More... | |
Protected Attributes inherited from rtctk::componentFramework::RunnableStateMachineLogic | |
| const std::string & | m_name |
| ServiceContainer & | m_services |
Implements the Telemetry Subscriber business logic.
| using rtctk::telSub::BusinessLogic::OperationalLogicFactory = std::function<std::unique_ptr<OperationalLogicIf>(OperationalLogicFactoryParams const&)> |
| rtctk::telSub::BusinessLogic::BusinessLogic | ( | const std::string & | name, |
| componentFramework::ServiceContainer & | services, | ||
| OperationalLogicFactory | factory | ||
| ) |
|
overridevirtual |
Main tasks:
Requires re-initialization to re-enter Operational.
Reimplemented from rtctk::componentFramework::RunnableStateMachineLogic.
|
overridevirtual |
Main tasks:
Reimplemented from rtctk::componentFramework::RunnableStateMachineLogic.
|
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.
|
overridevirtual |
Main tasks:
Reimplemented from rtctk::componentFramework::RunnableStateMachineLogic.
|
overridevirtual |
Main tasks:
Reimplemented from rtctk::componentFramework::RunnableStateMachineLogic.
|
overridevirtual |
Main tasks:
Reimplemented from rtctk::componentFramework::RunnableStateMachineLogic.
|
overridevirtual |
Guard IsUpdatingAllowed
Guard method to further constrain whether an Update command is allowed to cause an Updating activity or not. Simply set the return value to configure as needed.
| args | Payload, to be able to receive information on what to update |
Reimplemented from rtctk::componentFramework::RunnableStateMachineLogic.
|
protected |
Constructs a NumaPolicies object from the configuration datapoints found under the given datapoint path.
| path | The base path under which configuration datapoints for NUMA policies will be searched. The following sub-paths will be searched:
|
Valid values for the scheduler_policy datapoint are:
If either Fifo or Rr are used then the scheduler_priority can be used to set the threads priority. scheduler_priority is ignored for other settings of scheduler_policy.
Valid values for the memory_policy_mode datapoint are:
|
overridevirtual |
TBC if we have anything to do here.
Reimplemented from rtctk::componentFramework::RunnableStateMachineLogic.
|
overridevirtual |
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. |
Reimplemented from rtctk::componentFramework::RunnableStateMachineLogic.
|
overridevirtual |
TBD what, if anything can be updated? I can't think of anything that does not require reinitialization.
Reimplemented from rtctk::componentFramework::RunnableStateMachineLogic.
|
protected |
Operational logic constructed during Initialization with parameters from configuration.
|
protected |
|
protected |