Orocos Real-Time Toolkit  2.6.0
Public Member Functions | Protected Attributes
RTT::base::ExecutableInterface Class Reference

Objects that implement this interface are to be executed in the ExecutionEngine. More...

#include <rtt/base/ExecutableInterface.hpp>

Inheritance diagram for RTT::base::ExecutableInterface:
RTT::scripting::ProgramInterface RTT::scripting::StateMachine RTT::scripting::FunctionGraph RTT::scripting::ParsedStateMachine

List of all members.

Public Member Functions

void loaded (ExecutionEngine *ee)
 Called by the ExecutionEngine ee to tell this object it is being loaded.
void unloaded ()
 Called by the ExecutionEngine ee to tell this object it is being unloaded.
virtual void loading ()
 Informs this object that it got loaded in an ExecutionEngine.
bool isLoaded ()
 Returns true if this object is loaded in an ExecutionEngine.
ExecutionEnginegetEngine ()
 Returns the ExecutionEngine this object is loaded into or null otherwise.
virtual bool execute ()=0
 Executes a piece of functionality.
virtual void unloading ()
 Informs this object that it got unloaded from an ExecutionEngine.

Protected Attributes

ExecutionEngineengine

Detailed Description

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.


Member Function Documentation

virtual bool RTT::base::ExecutableInterface::execute ( ) [pure virtual]

Executes a piece of functionality.

Called by the ExecutionEngine directly.

Returns:
false if this object should no longer be executed.

Implemented in RTT::scripting::StateMachine, RTT::scripting::FunctionGraph, and RTT::scripting::ProgramInterface.

Returns the ExecutionEngine this object is loaded into or null otherwise.

Returns:

Definition at line 102 of file ExecutableInterface.hpp.

Referenced by RTT::scripting::StateMachine::loading(), and RTT::scripting::StateMachine::~StateMachine().

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.

Parameters:
eeThe pointer to the engine calling us.

Definition at line 70 of file ExecutableInterface.hpp.

Referenced by RTT::ExecutionEngine::runFunction().

virtual void RTT::base::ExecutableInterface::loading ( ) [inline, virtual]

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.

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::removeFunction().

virtual void RTT::base::ExecutableInterface::unloading ( ) [inline, virtual]

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.


The documentation for this class was generated from the following file: