Orocos Real-Time Toolkit
2.8.3
|
Objects that implement this interface are to be executed in the ExecutionEngine. More...
#include <rtt/base/ExecutableInterface.hpp>
Public Member Functions | |
void | loaded (ExecutionEngine *ee) |
Called by the ExecutionEngine ee to tell this object it is being loaded. More... | |
void | unloaded () |
Called by the ExecutionEngine ee to tell this object it is being unloaded. More... | |
ExecutableInterface () | |
virtual | ~ExecutableInterface () |
virtual void | loading () |
Informs this object that it got loaded in an ExecutionEngine. More... | |
bool | isLoaded () |
Returns true if this object is loaded in an ExecutionEngine. More... | |
ExecutionEngine * | getEngine () |
Returns the ExecutionEngine this object is loaded into or null otherwise. More... | |
virtual bool | execute ()=0 |
Executes a piece of functionality. More... | |
virtual void | unloading () |
Informs this object that it got unloaded from an ExecutionEngine. More... | |
Protected Attributes | |
ExecutionEngine * | engine |
Objects that implement this interface are to be executed in the ExecutionEngine.
One can insert and remove objects that implement this interface safely in and out the ExecutionEngine.
Be careful that all these functions may be called from a hard real-time context.
Definition at line 58 of file ExecutableInterface.hpp.
|
inline |
Definition at line 80 of file ExecutableInterface.hpp.
|
inlinevirtual |
Definition at line 81 of file ExecutableInterface.hpp.
|
pure virtual |
Executes a piece of functionality.
Called by the ExecutionEngine directly.
Implemented in RTT::scripting::StateMachine, RTT::scripting::FunctionGraph, and RTT::scripting::ProgramInterface.
Referenced by RTT::ExecutionEngine::processFunctions().
|
inline |
Returns the ExecutionEngine this object is loaded into or null otherwise.
Definition at line 102 of file ExecutableInterface.hpp.
Referenced by RTT::scripting::StateMachine::createEventTransition(), RTT::scripting::StateMachine::loading(), RTT::scripting::FunctionGraph::~FunctionGraph(), and RTT::scripting::StateMachine::~StateMachine().
|
inline |
Returns true if this object is loaded in an ExecutionEngine.
Definition at line 95 of file ExecutableInterface.hpp.
Referenced by RTT::RemoveMsg::done(), RTT::scripting::FunctionGraph::pause(), RTT::ExecutionEngine::removeFunction(), RTT::scripting::FunctionGraph::start(), RTT::scripting::FunctionGraph::step(), RTT::scripting::FunctionGraph::~FunctionGraph(), and RTT::scripting::StateMachine::~StateMachine().
|
inline |
Called by the ExecutionEngine ee to tell this object it is being loaded.
The engine pointer is set first and the user's loading() function is called next.
ee | The pointer to the engine calling us. |
Definition at line 70 of file ExecutableInterface.hpp.
Referenced by RTT::scripting::StateInterface::loaded(), and RTT::ExecutionEngine::runFunction().
|
inlinevirtual |
Informs this object that it got loaded in an ExecutionEngine.
Called by load() after the engine pointer is set.
Reimplemented in RTT::scripting::StateMachine, and RTT::scripting::FunctionGraph.
Definition at line 89 of file ExecutableInterface.hpp.
|
inline |
Called by the ExecutionEngine ee to tell this object it is being unloaded.
The user's loading() function is called first and the engine pointer is cleared next.
Definition at line 78 of file ExecutableInterface.hpp.
Referenced by RTT::ExecutionEngine::processFunctions(), RTT::ExecutionEngine::removeFunction(), and RTT::ExecutionEngine::~ExecutionEngine().
|
inlinevirtual |
Informs this object that it got unloaded from an ExecutionEngine.
Called by unload() before the engine pointer is cleared.
Reimplemented in RTT::scripting::StateMachine, RTT::scripting::FunctionGraph, and RTT::scripting::ParsedStateMachine.
Definition at line 118 of file ExecutableInterface.hpp.
|
protected |
Definition at line 61 of file ExecutableInterface.hpp.