RTT::scripting::StateInterface Class Reference

#include <StateInterface.hpp>

Inheritance diagram for RTT::scripting::StateInterface:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual StateInterfacecopy (std::map< const base::DataSourceBase *, base::DataSourceBase * > &replacementdss) const =0
virtual StateInterfacecopy (std::map< const base::DataSourceBase *, base::DataSourceBase * > &replacementdss) const =0
virtual int getEntryPoint () const =0
virtual int getEntryPoint () const =0
virtual ProgramInterfacegetEntryProgram () const =0
virtual ProgramInterfacegetEntryProgram () const =0
virtual ProgramInterfacegetExitProgram () const =0
virtual ProgramInterfacegetExitProgram () const =0
virtual ProgramInterfacegetHandleProgram () const =0
virtual ProgramInterfacegetHandleProgram () const =0
virtual const std::string & getName () const =0
 Get the name of this state.
virtual const std::string & getName () const =0
 Get the name of this state.
virtual ProgramInterfacegetRunProgram () const =0
virtual ProgramInterfacegetRunProgram () const =0
virtual void loaded (ExecutionEngine *ee)
virtual void loaded (ExecutionEngine *ee)
virtual ~StateInterface ()
virtual ~StateInterface ()

Detailed Description

A State contains an entry, run, handle and exit program.

The entry and exit programs will be called when the state is entered of left. The handle program will be called each time the state is requested and no transition is made. The run program will be called before any transition is evaluated.

Thus when we are in state A and want to switch to state B, the following happens :

     * in State A :
     *   call A->run();
     * if ( transition to B allowed )
     *   call A->onExit();
     *   call B->onEntry();
     *   return true;
     * else
     *   call A->handle();
     *   return false;
     * 

Error recovery can be handled inside these programs, if even that fails, the programs return false and the state machine containing this state is considered in error.

Definition at line 81 of file install/include/rtt/scripting/StateInterface.hpp.


Constructor & Destructor Documentation

virtual RTT::scripting::StateInterface::~StateInterface (  )  [virtual]
virtual RTT::scripting::StateInterface::~StateInterface (  )  [virtual]

Member Function Documentation

virtual StateInterface* RTT::scripting::StateInterface::copy ( std::map< const base::DataSourceBase *, base::DataSourceBase * > &  replacementdss  )  const [pure virtual]
virtual StateInterface* RTT::scripting::StateInterface::copy ( std::map< const base::DataSourceBase *, base::DataSourceBase * > &  replacementdss  )  const [pure virtual]
virtual int RTT::scripting::StateInterface::getEntryPoint (  )  const [pure virtual]

Get the beginning definition of this State.

Implemented in RTT::scripting::StateDescription, and RTT::scripting::StateDescription.

virtual int RTT::scripting::StateInterface::getEntryPoint (  )  const [pure virtual]

Get the beginning definition of this State.

Implemented in RTT::scripting::StateDescription, and RTT::scripting::StateDescription.

virtual ProgramInterface* RTT::scripting::StateInterface::getEntryProgram (  )  const [pure virtual]

Get the entry program of this State.

Implemented in RTT::scripting::StateDescription, and RTT::scripting::StateDescription.

virtual ProgramInterface* RTT::scripting::StateInterface::getEntryProgram (  )  const [pure virtual]

Get the entry program of this State.

Implemented in RTT::scripting::StateDescription, and RTT::scripting::StateDescription.

virtual ProgramInterface* RTT::scripting::StateInterface::getExitProgram (  )  const [pure virtual]

Get the exit program of this State.

Implemented in RTT::scripting::StateDescription, and RTT::scripting::StateDescription.

virtual ProgramInterface* RTT::scripting::StateInterface::getExitProgram (  )  const [pure virtual]

Get the exit program of this State.

Implemented in RTT::scripting::StateDescription, and RTT::scripting::StateDescription.

virtual ProgramInterface* RTT::scripting::StateInterface::getHandleProgram (  )  const [pure virtual]

Get the handle program of this State.

Implemented in RTT::scripting::StateDescription, and RTT::scripting::StateDescription.

virtual ProgramInterface* RTT::scripting::StateInterface::getHandleProgram (  )  const [pure virtual]

Get the handle program of this State.

Implemented in RTT::scripting::StateDescription, and RTT::scripting::StateDescription.

virtual const std::string& RTT::scripting::StateInterface::getName (  )  const [pure virtual]

Get the name of this state.

Implemented in RTT::scripting::StateDescription, and RTT::scripting::StateDescription.

virtual const std::string& RTT::scripting::StateInterface::getName (  )  const [pure virtual]

Get the name of this state.

Implemented in RTT::scripting::StateDescription, and RTT::scripting::StateDescription.

virtual ProgramInterface* RTT::scripting::StateInterface::getRunProgram (  )  const [pure virtual]

Get the run program of this State.

Implemented in RTT::scripting::StateDescription, and RTT::scripting::StateDescription.

virtual ProgramInterface* RTT::scripting::StateInterface::getRunProgram (  )  const [pure virtual]

Get the run program of this State.

Implemented in RTT::scripting::StateDescription, and RTT::scripting::StateDescription.

virtual void RTT::scripting::StateInterface::loaded ( ExecutionEngine ee  )  [virtual]
virtual void RTT::scripting::StateInterface::loaded ( ExecutionEngine ee  )  [virtual]

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:50:16 2013