Go to the documentation of this file.
19 #ifndef RTC_EXECUTIONCONTEXTWORKER_H
20 #define RTC_EXECUTIONCONTEXTWORKER_H
26 #include <rtm/idl/RTCSkel.h>
31 #define NUM_OF_LIFECYCLESTATE 4
34 #pragma warning( disable : 4290 )
163 void setECRef(RTC::ExecutionContextService_ptr ref);
164 RTC::ExecutionContextService_ptr
getECRef();
222 RTC::ReturnCode_t
start(
void);
250 RTC::ReturnCode_t
stop(
void);
323 long int cycle = 1000);
360 long int cycle = 1000);
397 long int cycle = 1000);
434 return state >= RTC::CREATED_STATE && state <= RTC::ERROR_STATE ?
574 RTC::ExecutionContextService_var
m_ref;
594 std::vector<RTC_impl::RTObjectStateMachine*>
m_comps;
600 typedef std::vector<RTC_impl::RTObjectStateMachine*>::iterator
CompItr;
606 #pragma warning( default : 4290 )
609 #endif // RTC_PERIODICEXECUTIONCONTEXT_H
bool isAllNextState(RTC::LifeCycleState state)
virtual ~ExecutionContextWorker(void)
Destructor.
RTC::LightweightRTObject_ptr LightweightRTObject_ptr
Definition: ExecutionContextWorker.h:43
ExecutionContextWorker class.
Definition: ExecutionContextWorker.h:118
coil::Mutex m_mutex
Definition: ExecutionContextWorker.h:595
void updateComponentList()
Updating component list.
bool isOneOfNextState(RTC::LifeCycleState state)
RTC::ReturnCode_t stopThread(void)
RTC::ReturnCode_t stop(void)
Stop the ExecutionContext.
RTC::ReturnCode_t removeComponent(RTC::LightweightRTObject_ptr comp)
Remove the RT-Component from participant list.
RTC::LightweightRTObject_var LightweightRTObject_var
Definition: ExecutionContextWorker.h:45
RTC::ReturnCode_t bindComponent(RTC::RTObject_impl *rtc)
Bind the component.
std::vector< RTC_impl::RTObjectStateMachine * >::iterator CompItr
Definition: ExecutionContextWorker.h:600
Mutex class.
Definition: Mutex.h:40
Definition: ExecutionContextProfile.h:34
void invokeWorkerPostDo()
const char * getStateString(RTC::LifeCycleState state)
Definition: ExecutionContextWorker.h:426
RTC::ExecutionContextService_ptr getECRef()
RTC::ReturnCode_t waitResetComplete(RTObjectStateMachine *&rtobj, coil::TimeValue timeout=1.0, long int cycle=1000)
std::vector< RTC_impl::RTObjectStateMachine * > m_addedComps
Definition: ExecutionContextWorker.h:596
std::vector< RTC_impl::RTObjectStateMachine * > m_comps
List of the participating component.
Definition: ExecutionContextWorker.h:594
coil::Mutex m_addedMutex
Definition: ExecutionContextWorker.h:597
RT-Component class.
Definition: RTObject.h:89
ExecutionContextWorker()
Default Constructor.
RTC::ReturnCode_t startThread(void)
bool isOneOfCurrentState(RTC::LifeCycleState state)
CORBA::Boolean isRunning(void)
Check for ExecutionContext running state.
TimeValue class.
Definition: TimeValue.h:40
RTC::ReturnCode_t addComponent(RTC::LightweightRTObject_ptr comp)
Add an RT-component.
void setECRef(RTC::ExecutionContextService_ptr ref)
coil::Mutex m_removedMutex
Definition: ExecutionContextWorker.h:599
RTC::ReturnCode_t start(void)
Start the ExecutionContext.
RTC::ReturnCode_t activateComponent(RTC::LightweightRTObject_ptr comp, RTObjectStateMachine *&rtobj)
Activate an RT-component.
Logger class.
Definition: SystemLogger.h:99
RTC::ReturnCode_t waitDeactivateComplete(RTObjectStateMachine *&rtobj, coil::TimeValue timeout=1.0, long int cycle=1000)
RTC::ExecutionContextService_var m_ref
Definition: ExecutionContextWorker.h:574
RTC::ReturnCode_t resetComponent(RTC::LightweightRTObject_ptr com, RTObjectStateMachine *&rtobj)
Reset the RT-component.
RTC::Logger rtclog
Logger stream.
Definition: ExecutionContextWorker.h:572
bool isAllCurrentState(RTC::LifeCycleState state)
std::vector< RTC_impl::RTObjectStateMachine * > m_removedComps
Definition: ExecutionContextWorker.h:598
Definition: RTObjectStateMachine.h:46
RTC::ReturnCode_t waitActivateComplete(RTObjectStateMachine *&rtobj, coil::TimeValue timeout=1.0, long int cycle=1000)
RTObjectStateMachine * findComponent(RTC::LightweightRTObject_ptr comp)
RTC::LifeCycleState getComponentState(RTC::LightweightRTObject_ptr comp)
Get RT-component's state.
RT component logger class.
bool m_running
The running state of ExecutionContext true: running, false: stopped.
Definition: ExecutionContextWorker.h:585
RTC::ReturnCode_t deactivateComponent(RTC::LightweightRTObject_ptr comp, RTObjectStateMachine *&rtobj)
Deactivate an RT-component.
RTC::ReturnCode_t rateChanged()
Execution rate of ExecutionContext chnaged.