Go to the documentation of this file.
12 #ifndef RTCTK_RTCSUPERVISOR_RTCSUPERVISOR_HPP
13 #define RTCTK_RTCSUPERVISOR_RTCSUPERVISOR_HPP
43 void ActivityStarting(
StopToken st)
override;
44 void ActivityRecovering(
StopToken st)
override;
45 void ActivityInitialising(
StopToken st)
override;
46 void ActivityEnabling(
StopToken st)
override;
47 void ActivityDisabling(
StopToken st)
override;
48 void ActivityGoingRunning(
StopToken st)
override;
49 void ActivityGoingIdle(
StopToken st)
override;
50 void ActivityRunning(
StopToken st)
override;
52 bool GuardUpdatingAllowed(
Payload args)
override;
54 void InError(
bool flag,
const std::string why);
61 std::mutex& GlobalMutex();
92 OnStateEventReceived(
const double timestamp,
const std::string&
name,
const std::string& state);
100 void PublishGState();
107 void PopulateRuntimeRepo();
112 void LoadStaticConfig();
113 void LoadDynamicConfig();
123 #endif // RTCTK_RTCSUPERVISOR_RTCSUPERVISOR_HPP
A container that can hold any type of service.
Definition: rtcCommandRequest.hpp:18
bool m_init_alone
Definition: rtcSupervisor.hpp:115
name
Definition: wscript:15
ServiceDiscovery & svc
Definition: rtcSupervisor.hpp:79
Definition: runnable.hpp:34
ServiceContainer & services
access to services
Definition: rtcSupervisor.hpp:77
std::string m_gwho_is_in_error
Definition: rtcSupervisor.hpp:99
std::string m_disp_state
currently evaluated global state etc
Definition: rtcSupervisor.hpp:95
Holds monitor thread for asynch ping of supervised objects.
Definition: commandReplier.cpp:20
Class that implements a very basic service discover mechanism.
std::shared_ptr< StateSubscriber > m_state_subscriber
Definition: rtcSupervisor.hpp:86
Runnable< RtcComponent > Super
Definition: rtcSupervisor.hpp:31
Class that implements a very basic service discovery mechanism.
Definition: serviceDiscovery.hpp:29
rad::StopToken StopToken
Definition: stopToken.hpp:19
std::string m_gstate
Definition: rtcSupervisor.hpp:96
Config of objects and command lists.
bool m_disable_alone
Definition: rtcSupervisor.hpp:118
RuntimeRepoIf & rtr
Definition: rtcSupervisor.hpp:78
bool m_enable_alone
Definition: rtcSupervisor.hpp:116
OldbIf & oldb
Definition: rtcSupervisor.hpp:80
Lifecycle Extension that makes an RTC Component 'Runnable'.
Definition: rtcObjectConfig.hpp:54
std::string Payload
Definition: payload.hpp:19
Container class that holds services of any type.
Definition: serviceContainer.hpp:35
bool m_gerror
Definition: rtcSupervisor.hpp:98
RtcMonitor m_mon
the monitor thread
Definition: rtcSupervisor.hpp:105
std::mutex m_global_mutex
Definition: rtcSupervisor.hpp:62
Definition: rtcSupervisor.hpp:33
std::string m_gsubstate
Definition: rtcSupervisor.hpp:97
Definition: oldbIf.hpp:20
Definition: runtimeRepoIf.hpp:20
Subscribes to stdif state topic via MAL.
bool m_update_alone
Definition: rtcSupervisor.hpp:117
Life cycle extension to make RtcComponent Runnable.
Definition: runnable.hpp:30
Header file for RuntimeRepoIf, which defines the API for RuntimeRepoAdapters.
Definition: rtcMonitor.hpp:23
RtcObjectConfig m_object_config
The Object Config constructed from list of deployed objects.
Definition: rtcSupervisor.hpp:85
const std::string name
identity
Definition: rtcSupervisor.hpp:72
Header file for OldbIf, which defines the API for OldbAdapters.