|
RTC Toolkit
0.1.0-alpha
|
#include <telRepubBusinessLogic.hpp>
Public Member Functions | |
| TelRepubBusinessLogic (const std::string &name, rtctk::componentFramework::ServiceContainer &services) | |
| virtual | ~TelRepubBusinessLogic () |
| void | Starting (StopToken st) override |
| void | Recovering (StopToken st) override |
| void | Initialising (StopToken st) override |
| void | Enabling (StopToken st) override |
| void | Disabling (StopToken st) override |
| void | GoingRunning (StopToken st) override |
| void | GoingIdle (StopToken st) override |
| void | Running (StopToken st) override |
| void | Updating (StopToken st, Payload args) override |
| bool | IsUpdatingAllowed (Payload args) override |
Public Member Functions inherited from rtctk::componentFramework::RunnableStateMachineLogicIf | |
| virtual | ~RunnableStateMachineLogicIf ()=default |
Protected Member Functions | |
| void | CreateMudpiReceivers () |
| void | DeleteMudpiReceivers () |
| void | CreateDdsPubs () |
| void | DeleteDdsPubs () |
Protected Attributes | |
| const std::string | m_name |
| rtctk::componentFramework::ServiceContainer & | m_serviceContainer |
| DdsPub | m_ddsPub |
| std::vector< std::unique_ptr< UdpReceiver > > | udp_receivers |
| std::list< PubThread< rtctk::AgnosticTopic > > | m_pubThreads |
Telemetry Republisher business logic
| rtctk::telRepub::TelRepubBusinessLogic::TelRepubBusinessLogic | ( | const std::string & | name, |
| rtctk::componentFramework::ServiceContainer & | services | ||
| ) |
|
virtual |
|
protected |
creates DDS publishers (rtctk::telRepub::DdsPub) reading configuration from run-time repository
|
protected |
creates UDPI receivers (rtctk::telRepub::UdpReceiver) reading configuration from run-time repository
|
protected |
deletes DDS publishers (rtctk::telRepub::DdsPub)
|
protected |
deletes UDPI receivers (rtctk::telRepub::UdpReceiver)
|
overridevirtual |
Activity On::Operational::Disabling
Activity method to to back to NotOperational, e.g. stop threads, etc.
| st | StopToken, to get notified when the activity is supposed to terminate |
Implements rtctk::componentFramework::RunnableStateMachineLogicIf.
|
overridevirtual |
Activity On::NotOperational::Enabling
Activity method to prepare the component for operation, e.g. start threads, etc.
| st | StopToken, to get notified when the activity is supposed to terminate |
Implements rtctk::componentFramework::RunnableStateMachineLogicIf.
|
overridevirtual |
Activity On::Operational::GoingIdle
Activity method to leave state running, e.g. turn off receivers, etc.
| st | StopToken, to get notified when the activity is supposed to terminate |
Implements rtctk::componentFramework::RunnableStateMachineLogicIf.
|
overridevirtual |
Activity On::Operational::GoingRunning
Activity method to prepare to run, e.g. start receiving data, etc.
| st | StopToken, to get notified when the activity is supposed to terminate |
Implements rtctk::componentFramework::RunnableStateMachineLogicIf.
|
overridevirtual |
Activity On::NotOperational::Initialising
Activity method to initialise the component, e.g. construct members, etc.
| st | StopToken, to get notified when the activity is supposed to terminate |
Implements rtctk::componentFramework::RunnableStateMachineLogicIf.
|
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 |
Implements rtctk::componentFramework::RunnableStateMachineLogicIf.
|
overridevirtual |
Activity Operational::Recovering
Activity method to recover from error in On::Operational::Error, after successful recovery the state machine will transition to state On::Operational::Idle
| st | StopToken, to get notified when the activity is supposed to terminate |
Implements rtctk::componentFramework::RunnableStateMachineLogicIf.
|
overridevirtual |
Activity On::Operational::Running
Activity method for state running, e.g. receive, compute, send
| st | StopToken, to get notified when the activity is supposed to terminate |
Implements rtctk::componentFramework::RunnableStateMachineLogicIf.
|
overridevirtual |
Activity On::NotOperational::Starting
Activity method to perfrom setup work after start and reset of component.
| st | StopToken, to get notified when the activity is supposed to terminate |
Implements rtctk::componentFramework::RunnableStateMachineLogicIf.
|
overridevirtual |
Activity Operational::Updating
Activity method to update dynamic component configuration. On default updates are only allowed ins states. On::Operational::Idle and On::Operational::Running.
| st | StopToken, to get notified when the activity is supposed to terminate |
| args | Payload, to be able to receive information on what to update |
Implements rtctk::componentFramework::RunnableStateMachineLogicIf.
|
protected |
|
protected |
component name
|
protected |
list of DDS publishers
|
protected |
reference to container services needed to access run-time repository for configuration.
|
protected |
vector of UDP receivers