Classes | Public Member Functions | Private Attributes
OpenRTM_aist.PeriodicExecutionContext.PeriodicExecutionContext Class Reference

PeriodicExecutionContext class. More...

Inheritance diagram for OpenRTM_aist.PeriodicExecutionContext.PeriodicExecutionContext:
Inheritance graph
[legend]

List of all members.

Classes

class  Comp
class  DFP
class  find_participant
class  Worker

Public Member Functions

def __del__
def __init__
 Constructor.
def activate_component
 Activate a RT-component.
def add_component
 Add a RT-component.
def bindComponent
def close
 Close activity thread.
def deactivate_component
 Deactivate a RT-component.
def get_component_state
 Get RT-component's state.
def get_kind
 Get the ExecutionKind.
def get_profile
 Get the ExecutionContextProfile.
def get_rate
 Get ExecutionRate.
def getObjRef
def is_running
 Check for ExecutionContext running state.
def remove_component
 Remove the RT-component from participant list.
def reset_component
 Reset a RT-component.
def set_rate
 Set ExecutionRate.
def start
 Start ExecutionContext.
def stop
 Stop ExecutionContext.
def svc
 Create internal activity thread.

Private Attributes

 _comps
 _mutex_del
 _nowait
 _period
 _profile
 _ref
 _rtcout
 _running
 _worker

Detailed Description

PeriodicExecutionContext class.

Definition at line 42 of file PeriodicExecutionContext.py.


Constructor & Destructor Documentation

def OpenRTM_aist.PeriodicExecutionContext.PeriodicExecutionContext.__init__ (   self,
  owner = None,
  rate = None 
)

Constructor.

Definition at line 353 of file PeriodicExecutionContext.py.

Definition at line 386 of file PeriodicExecutionContext.py.


Member Function Documentation

Activate a 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.

Definition at line 726 of file PeriodicExecutionContext.py.

Add a RT-component.

The operation causes the given RTC to begin participating in the execution context. The newly added RTC will receive a call to LightweightRTComponent::attach_context and then enter the Inactive state.

Definition at line 912 of file PeriodicExecutionContext.py.

Close activity thread.

close() method is called when activity thread svc() is returned. This method deactivate this object and notify it to manager. ACE_Task class method override.

Reimplemented from OpenRTM_aist.Task.Task.

Definition at line 503 of file PeriodicExecutionContext.py.

Deactivate a 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.

Definition at line 767 of file PeriodicExecutionContext.py.

Get RT-component's state.

This operation shall report the LifeCycleState of the given participant RTC.

Definition at line 855 of file PeriodicExecutionContext.py.

Get the ExecutionKind.

This operation shall report the execution kind of the execution context.

Definition at line 881 of file PeriodicExecutionContext.py.

Get the ExecutionContextProfile.

This operation provides a profile ¡Èdescriptor¡É for the execution context.

Definition at line 1014 of file PeriodicExecutionContext.py.

Get ExecutionRate.

This operation shall return the rate (in hertz) at which its Active participating RTCs are being invoked.

Definition at line 653 of file PeriodicExecutionContext.py.

Definition at line 416 of file PeriodicExecutionContext.py.

Check for ExecutionContext running state.

This operation shall return true if the context is in the Running state. While the context is Running, all Active RTCs participating in the context shall be executed according to the context¡Çs execution kind.

Definition at line 531 of file PeriodicExecutionContext.py.

Remove the RT-component from participant list.

This operation causes a participant RTC to stop participating in the execution context. The removed RTC will receive a call to LightweightRTComponent::detach_context.

Definition at line 977 of file PeriodicExecutionContext.py.

Reset a RT-component.

Attempt to recover the RTC when it is in Error. The ComponentAction::on_reset callback shall be invoked. This operation shall not return until the callback has returned, and shall result in an error if the callback does. If possible, the RTC developer should implement that callback such that the RTC may be returned to a valid state.

Definition at line 822 of file PeriodicExecutionContext.py.

Set ExecutionRate.

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.

Definition at line 683 of file PeriodicExecutionContext.py.

Start 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.

Definition at line 563 of file PeriodicExecutionContext.py.

Stop 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.

Definition at line 618 of file PeriodicExecutionContext.py.

Create internal activity thread.

Run by a daemon thread to handle deferred processing. ACE_Task class method override.

Reimplemented from OpenRTM_aist.Task.Task.

Reimplemented in OpenRTM_aist.ExtTrigExecutionContext.ExtTrigExecutionContext, and OpenRTM_aist.OpenHRPExecutionContext.OpenHRPExecutionContext.

Definition at line 435 of file PeriodicExecutionContext.py.


Member Data Documentation

Definition at line 353 of file PeriodicExecutionContext.py.

Definition at line 353 of file PeriodicExecutionContext.py.

Definition at line 353 of file PeriodicExecutionContext.py.

Definition at line 353 of file PeriodicExecutionContext.py.

Definition at line 353 of file PeriodicExecutionContext.py.

Definition at line 353 of file PeriodicExecutionContext.py.

Definition at line 353 of file PeriodicExecutionContext.py.


The documentation for this class was generated from the following file:


openrtm_aist_python
Author(s): Shinji Kurihara
autogenerated on Thu Aug 27 2015 14:17:29