Go to the documentation of this file.
12 #ifndef RTCTK_RTCSUPERVISOR_RTCOBJECTCONFIG_HPP
13 #define RTCTK_RTCSUPERVISOR_RTCOBJECTCONFIG_HPP
30 const std::string &rr_uri,
31 const std::string &ps_uri) {
71 return m_objects_request_list;
76 const std::string &
name,
77 const std::string &
state,
79 std::string &gsubstate,
81 std::string &gerror_who);
85 return m_objects_list;
90 return m_pub_sub_uris;
95 std::string &gsubstate,
97 std::string &gerror_who);
110 std::list<std::shared_ptr<RtcObject>> m_objects_list;
111 std::shared_ptr<RtcCommandRequestList> m_objects_request_list;
117 void BuildObjectsList();
118 void BuildObjectsRequestList();
125 std::vector<elt::mal::Uri> m_pub_sub_uris;
130 #endif // RTCTK_RTCSUPERVISOR_RTCOBJECTCONFIG_HPP
Definition: rtcCommandRequest.hpp:19
name
Definition: wscript:15
std::shared_ptr< RtcObject > FindObject(const std::string &name)
Definition: rtcObjectConfig.cpp:91
Handles a list of command requests to be run sequentially or in parallel.
Class that implements a very basic service discover mechanism.
std::list< std::shared_ptr< RtcObject > > & ObjectList()
Definition: rtcObjectConfig.hpp:84
Definition: rtcObjectConfig.hpp:23
void BuildFromRuntimeRepo()
Definition: rtcObjectConfig.cpp:78
Class that implements a very basic service discovery mechanism.
Definition: serviceDiscovery.hpp:29
std::string m_rr_uri
Definition: rtcObjectConfig.hpp:26
RtcObjectsDescription()
Definition: rtcObjectConfig.cpp:203
std::list< RtcObjectDescription > objects
Definition: rtcObjectConfig.hpp:48
void OnStateEventReceived(const double timestamp, const std::string &name, const std::string &state, std::string &gstate, std::string &gsubstate, bool &gerror, std::string &gerror_who)
Called from the rtcServer business logic when a state change event is recrived from any of the superv...
Definition: rtcObjectConfig.cpp:111
Definition: rtcObjectConfig.hpp:54
std::shared_ptr< RtcCommandRequestList > AllObjectsRequestList()
Definition: rtcObjectConfig.hpp:70
RtcObjectDescription(const std::string &name, const std::string &rr_uri, const std::string &ps_uri)
Definition: rtcObjectConfig.hpp:29
virtual ~RtcObjectConfig()
Definition: rtcObjectConfig.cpp:38
Definition: oldbIf.hpp:20
void LoadFromRuntimeRepo(rtctk::componentFramework::RuntimeRepoIf &rtr, rtctk::componentFramework::ServiceDiscovery &svc)
Build the list of object descriptions based on the depl.objectlist.
Definition: rtcObjectConfig.cpp:213
Definition: runtimeRepoIf.hpp:20
void EvaluateBelievedState(std::string &gstate, std::string &gsubstate, bool &gerror, std::string &gerror_who)
Evaluate the believed state by traversing the list of objects and finding the minimum state/substate.
Definition: rtcObjectConfig.cpp:139
RtcObjectDescription()
Definition: rtcObjectConfig.hpp:37
std::string m_name
Definition: rtcObjectConfig.hpp:25
Header file for RuntimeRepoIf, which defines the API for RuntimeRepoAdapters.
RtcObjectConfig(std::string name, rtctk::componentFramework::RuntimeRepoIf &rtr, rtctk::componentFramework::ServiceDiscovery &svc, rtctk::componentFramework::OldbIf &oldb)
Definition: rtcObjectConfig.cpp:24
std::string m_ps_uri
Definition: rtcObjectConfig.hpp:27
Standard enums for rtcSupervisor.
Definition: rtcObjectConfig.hpp:44
std::vector< elt::mal::Uri > & PubSubURIs()
Definition: rtcObjectConfig.hpp:89
Header file for OldbIf, which defines the API for OldbAdapters.