Go to the documentation of this file.
12 #ifndef RTCTK_RTCSUPERVISOR_RTCSUPERVISOR_HPP
13 #define RTCTK_RTCSUPERVISOR_RTCSUPERVISOR_HPP
45 void ActivityStarting(
StopToken st)
override;
46 void ActivityRecovering(
StopToken st)
override;
47 void ActivityInitialising(
StopToken st)
override;
48 void ActivityEnabling(
StopToken st)
override;
49 void ActivityDisabling(
StopToken st)
override;
50 void ActivityGoingRunning(
StopToken st)
override;
51 void ActivityGoingIdle(
StopToken st)
override;
52 void ActivityRunning(
StopToken st)
override;
54 bool GuardUpdatingAllowed(
Payload args)
override;
56 void InError(
bool flag,
const std::string why);
63 std::mutex& GlobalMutex();
94 OnStateEventReceived(
const double timestamp,
const std::string&
name,
const std::string&
state);
102 void PublishGState();
109 void PopulateRuntimeRepo();
114 void LoadStaticConfig();
115 void LoadDynamicConfig();
125 #endif // RTCTK_RTCSUPERVISOR_RTCSUPERVISOR_HPP
A container that can hold any type of service.
Definition: rtcCommandRequest.hpp:19
bool m_init_alone
Definition: rtcSupervisor.hpp:117
name
Definition: wscript:15
ServiceDiscovery & svc
Definition: rtcSupervisor.hpp:81
Definition: runnable.hpp:34
ServiceContainer & services
access to services
Definition: rtcSupervisor.hpp:79
std::string m_gwho_is_in_error
Definition: rtcSupervisor.hpp:101
std::string m_disp_state
currently evaluated global state etc
Definition: rtcSupervisor.hpp:97
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:88
Runnable< RtcComponent > Super
Definition: rtcSupervisor.hpp:33
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:98
Config of objects and command lists.
bool m_disable_alone
Definition: rtcSupervisor.hpp:120
RuntimeRepoIf & rtr
Definition: rtcSupervisor.hpp:80
bool m_enable_alone
Definition: rtcSupervisor.hpp:118
OldbIf & oldb
Definition: rtcSupervisor.hpp:82
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:100
RtcMonitor m_mon
the monitor thread
Definition: rtcSupervisor.hpp:107
std::mutex m_global_mutex
Definition: rtcSupervisor.hpp:64
Definition: rtcSupervisor.hpp:35
std::string m_gsubstate
Definition: rtcSupervisor.hpp:99
Definition: oldbIf.hpp:20
Definition: runtimeRepoIf.hpp:20
Subscribes to stdif state topic via MAL.
bool m_update_alone
Definition: rtcSupervisor.hpp:119
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:87
const std::string name
identity
Definition: rtcSupervisor.hpp:74
Header file for OldbIf, which defines the API for OldbAdapters.