Public Member Functions | Protected Attributes | List of all members
RTT::base::ExecutableInterface Class Referenceabstract

#include <ExecutableInterface.hpp>

Inheritance diagram for RTT::base::ExecutableInterface:
Inheritance graph

Public Member Functions

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

Protected Attributes


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 60 of file ExecutableInterface.hpp.

Constructor & Destructor Documentation

RTT::base::ExecutableInterface::ExecutableInterface ( )

Definition at line 95 of file ExecutableInterface.hpp.

virtual RTT::base::ExecutableInterface::~ExecutableInterface ( )

Definition at line 96 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.

false if this object should no longer be executed.

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

ExecutionEngine* RTT::base::ExecutableInterface::getEngine ( )

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


Definition at line 117 of file ExecutableInterface.hpp.

bool RTT::base::ExecutableInterface::isLoaded ( )

Returns true if this object is loaded in an ExecutionEngine.

true if so.

Definition at line 110 of file ExecutableInterface.hpp.

void RTT::base::ExecutableInterface::loaded ( ExecutionEngine ee)

Called by the ExecutionEngine ee or before synchronous execution to tell this object it is being loaded. The engine pointer is set first and the user's loading() function is called next.

eeThe pointer to the engine calling us.

Definition at line 73 of file ExecutableInterface.hpp.

virtual void RTT::base::ExecutableInterface::loading ( )

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 104 of file ExecutableInterface.hpp.

void RTT::base::ExecutableInterface::unloaded ( )

Called by the ExecutionEngine ee or after synchronous execution 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 88 of file ExecutableInterface.hpp.

virtual void RTT::base::ExecutableInterface::unloading ( )

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 133 of file ExecutableInterface.hpp.

Member Data Documentation

ExecutionEngine* RTT::base::ExecutableInterface::engine

Definition at line 63 of file ExecutableInterface.hpp.

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

Author(s): RTT Developers
autogenerated on Tue Jun 25 2019 19:33:42