RTT::base::ExecutableInterface Class Reference

#include <ExecutableInterface.hpp>

Inheritance diagram for RTT::base::ExecutableInterface:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ExecutableInterface ()
 ExecutableInterface ()
virtual bool execute ()=0
virtual bool execute ()=0
ExecutionEnginegetEngine ()
ExecutionEnginegetEngine ()
bool isLoaded ()
bool isLoaded ()
void loaded (ExecutionEngine *ee)
void loaded (ExecutionEngine *ee)
virtual void loading ()
virtual void loading ()
void unloaded ()
void unloaded ()
virtual void unloading ()
virtual void unloading ()
virtual ~ExecutableInterface ()
virtual ~ExecutableInterface ()

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 install/include/rtt/base/ExecutableInterface.hpp.


Constructor & Destructor Documentation

RTT::base::ExecutableInterface::ExecutableInterface (  )  [inline]
virtual RTT::base::ExecutableInterface::~ExecutableInterface (  )  [inline, virtual]
RTT::base::ExecutableInterface::ExecutableInterface (  )  [inline]

Definition at line 80 of file rtt/base/ExecutableInterface.hpp.

virtual RTT::base::ExecutableInterface::~ExecutableInterface (  )  [inline, virtual]

Definition at line 81 of file rtt/base/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::FunctionGraph, RTT::scripting::ProgramInterface, RTT::scripting::StateMachine, RTT::scripting::FunctionGraph, RTT::scripting::ProgramInterface, and RTT::scripting::StateMachine.

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::FunctionGraph, RTT::scripting::ProgramInterface, RTT::scripting::StateMachine, RTT::scripting::FunctionGraph, RTT::scripting::ProgramInterface, and RTT::scripting::StateMachine.

ExecutionEngine* RTT::base::ExecutableInterface::getEngine (  )  [inline]

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

Returns:

Definition at line 102 of file rtt/base/ExecutableInterface.hpp.

ExecutionEngine* RTT::base::ExecutableInterface::getEngine (  )  [inline]

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

Returns:

Definition at line 102 of file install/include/rtt/base/ExecutableInterface.hpp.

bool RTT::base::ExecutableInterface::isLoaded (  )  [inline]

Returns true if this object is loaded in an ExecutionEngine.

Returns:
true if so.

Definition at line 95 of file rtt/base/ExecutableInterface.hpp.

bool RTT::base::ExecutableInterface::isLoaded (  )  [inline]

Returns true if this object is loaded in an ExecutionEngine.

Returns:
true if so.

Definition at line 95 of file install/include/rtt/base/ExecutableInterface.hpp.

void RTT::base::ExecutableInterface::loaded ( ExecutionEngine ee  )  [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.

Parameters:
ee The pointer to the engine calling us.

Definition at line 70 of file rtt/base/ExecutableInterface.hpp.

void RTT::base::ExecutableInterface::loaded ( ExecutionEngine ee  )  [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.

Parameters:
ee The pointer to the engine calling us.

Definition at line 70 of file install/include/rtt/base/ExecutableInterface.hpp.

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::FunctionGraph, RTT::scripting::StateMachine, RTT::scripting::FunctionGraph, and RTT::scripting::StateMachine.

Definition at line 89 of file rtt/base/ExecutableInterface.hpp.

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::FunctionGraph, RTT::scripting::StateMachine, RTT::scripting::FunctionGraph, and RTT::scripting::StateMachine.

Definition at line 89 of file install/include/rtt/base/ExecutableInterface.hpp.

void RTT::base::ExecutableInterface::unloaded (  )  [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 rtt/base/ExecutableInterface.hpp.

void RTT::base::ExecutableInterface::unloaded (  )  [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 install/include/rtt/base/ExecutableInterface.hpp.

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::FunctionGraph, RTT::scripting::ParsedStateMachine, RTT::scripting::StateMachine, RTT::scripting::FunctionGraph, RTT::scripting::ParsedStateMachine, and RTT::scripting::StateMachine.

Definition at line 118 of file rtt/base/ExecutableInterface.hpp.

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::FunctionGraph, RTT::scripting::ParsedStateMachine, RTT::scripting::StateMachine, RTT::scripting::FunctionGraph, RTT::scripting::ParsedStateMachine, and RTT::scripting::StateMachine.

Definition at line 118 of file install/include/rtt/base/ExecutableInterface.hpp.


Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


rtt
Author(s): RTT Developers
autogenerated on Fri Jan 11 09:49:51 2013