#include <rtcSupervisor.hpp>
◆ ComponentType
◆ RtcSupervisor()
rtctk::rtcSupervisor::RtcSupervisor::RtcSupervisor |
( |
const std::string & |
comp_name, |
|
|
ServiceContainer & |
services |
|
) |
| |
◆ ~RtcSupervisor()
rtctk::rtcSupervisor::RtcSupervisor::~RtcSupervisor |
( |
| ) |
|
|
virtual |
◆ ActivityDisabling()
void rtctk::rtcSupervisor::RtcSupervisor::ActivityDisabling |
( |
StopToken |
st | ) |
|
|
override |
◆ ActivityEnabling()
void rtctk::rtcSupervisor::RtcSupervisor::ActivityEnabling |
( |
StopToken |
st | ) |
|
|
override |
◆ ActivityGoingIdle()
void rtctk::rtcSupervisor::RtcSupervisor::ActivityGoingIdle |
( |
StopToken |
st | ) |
|
|
overridevirtual |
◆ ActivityGoingRunning()
void rtctk::rtcSupervisor::RtcSupervisor::ActivityGoingRunning |
( |
StopToken |
st | ) |
|
|
overridevirtual |
◆ ActivityInitialising()
void rtctk::rtcSupervisor::RtcSupervisor::ActivityInitialising |
( |
StopToken |
st | ) |
|
|
override |
◆ ActivityRecovering()
void rtctk::rtcSupervisor::RtcSupervisor::ActivityRecovering |
( |
StopToken |
st | ) |
|
|
overridevirtual |
◆ ActivityRunning()
void rtctk::rtcSupervisor::RtcSupervisor::ActivityRunning |
( |
StopToken |
st | ) |
|
|
overridevirtual |
◆ ActivityStarting()
void rtctk::rtcSupervisor::RtcSupervisor::ActivityStarting |
( |
StopToken |
st | ) |
|
|
override |
◆ ActivityUpdating()
void rtctk::rtcSupervisor::RtcSupervisor::ActivityUpdating |
( |
StopToken |
st, |
|
|
Payload |
args |
|
) |
| |
|
override |
◆ GlobalMutex()
std::mutex & rtctk::rtcSupervisor::RtcSupervisor::GlobalMutex |
( |
| ) |
|
|
protected |
Ensure exclusion from monitor thread or other threads which may be sending commands Use with std::scoped_lock scoped_lock(BoostGlobalMutex);.
◆ GuardUpdatingAllowed()
bool rtctk::rtcSupervisor::RtcSupervisor::GuardUpdatingAllowed |
( |
Payload |
args | ) |
|
|
override |
◆ InError()
void rtctk::rtcSupervisor::RtcSupervisor::InError |
( |
bool |
flag, |
|
|
const std::string |
why |
|
) |
| |
◆ LoadDynamicConfig()
void rtctk::rtcSupervisor::RtcSupervisor::LoadDynamicConfig |
( |
| ) |
|
|
protected |
◆ LoadStaticConfig()
void rtctk::rtcSupervisor::RtcSupervisor::LoadStaticConfig |
( |
| ) |
|
|
protected |
◆ MonitorCycle()
void rtctk::rtcSupervisor::RtcSupervisor::MonitorCycle |
( |
| ) |
|
|
protected |
Perform one cycle of async monitoring of the components.
Perform one cycle of object monitoring.
Lock using the global mutex Traverse the list of objects sending a request and setting an error flag if there is an error communicating
◆ OnStateEventReceived()
void rtctk::rtcSupervisor::RtcSupervisor::OnStateEventReceived |
( |
const double |
timestamp, |
|
|
const std::string & |
name, |
|
|
const std::string & |
state |
|
) |
| |
|
protected |
Called on State Event subscription.
◆ PopulateRuntimeRepo()
void rtctk::rtcSupervisor::RtcSupervisor::PopulateRuntimeRepo |
( |
| ) |
|
|
protected |
Populates the Runtime Configuration Repository.
Loads the configuration datapoints for all SRTC components from the Persistent Configuration Repository into the Runtime Configuration Repository.
If the Persistent Configuration Repository is not available, i.e. the service discovery cannot provide a URI for it, then this initialisation step is skipped. One can also disable this step by setting the following boolean configuration parameter in the Persistent Configuration Repository to true: /common/disable_populate_runtime_repo
◆ PublishGState()
void rtctk::rtcSupervisor::RtcSupervisor::PublishGState |
( |
| ) |
|
|
protected |
◆ RtcMonitor
◆ m_disable_alone
bool rtctk::rtcSupervisor::RtcSupervisor::m_disable_alone |
|
protected |
◆ m_disp_state
std::string rtctk::rtcSupervisor::RtcSupervisor::m_disp_state |
|
protected |
currently evaluated global state etc
◆ m_enable_alone
bool rtctk::rtcSupervisor::RtcSupervisor::m_enable_alone |
|
protected |
◆ m_gerror
bool rtctk::rtcSupervisor::RtcSupervisor::m_gerror |
|
protected |
◆ m_global_mutex
std::mutex rtctk::rtcSupervisor::RtcSupervisor::m_global_mutex |
|
protected |
◆ m_gstate
std::string rtctk::rtcSupervisor::RtcSupervisor::m_gstate |
|
protected |
◆ m_gsubstate
std::string rtctk::rtcSupervisor::RtcSupervisor::m_gsubstate |
|
protected |
◆ m_gwho_is_in_error
std::string rtctk::rtcSupervisor::RtcSupervisor::m_gwho_is_in_error |
|
protected |
◆ m_init_alone
bool rtctk::rtcSupervisor::RtcSupervisor::m_init_alone |
|
protected |
◆ m_mon
RtcMonitor rtctk::rtcSupervisor::RtcSupervisor::m_mon |
|
protected |
◆ m_object_config
The Object Config constructed from list of deployed objects.
◆ m_state_subscriber
std::shared_ptr<StateSubscriber> rtctk::rtcSupervisor::RtcSupervisor::m_state_subscriber |
|
protected |
◆ m_update_alone
bool rtctk::rtcSupervisor::RtcSupervisor::m_update_alone |
|
protected |
◆ name
const std::string rtctk::rtcSupervisor::RtcSupervisor::name |
|
protected |
◆ oldb
OldbIf& rtctk::rtcSupervisor::RtcSupervisor::oldb |
|
protected |
◆ rtr
◆ services
◆ svc
The documentation for this class was generated from the following files: