OpenRTM  1.0.0
Public Member Functions | List of all members
RTC::OpenHRPExecutionContext Class Reference

OpenHRPExecutionContext class. More...

#include <OpenHRPExecutionContext.h>

Inheritance diagram for RTC::OpenHRPExecutionContext:
RTC::PeriodicExecutionContext RTC::ExecutionContextBase coil::Task

Public Member Functions

 OpenHRPExecutionContext ()
 Constructor.
virtual ~OpenHRPExecutionContext (void)
 Destructor.
virtual void tick (void) throw (CORBA::SystemException)
 Proceed with tick of ExecutionContext.
virtual int svc (void)
 The thread running flag of ExecutionContext.
- Public Member Functions inherited from RTC::PeriodicExecutionContext
 PeriodicExecutionContext ()
 Default Constructor.
 PeriodicExecutionContext (OpenRTM::DataFlowComponent_ptr owner, double rate=1000.0)
 Constructor.
virtual ~PeriodicExecutionContext (void)
 Destructor.
virtual ExecutionContextService_ptr getObjRef (void)
 Get the reference to the CORBA object.
virtual int open (void *args)
 Generate internal activity thread for ExecutionContext.
virtual int close (unsigned long flags)
 Thread execution function for ExecutionContext.
virtual CORBA::Boolean is_running (void) throw (CORBA::SystemException)
 Check for ExecutionContext running state.
virtual ReturnCode_t start (void) throw (CORBA::SystemException)
 Start the ExecutionContext.
virtual ReturnCode_t stop (void) throw (CORBA::SystemException)
 Stop the ExecutionContext.
virtual CORBA::Double get_rate (void) throw (CORBA::SystemException)
 Get execution rate(Hz) of ExecutionContext.
virtual ReturnCode_t set_rate (CORBA::Double rate) throw (CORBA::SystemException)
 Set execution rate(Hz) of ExecutionContext.
virtual ReturnCode_t activate_component (LightweightRTObject_ptr comp) throw (CORBA::SystemException)
 Activate an RT-component.
virtual ReturnCode_t deactivate_component (LightweightRTObject_ptr comp) throw (CORBA::SystemException)
 Deactivate an RT-component.
virtual ReturnCode_t reset_component (LightweightRTObject_ptr comp) throw (CORBA::SystemException)
 Reset the RT-component.
virtual LifeCycleState get_component_state (LightweightRTObject_ptr comp) throw (CORBA::SystemException)
 Get RT-component's state.
virtual ExecutionKind get_kind (void) throw (CORBA::SystemException)
 Get the ExecutionKind.
virtual ReturnCode_t add_component (LightweightRTObject_ptr comp) throw (CORBA::SystemException)
 Add an RT-component.
virtual RTC::ReturnCode_t bindComponent (RTObject_impl *rtc)
 Bind the component.
virtual ReturnCode_t remove_component (LightweightRTObject_ptr comp) throw (CORBA::SystemException)
 Remove the RT-Component from participant list.
virtual ExecutionContextProfile * get_profile (void) throw (CORBA::SystemException)
 Get the ExecutionContextProfile.
- Public Member Functions inherited from RTC::ExecutionContextBase
virtual ~ExecutionContextBase (void)
 Virtual Destructor.
- Public Member Functions inherited from coil::Task
 Task ()
 Constructor.
virtual ~Task ()
 Destructor.
virtual void activate ()
 Create a thread.
virtual int wait (void)
 Waiting for the thread terminate.
virtual int suspend (void)
 Suspending the task.
virtual int resume (void)
 Resuming the suspended task.
virtual void reset ()
 Reset of task count.
virtual void finalize ()

Additional Inherited Members

- Static Public Member Functions inherited from coil::Task
static void * svc_run (void *args=0)
 Start thread Execution.
- Protected Types inherited from RTC::PeriodicExecutionContext
typedef LifeCycleState ExecContextState
typedef RTC_Utils::StateHolder
< ExecContextState
ECStates
typedef std::vector< Comp >
::iterator 
CompItr
- Protected Attributes inherited from RTC::PeriodicExecutionContext
std::vector< Compm_comps
 List of the participating component.
Logger rtclog
 Logger stream.
bool m_running
 The running state of ExecutionContext true: running, false: stopped.
bool m_svc
 The thread running flag of ExecutionContext.
Worker m_worker
 A condition variable for external triggered worker.
ExecutionContextProfile m_profile
 ExecutionContextProfile.
coil::Mutex m_profileMutex
coil::TimeValue m_period
 Execution cycle of ExecutionContext.
ExecutionContextService_var m_ref
 Reference to ExecutionContextService object.
bool m_nowait
 Flag of ExecutionContext to run immediately (to run without waiting)

Detailed Description

OpenHRPExecutionContext class.

This is ExecutionContext for OpenHRP3. This EC can execute only one cycle by tick() call from external framework.

Constructor & Destructor Documentation

RTC::OpenHRPExecutionContext::OpenHRPExecutionContext ( )

Constructor.

virtual RTC::OpenHRPExecutionContext::~OpenHRPExecutionContext ( void  )
virtual

Destructor.

Member Function Documentation

virtual int RTC::OpenHRPExecutionContext::svc ( void  )
virtual

The thread running flag of ExecutionContext.

Reimplemented from RTC::PeriodicExecutionContext.

virtual void RTC::OpenHRPExecutionContext::tick ( void  ) throw (CORBA::SystemException)
virtual

Proceed with tick of ExecutionContext.

Proceed with tick of ExecutionContext for one period.

Reimplemented from RTC::ExecutionContextBase.