18 #include <rtm/ExecutionContext.h> 24 ExecutionContextBase::ExecutionContextBase(RTObject_ptr owner)
25 : rtclog(
"exec_cxt"), m_running(false)
27 m_profile.kind =
OTHER;
29 m_profile.owner = owner;
30 m_profile.participants.length(0);
40 CORBA::Boolean ExecutionContextBase::is_running()
82 CORBA::Double ExecutionContextBase::get_rate()
85 return m_profile.rate;
96 ReturnCode_t ExecutionContextBase::set_rate(CORBA::Double rate)
101 m_profile.rate = rate;
116 ExecutionContextBase::activate_component(LightweightRTObject_ptr comp)
131 ExecutionContextBase::deactivate_component(LightweightRTObject_ptr comp)
146 ExecutionContextBase::reset_component(LightweightRTObject_ptr comp)
161 ExecutionContextBase::get_component_state(LightweightRTObject_ptr comp)
178 return m_profile.kind;
190 ExecutionContextBase::add_component(LightweightRTObject_ptr comp)
193 if (!CORBA::is_nil(comp))
196 RTC::RTObject::_narrow(comp));
211 ExecutionContextBase::remove_component(LightweightRTObject_ptr comp)
216 find_objref<RTObject_ptr>(RTC::RTObject::_narrow(comp)));
237 ExecutionContextProfile_var p;
void erase(CorbaSequence &seq, CORBA::ULong index)
Erase the element of the specified index.
CORBA::Long find(const CorbaSequence &seq, Functor f)
Return the index of CORBA sequence element that functor matches.
CORBA sequence utility template functions.
void push_back(CorbaSequence &seq, SequenceElement elem)
Push the new element back to the CORBA sequence.
RTC::Local::ExecutionContextProfile ExecutionContextProfile