#include <PeriodicExecutionContext.h>
Public Member Functions | |
DFPBase (RTC::ExecutionContextHandle_t id) | |
Constructor. More... | |
virtual ExecContextState | get_state (void) |
Get the current state of the target component. More... | |
virtual void | on_aborting (const ECStates &st)=0 |
Pure virtual function to be invoked when RT-Component occurs error. More... | |
virtual void | on_activated (const ECStates &st)=0 |
Pure virtual function to be invoked when RT-Component is activated. More... | |
virtual void | on_deactivated (const ECStates &st)=0 |
Pure virtual function to be invoked when RT-Component is deactivated. More... | |
virtual void | on_error (const ECStates &st)=0 |
Pure virtual function to be invoked while RT-Component is in the error state. More... | |
virtual void | on_execute (const ECStates &st)=0 |
Pure virtual function to be periodically invoked while RT-Component is running. More... | |
virtual void | on_rate_changed (void)=0 |
Pure virtual function to be invoked when when the execution cycles of ExecutionContext is changed. More... | |
virtual void | on_reset (const ECStates &st)=0 |
Pure virtual function to be invoked when RT-Component resets. More... | |
virtual void | on_shutdown (void)=0 |
Pure virtual function to be invoked when ExecutionContext stops. More... | |
virtual void | on_startup (void)=0 |
Pure virtual function to be invoked when ExecutionContext starts. More... | |
virtual void | on_state_update (const ECStates &st)=0 |
Pure virtual function to be periodically invoked while RT-Component is running. More... | |
virtual void | worker (void) |
Get the worker to execute the state transition. More... | |
virtual | ~DFPBase (void) |
Destructor. More... | |
Public Attributes | |
ExecutionContextHandle_t | ec_id |
ID of participating ExecutionContext. More... | |
RTC_Utils::StateMachine< ExecContextState, DFPBase > | m_sm |
The state machine of the target RT-Component to manage. More... | |
DFPBase class.
The abstract class to manage DataFlowParticipant registered in tha participant list.
Definition at line 670 of file PeriodicExecutionContext.h.
|
inline |
Constructor.
Constructor
id | ID of participating ExecutionContext |
Definition at line 691 of file PeriodicExecutionContext.h.
|
inlinevirtual |
|
inlinevirtual |
Get the current state of the target component.
Get the current state of the target component to manage
Definition at line 997 of file PeriodicExecutionContext.h.
|
pure virtual |
Pure virtual function to be invoked when RT-Component occurs error.
Pure virtual function to be invoked when the RTC is transiting from the Active state to the Error state in some execution context.
st | The current state of the target RT-Component |
Implemented in RTC::PeriodicExecutionContext::DFP< Object >, and RTC::PeriodicExecutionContext::DFP< OpenRTM::DataFlowComponent_var >.
|
pure virtual |
Pure virtual function to be invoked when RT-Component is activated.
Pure virtual function to be invoked when the RTC has been activated in the given execution context.
st | The current state of the target RT-Component |
Implemented in RTC::PeriodicExecutionContext::DFP< Object >, and RTC::PeriodicExecutionContext::DFP< OpenRTM::DataFlowComponent_var >.
|
pure virtual |
Pure virtual function to be invoked when RT-Component is deactivated.
Pure virtual function to be invoked when the RTC has been deactivated in the given execution context.
st | The current state of the target RT-Component |
Implemented in RTC::PeriodicExecutionContext::DFP< Object >, and RTC::PeriodicExecutionContext::DFP< OpenRTM::DataFlowComponent_var >.
|
pure virtual |
Pure virtual function to be invoked while RT-Component is in the error state.
If the RTC is in the Error state relative to some execution context when it would otherwise be invoked from that context. This operation shall be invoked in sorted order at the rate of the context instead of DataFlowComponentAction::on_execute and on_state_update.The RTC is transitioning from the Active state to the Error state in some execution context.
st | The current state of the target RT-Component |
Implemented in RTC::PeriodicExecutionContext::DFP< Object >, and RTC::PeriodicExecutionContext::DFP< OpenRTM::DataFlowComponent_var >.
|
pure virtual |
Pure virtual function to be periodically invoked while RT-Component is running.
This operation will be invoked periodically at the rate of the given execution context as long as the following conditions hold:
st | The current state of the target RT-Component |
Implemented in RTC::PeriodicExecutionContext::DFP< Object >, and RTC::PeriodicExecutionContext::DFP< OpenRTM::DataFlowComponent_var >.
|
pure virtual |
Pure virtual function to be invoked when when the execution cycles of ExecutionContext is changed.
This operation is a notification that the rate of the indicated execution context has changed.
Implemented in RTC::PeriodicExecutionContext::DFP< Object >, and RTC::PeriodicExecutionContext::DFP< OpenRTM::DataFlowComponent_var >.
|
pure virtual |
Pure virtual function to be invoked when RT-Component resets.
The RTC is in the Error state. An attempt is being made to recover it such that it can return to the Inactive state. If the RTC was successfully recovered and can safely return to the Inactive state, this method shall complete with ReturnCode_t::OK. Any other result shall indicate that the RTC should remain in the Error state.
st | The current state of the target RT-Component |
Implemented in RTC::PeriodicExecutionContext::DFP< Object >, and RTC::PeriodicExecutionContext::DFP< OpenRTM::DataFlowComponent_var >.
|
pure virtual |
Pure virtual function to be invoked when ExecutionContext stops.
Pure virtual function to be invoked when given execution context, in which the RTC is participating, has transited from Running to Stopped.
Implemented in RTC::PeriodicExecutionContext::DFP< Object >, and RTC::PeriodicExecutionContext::DFP< OpenRTM::DataFlowComponent_var >.
|
pure virtual |
Pure virtual function to be invoked when ExecutionContext starts.
Pure virtual function to be invoked when given execution context, in which the RTC is participating, has transited from Stopped to Running.
Implemented in RTC::PeriodicExecutionContext::DFP< Object >, and RTC::PeriodicExecutionContext::DFP< OpenRTM::DataFlowComponent_var >.
|
pure virtual |
Pure virtual function to be periodically invoked while RT-Component is running.
This operation will be invoked periodically at the rate of the given execution context as long as the following conditions hold:
st | The current state of the target RT-Component |
Implemented in RTC::PeriodicExecutionContext::DFP< Object >, and RTC::PeriodicExecutionContext::DFP< OpenRTM::DataFlowComponent_var >.
|
inlinevirtual |
Get the worker to execute the state transition.
Get the worker that executes the state transition of the target component to manage.
Definition at line 978 of file PeriodicExecutionContext.h.
ExecutionContextHandle_t RTC::PeriodicExecutionContext::DFPBase::ec_id |
ID of participating ExecutionContext.
Definition at line 1006 of file PeriodicExecutionContext.h.
RTC_Utils::StateMachine<ExecContextState, DFPBase> RTC::PeriodicExecutionContext::DFPBase::m_sm |
The state machine of the target RT-Component to manage.
Definition at line 1015 of file PeriodicExecutionContext.h.