IExecutionContext.h
Go to the documentation of this file.
1 // -*- C++ -*-
20 #ifndef IExeLOCAL_cutionContext_h
21 #define IExeLOCAL_cutionContext_h
22 
23 #include <rtc/IRTC.h>
24 
25 
26 namespace RTC
27 {
28 namespace Local
29 {
30 
32  class IRTObject;
33  typedef std::vector<IRTObject*> RTCList;
34 
36  {
38  double rate;
40  RTCList participants;
42  };
43 
54  {
55  public:
56  virtual ~IExecutionContext() {};
57 
58  virtual bool is_running() const = 0;
59 
60  virtual ReturnCode_t start() = 0;
61 
62  virtual ReturnCode_t stop() = 0;
63 
64  virtual double get_rate() const = 0;
65 
66  virtual ReturnCode_t set_rate(double rate) = 0;
67 
68  virtual ReturnCode_t
69  add_component(ILightweightRTObject& comp) = 0;
70 
71  virtual ReturnCode_t
72  remove_component(ILightweightRTObject& comp) = 0;
73 
74  virtual ReturnCode_t
75  activate_component(ILightweightRTObject& comp) = 0;
76 
77  virtual ReturnCode_t
78  deactivate_component(ILightweightRTObject& comp) = 0;
79 
80  virtual ReturnCode_t
81  reset_component(ILightweightRTObject& comp) = 0;
82 
83  virtual LifeCycleState
84  get_component_state(ILightweightRTObject& comp) = 0;
85 
86  virtual ExecutionKind
87  get_kind() const = 0;
88 
89  virtual const ExecutionContextProfile&
90  get_profile() const = 0;
91  };
92 }; // namespace Local
93 }; // namespace RTC
94 #endif // RTC_LOCAL_IEXECUTIONCONTEXT_H
95 
RT-Component.
std::vector< std::pair< std::string, std::string > > NVList
Definition: IRTC.h:67
ExecutionKind
Definition: IRTC.h:48
RTC::Local::ILightweightRTObject ILightweightRTObject
ReturnCode_t
Definition: IRTC.h:30
RTC interfaces.
LifeCycleState
Definition: IRTC.h:40
std::vector< IRTObject * > RTCList
IExecutionContext class.
ILightweightRTObject interface class.
IRTObject interface class.
Definition: IRTObject.h:61


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Thu Jun 6 2019 19:25:58