Go to the documentation of this file.
9 #ifndef RTCTK_RTCSUPERVISOR_RTCSUPERVISOR_HPP_
10 #define RTCTK_RTCSUPERVISOR_RTCSUPERVISOR_HPP_
53 void InError(
bool flag,
const std::string why);
90 const std::string&
name,
const std::string& state);
A container that can hold any type of service.
Definition: rtcCommandRequest.hpp:17
bool m_init_alone
Definition: rtcSupervisor.hpp:112
rtctk::componentFramework::ServiceDiscovery & svc
Definition: rtcSupervisor.hpp:77
std::string m_gwho_is_in_error
Definition: rtcSupervisor.hpp:97
void Starting(rtctk::componentFramework::StopToken st) override
Definition: rtcSupervisor.cpp:50
std::string m_disp_state
currently evaluated global state etc
Definition: rtcSupervisor.hpp:93
Holds monitor thread for asynch ping of supervised objects.
void Running(rtctk::componentFramework::StopToken st) override
Definition: rtcSupervisor.cpp:339
Class that implements a very basic service discover mechanism.
Definition: runnableStateMachineLogicIf.hpp:26
Definition: serviceDiscovery.hpp:25
void Disabling(rtctk::componentFramework::StopToken st) override
Definition: rtcSupervisor.cpp:246
rad::StopToken StopToken
Definition: stopToken.hpp:16
std::string m_gstate
Definition: rtcSupervisor.hpp:94
void OnStateEventReceived(const double timestamp, const std::string &name, const std::string &state)
Definition: rtcSupervisor.cpp:485
Config of objects and command lists.
std::shared_ptr< rtctk::componentFramework::StateSubscriber > m_state_subscriber
Definition: rtcSupervisor.hpp:84
RtcSupervisor(const std::string &comp_name, rtctk::componentFramework::ServiceContainer &services)
Definition: rtcSupervisor.cpp:32
bool m_disable_alone
Definition: rtcSupervisor.hpp:115
bool m_enable_alone
Definition: rtcSupervisor.hpp:113
void Enabling(rtctk::componentFramework::StopToken st) override
Definition: rtcSupervisor.cpp:211
Definition: rtcObjectConfig.hpp:49
void PublishGState()
Definition: rtcSupervisor.cpp:500
Definition: oldbApiIf.hpp:18
void GoingIdle(rtctk::componentFramework::StopToken st) override
Definition: rtcSupervisor.cpp:310
std::string Payload
Definition: runnableStateMachineLogicIf.hpp:17
Definition: serviceContainer.hpp:31
bool m_gerror
Definition: rtcSupervisor.hpp:96
RtcMonitor m_mon
Definition: rtcSupervisor.hpp:103
std::mutex m_global_mutex
Definition: rtcSupervisor.hpp:60
void LoadStaticConfig()
Definition: rtcSupervisor.cpp:535
Definition: runtimeRepoApiIf.hpp:59
Definition: rtcSupervisor.hpp:32
std::string m_gsubstate
Definition: rtcSupervisor.hpp:95
rtctk::componentFramework::OldbApiIf & oldb
Definition: rtcSupervisor.hpp:78
void Recovering(rtctk::componentFramework::StopToken st) override
Definition: rtcSupervisor.cpp:179
rtctk::componentFramework::ServiceContainer & services
Definition: rtcSupervisor.hpp:75
void Updating(rtctk::componentFramework::StopToken st, rtctk::componentFramework::Payload args) override
Definition: rtcSupervisor.cpp:368
Header file needed to instantiate FakeOldbAdapter in test components.
Subscribes to stdif state topic via MAL.
bool IsUpdatingAllowed(rtctk::componentFramework::Payload args) override
Definition: rtcSupervisor.cpp:398
Header file for RuntimeRepoApiIf, which defines the API for RuntimeRepoAdapters.
std::mutex & GlobalMutex()
Ensure exclusion from monitor thread or other threads which may be sending commands Use with std::sco...
Definition: rtcSupervisor.cpp:427
void InError(bool flag, const std::string why)
Definition: rtcSupervisor.cpp:467
void Initialising(rtctk::componentFramework::StopToken st) override
Definition: rtcSupervisor.cpp:101
bool m_update_alone
Definition: rtcSupervisor.hpp:114
Life-Cycle Interface of the Runnable State Machine.
virtual ~RtcSupervisor()
Definition: rtcSupervisor.cpp:44
void MonitorCycle()
Perform one cycle of async monitoring of the components.
Definition: rtcSupervisor.cpp:442
void GoingRunning(rtctk::componentFramework::StopToken st) override
Definition: rtcSupervisor.cpp:281
void LoadDynamicConfig()
Definition: rtcSupervisor.cpp:544
Definition: rtcMonitor.hpp:19
RtcObjectConfig m_object_config
Definition: rtcSupervisor.hpp:83
const std::string name
identity
Definition: rtcSupervisor.hpp:70
rtctk::componentFramework::RuntimeRepoApiIf & rtr
Definition: rtcSupervisor.hpp:76