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

ExecutionContext class that enables one step execution. More...

#include <ExtTrigExecutionContext.h>

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

Public Member Functions

 ExtTrigExecutionContext ()
 Constructor. More...
 
virtual ~ExtTrigExecutionContext (void)
 Destructor. More...
 
virtual void tick () throw (CORBA::SystemException)
 Move forward one step of ExecutionContext. More...
 
virtual int svc (void)
 Invoke each component's operation. More...
 
- Public Member Functions inherited from RTC::PeriodicExecutionContext
 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 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...
 
- Public Member Functions inherited from RTC::ExecutionContextBase
virtual ~ExecutionContextBase (void)
 Virtual Destructor. More...
 
- Public Member Functions inherited from coil::Task
 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 ()
 

Additional Inherited Members

- Static Public Member Functions inherited from coil::Task
static void * svc_run (void *args=0)
 Start thread Execution. More...
 
- 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. More...
 
Logger rtclog
 Logger stream. More...
 
bool m_running
 The running state of ExecutionContext true: running, false: stopped. More...
 
bool m_svc
 The thread running flag of ExecutionContext. More...
 
Worker m_worker
 A condition variable for external triggered worker. More...
 
ExecutionContextProfile m_profile
 ExecutionContextProfile. More...
 
coil::Mutex m_profileMutex
 
coil::TimeValue m_period
 Execution cycle of ExecutionContext. More...
 
ExecutionContextService_var m_ref
 Reference to ExecutionContextService object. More...
 
bool m_nowait
 Flag of ExecutionContext to run immediately (to run without waiting) More...
 

Detailed Description

ExecutionContext class that enables one step execution.

ExecutionContext class that can execute every one cycle for Periodic Sampled Data Processing. Time(Tick) advances one cycle by invoking method externally.

Since
0.4.0

Constructor & Destructor Documentation

RTC::ExtTrigExecutionContext::ExtTrigExecutionContext ( )

Constructor.

Constructor

virtual RTC::ExtTrigExecutionContext::~ExtTrigExecutionContext ( void  )
virtual

Destructor.

Destructor

Member Function Documentation

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

Invoke each component's operation.

Invoke each component's operation which is attached this ExecutionContext. Stop until the next operation is invoked after all component operations are invoked.

Returns
Operation result

Reimplemented from RTC::PeriodicExecutionContext.

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

Move forward one step of ExecutionContext.

Move forward one step of the ExecutionContext processing.

Reimplemented from RTC::ExecutionContextBase.