|
| PeriodicExecutionContext () |
| Default Constructor. More...
|
|
| PeriodicExecutionContext (OpenRTM::DataFlowComponent_ptr owner, double rate=1000.0) |
| Constructor. More...
|
|
virtual | ~PeriodicExecutionContext (void) |
| Destructor. More...
|
|
virtual ExecutionContextService_ptr | getObjRef (void) |
| Get the reference to the CORBA object. More...
|
|
virtual int | open (void *args) |
| Generate internal activity thread for ExecutionContext. More...
|
|
virtual int | svc (void) |
| Thread execution function for ExecutionContext. More...
|
|
virtual int | close (unsigned long flags) |
| Thread execution function for ExecutionContext. More...
|
|
virtual CORBA::Boolean | is_running (void) throw (CORBA::SystemException) |
| Check for ExecutionContext running state. More...
|
|
virtual ReturnCode_t | start (void) throw (CORBA::SystemException) |
| Start the ExecutionContext. More...
|
|
virtual ReturnCode_t | stop (void) throw (CORBA::SystemException) |
| Stop the ExecutionContext. More...
|
|
virtual CORBA::Double | get_rate (void) throw (CORBA::SystemException) |
| Get execution rate(Hz) of ExecutionContext. More...
|
|
virtual ReturnCode_t | set_rate (CORBA::Double rate) throw (CORBA::SystemException) |
| Set execution rate(Hz) of ExecutionContext. More...
|
|
virtual ReturnCode_t | activate_component (LightweightRTObject_ptr comp) throw (CORBA::SystemException) |
| Activate an RT-component. More...
|
|
virtual ReturnCode_t | deactivate_component (LightweightRTObject_ptr comp) throw (CORBA::SystemException) |
| Deactivate an RT-component. More...
|
|
virtual ReturnCode_t | reset_component (LightweightRTObject_ptr comp) throw (CORBA::SystemException) |
| Reset the RT-component. More...
|
|
virtual LifeCycleState | get_component_state (LightweightRTObject_ptr comp) throw (CORBA::SystemException) |
| Get RT-component's state. More...
|
|
virtual ExecutionKind | get_kind (void) throw (CORBA::SystemException) |
| Get the ExecutionKind. More...
|
|
virtual ReturnCode_t | add_component (LightweightRTObject_ptr comp) throw (CORBA::SystemException) |
| Add an RT-component. More...
|
|
virtual RTC::ReturnCode_t | bindComponent (RTObject_impl *rtc) |
| Bind the component. More...
|
|
virtual ReturnCode_t | remove_component (LightweightRTObject_ptr comp) throw (CORBA::SystemException) |
| Remove the RT-Component from participant list. More...
|
|
virtual ExecutionContextProfile * | get_profile (void) throw (CORBA::SystemException) |
| Get the ExecutionContextProfile. More...
|
|
virtual | ~ExecutionContextBase (void) |
| Virtual Destructor. More...
|
|
virtual void | tick () throw (CORBA::SystemException) |
| Proceed with tick of ExecutionContext. More...
|
|
| Task () |
| Constructor. More...
|
|
virtual | ~Task () |
| Destructor. More...
|
|
virtual void | activate () |
| Create a thread. More...
|
|
virtual int | wait (void) |
| Waiting for the thread terminate. More...
|
|
virtual int | suspend (void) |
| Suspending the task. More...
|
|
virtual int | resume (void) |
| Resuming the suspended task. More...
|
|
virtual void | reset () |
| Reset of task count. More...
|
|
virtual void | finalize () |
| Finalizing the task. More...
|
|
PeriodicExecutionContext class.
Periodic Sampled Data Processing (for the execution cycles) ExecutionContext class
- Since
- 0.4.0
virtual ReturnCode_t RTC::PeriodicExecutionContext::activate_component |
( |
LightweightRTObject_ptr |
comp | ) |
|
throw | ( | CORBA::SystemException |
| ) | | |
|
virtual |
Activate an RT-component.
The given participant RTC is Inactive and is therefore not being invoked according to the execution context’s execution kind. This operation shall cause the RTC to transition to the Active state such that it may subsequently be invoked in this execution context. The callback on_activate shall be called as a result of calling this operation. This operation shall not return until the callback has returned, and shall result in an error if the callback does.
- Parameters
-
comp | The target RT-Component for activation |
- Returns
- The return code of ReturnCode_t type
Referenced by getObjRef().
virtual ReturnCode_t RTC::PeriodicExecutionContext::deactivate_component |
( |
LightweightRTObject_ptr |
comp | ) |
|
throw | ( | CORBA::SystemException |
| ) | | |
|
virtual |
Deactivate an RT-component.
The given RTC is Active in the execution context. Cause it to transition to the Inactive state such that it will not be subsequently invoked from the context unless and until it is activated again. The callback on_deactivate shall be called as a result of calling this operation. This operation shall not return until the callback has returned, and shall result in an error if the callback does.
- Parameters
-
comp | The target RT-Component for deactivate |
- Returns
- The return code of ReturnCode_t type
Referenced by getObjRef().
virtual ExecutionContextService_ptr RTC::PeriodicExecutionContext::getObjRef |
( |
void |
| ) |
|
|
inlinevirtual |
Get the reference to the CORBA object.
Get the reference to the CORBA object as ExecutioncontextService of this object.
- Returns
- The reference to CORBA object
Implements RTC::ExecutionContextBase.
References activate_component(), add_component(), bindComponent(), close(), deactivate_component(), get_component_state(), get_kind(), get_profile(), get_rate(), is_running(), m_ref, open(), remove_component(), reset_component(), set_rate(), start(), stop(), and svc().
virtual ReturnCode_t RTC::PeriodicExecutionContext::set_rate |
( |
CORBA::Double |
rate | ) |
|
throw | ( | CORBA::SystemException |
| ) | | |
|
virtual |
Set execution rate(Hz) of ExecutionContext.
This operation shall set the rate (in hertz) at which this context’s Active participating RTCs are being called. If the execution kind of the context is PERIODIC, a rate change shall result in the invocation of on_rate_changed on any RTCs realizing DataFlowComponentAction that are registered with any RTCs participating in the context.
- Parameters
-
rate | Execution cycle(Unit:Hz) |
- Returns
- The return code of ReturnCode_t type
Referenced by getObjRef().
virtual ReturnCode_t RTC::PeriodicExecutionContext::start |
( |
void |
| ) |
|
throw | ( | CORBA::SystemException |
| ) | | |
|
virtual |
Start the ExecutionContext.
Request that the context enter the Running state. Once the state transition occurs, the ComponentAction::on_startup operation will be invoked. An execution context may not be started until the RT-Components that participate in it have been initialized. An execution context may be started and stopped multiple times.
- Returns
- The return code of ReturnCode_t type
Referenced by getObjRef().
virtual ReturnCode_t RTC::PeriodicExecutionContext::stop |
( |
void |
| ) |
|
throw | ( | CORBA::SystemException |
| ) | | |
|
virtual |
Stop the ExecutionContext.
Request that the context enter the Stopped state. Once the transition occurs, the ComponentAction::on_shutdown operation will be invoked. An execution context must be stopped before the RT components that participate in it are finalized. An execution context may be started and stopped multiple times.
- Returns
- The return code of ReturnCode_t type
Referenced by getObjRef().