OpenRTM-aist
1.2.1
|
SimulatorExecutionContext class. More...
#include <SimulatorExecutionContext.h>
Public Member Functions | |
SimulatorExecutionContext () | |
Constructor. More... | |
virtual | ~SimulatorExecutionContext (void) |
Destructor. More... | |
virtual RTC::ReturnCode_t | activate_component (RTC::LightweightRTObject_ptr comp) throw (CORBA::SystemException) |
Activate an RT-component. More... | |
virtual RTC::ReturnCode_t | deactivate_component (RTC::LightweightRTObject_ptr comp) throw (CORBA::SystemException) |
Activate an RT-component. More... | |
virtual RTC::ReturnCode_t | reset_component (RTC::LightweightRTObject_ptr comp) throw (CORBA::SystemException) |
Activate an RT-component. More... | |
Public Member Functions inherited from RTC::OpenHRPExecutionContext | |
OpenHRPExecutionContext () | |
Constructor. More... | |
virtual | ~OpenHRPExecutionContext (void) |
Destructor. More... | |
virtual void | tick () throw (CORBA::SystemException) |
Move forward one step of ExecutionContext. More... | |
virtual CORBA::Boolean | is_running (void) throw (CORBA::SystemException) |
Check for ExecutionContext running state. More... | |
virtual RTC::ReturnCode_t | start (void) throw (CORBA::SystemException) |
Start the ExecutionContext. More... | |
virtual RTC::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 RTC::ReturnCode_t | set_rate (CORBA::Double rate) throw (CORBA::SystemException) |
Set execution rate(Hz) of ExecutionContext. More... | |
virtual RTC::LifeCycleState | get_component_state (RTC::LightweightRTObject_ptr comp) throw (CORBA::SystemException) |
Get RT-component's state. More... | |
virtual RTC::ExecutionKind | get_kind (void) throw (CORBA::SystemException) |
Get the ExecutionKind. More... | |
virtual RTC::ReturnCode_t | add_component (RTC::LightweightRTObject_ptr comp) throw (CORBA::SystemException) |
Add an RT-component. More... | |
virtual RTC::ReturnCode_t | remove_component (RTC::LightweightRTObject_ptr comp) throw (CORBA::SystemException) |
Remove the RT-Component from participant list. More... | |
virtual RTC::ExecutionContextProfile * | get_profile (void) throw (CORBA::SystemException) |
Get the ExecutionContextProfile. More... | |
Public Member Functions inherited from RTC::ExecutionContextBase | |
ExecutionContextBase (const char *name) | |
Virtual Destructor. More... | |
virtual | ~ExecutionContextBase (void) |
Virtual Destructor. More... | |
virtual void | init (coil::Properties &props) |
Initialize the ExecutionContext. More... | |
virtual RTC::ReturnCode_t | bindComponent (RTC::RTObject_impl *rtc) |
Bind the component. More... | |
CORBA::Boolean | isRunning () |
Check for ExecutionContext running state. More... | |
RTC::ReturnCode_t | start (void) |
Start the ExecutionContext. More... | |
double | getRate (void) const |
Get execution rate(Hz) of ExecutionContext. More... | |
coil::TimeValue | getPeriod (void) const |
RTC::ReturnCode_t | setRate (double rate) |
Set execution rate(Hz) of ExecutionContext. More... | |
RTC::ReturnCode_t | addComponent (RTC::LightweightRTObject_ptr comp) |
Add an RT-component. More... | |
RTC::ReturnCode_t | removeComponent (RTC::LightweightRTObject_ptr comp) |
Remove the RT-Component from participant list. More... | |
RTC::ReturnCode_t | activateComponent (RTC::LightweightRTObject_ptr comp) |
Activate an RT-component. More... | |
RTC::ReturnCode_t | deactivateComponent (RTC::LightweightRTObject_ptr comp) |
Deactivate an RT-component. More... | |
RTC::ReturnCode_t | resetComponent (RTC::LightweightRTObject_ptr comp) |
Reset the RT-component. More... | |
RTC::LifeCycleState | getComponentState (RTC::LightweightRTObject_ptr comp) |
Get RT-component's state. More... | |
const char * | getStateString (RTC::LifeCycleState state) |
RTC::ExecutionKind | getKind (void) const |
Get the ExecutionKind. More... | |
RTC::ExecutionContextProfile * | getProfile (void) |
Getting Profile. More... | |
void | setObjRef (RTC::ExecutionContextService_ptr ec_ptr) |
Get the reference to the CORBA object. More... | |
RTC::ExecutionContextService_ptr | getObjRef (void) const |
const char * | getKindString (RTC::ExecutionKind kind) const |
Converting ExecutionKind enum to string. More... | |
RTC::ReturnCode_t | setKind (RTC::ExecutionKind kind) |
Set the ExecutionKind. More... | |
RTC::ReturnCode_t | setOwner (RTC::LightweightRTObject_ptr comp) |
Setting owner component of the execution context. More... | |
const RTC::RTObject_ptr | getOwner () const |
Getting a reference of the owner component. More... | |
const RTC::RTCList & | getComponentList () const |
Getting participant RTC list. More... | |
void | setProperties (coil::Properties &props) |
Setting Properties. More... | |
const coil::Properties | getProperties () const |
Setting Properties. More... | |
const RTC::ExecutionContextProfile & | getProfile (void) const |
Getting Profile. More... | |
bool | isAllCurrentState (RTC::LifeCycleState state) |
bool | isAllNextState (RTC::LifeCycleState state) |
bool | isOneOfCurrentState (RTC::LifeCycleState state) |
bool | isOneOfNextState (RTC::LifeCycleState state) |
void | invokeWorker () |
void | invokeWorkerPreDo () |
void | invokeWorkerDo () |
void | invokeWorkerPostDo () |
Additional Inherited Members | |
Protected Member Functions inherited from RTC::OpenHRPExecutionContext | |
virtual RTC::ReturnCode_t | onAddedComponent (RTC::LightweightRTObject_ptr rtobj) |
onAddedComponent() template function More... | |
virtual RTC::ReturnCode_t | onRemovedComponent (RTC::LightweightRTObject_ptr rtobj) |
onRemovedComponent() template function More... | |
Protected Member Functions inherited from RTC::ExecutionContextBase | |
virtual bool | onIsRunning (bool running) |
virtual RTC::ReturnCode_t | onStarting () |
virtual RTC::ReturnCode_t | onStarted () |
virtual RTC::ReturnCode_t | onStopping () |
virtual RTC::ReturnCode_t | onStopped () |
virtual double | onGetRate (double rate) const |
virtual double | onSettingRate (double rate) |
virtual RTC::ReturnCode_t | onSetRate (double rate) |
virtual RTC::ReturnCode_t | onAddingComponent (RTC::LightweightRTObject_ptr rtobj) |
virtual RTC::ReturnCode_t | onRemovingComponent (RTC::LightweightRTObject_ptr rtobj) |
virtual RTC::ReturnCode_t | onActivating (RTC::LightweightRTObject_ptr comp) |
virtual RTC::ReturnCode_t | onWaitingActivated (RTC_impl::RTObjectStateMachine *comp, long int count) |
virtual RTC::ReturnCode_t | onActivated (RTC_impl::RTObjectStateMachine *comp, long int count) |
virtual RTC::ReturnCode_t | onDeactivating (RTC::LightweightRTObject_ptr comp) |
virtual RTC::ReturnCode_t | onWaitingDeactivated (RTC_impl::RTObjectStateMachine *comp, long int count) |
virtual RTC::ReturnCode_t | onDeactivated (RTC_impl::RTObjectStateMachine *comp, long int count) |
virtual RTC::ReturnCode_t | onResetting (RTC::LightweightRTObject_ptr comp) |
virtual RTC::ReturnCode_t | onWaitingReset (RTC_impl::RTObjectStateMachine *comp, long int count) |
virtual RTC::ReturnCode_t | onReset (RTC_impl::RTObjectStateMachine *comp, long int count) |
virtual RTC::LifeCycleState | onGetComponentState (RTC::LifeCycleState state) |
virtual RTC::ExecutionKind | onGetKind (RTC::ExecutionKind kind) const |
virtual RTC::ExecutionContextProfile * | onGetProfile (RTC::ExecutionContextProfile *&profile) |
Protected Attributes inherited from RTC::OpenHRPExecutionContext | |
coil::Mutex | m_tickmutex |
Mutex to gurad tick() reenter. More... | |
Protected Attributes inherited from RTC::ExecutionContextBase | |
RTC::Logger | rtclog |
RTC_impl::ExecutionContextWorker | m_worker |
RTC_impl::ExecutionContextProfile | m_profile |
coil::TimeValue | m_activationTimeout |
coil::TimeValue | m_deactivationTimeout |
coil::TimeValue | m_resetTimeout |
bool | m_syncActivation |
bool | m_syncDeactivation |
bool | m_syncReset |
SimulatorExecutionContext class.
RTC::SimulatorExecutionContext::SimulatorExecutionContext | ( | ) |
Constructor.
|
virtual |
Destructor.
|
virtual |
Activate an RT-component.
comp | The target RT-Component for activation |
Reimplemented from RTC::OpenHRPExecutionContext.
|
virtual |
Activate an RT-component.
comp | The target RT-Component for deactivate |
Reimplemented from RTC::OpenHRPExecutionContext.
|
virtual |
Activate an RT-component.
comp | The target RT-Component for reset |
Reimplemented from RTC::OpenHRPExecutionContext.