Orocos Real-Time Toolkit
2.9.0
|
This class represents a state with all actions stored in an external program. More...
#include <rtt/scripting/StateDescription.hpp>
Public Member Functions | |
StateDescription (const std::string &_name, int linenr) | |
Construct a new State with entry, exit and handle nodes. More... | |
virtual | ~StateDescription () |
const std::string & | getName () const |
Get the name of this state. More... | |
void | setName (const std::string &newname) |
void | setEntryPoint (int line) |
int | getEntryPoint () const |
Get the beginning definition of this State. More... | |
StateDescription * | postponeState () |
This function returns a new state that contains all the data of this state ( its handle, entry, exit programs, and its name and inited state ), while this state's data is reset ( i.e. More... | |
ProgramInterface * | getEntryProgram () const |
Get the entry program of this State. More... | |
ProgramInterface * | getRunProgram () const |
Get the run program of this State. More... | |
ProgramInterface * | getHandleProgram () const |
Get the handle program of this State. More... | |
ProgramInterface * | getExitProgram () const |
Get the exit program of this State. More... | |
void | setEntryProgram (ProgramInterfacePtr entry) |
void | setRunProgram (ProgramInterfacePtr run) |
void | setHandleProgram (ProgramInterfacePtr handle) |
void | setExitProgram (ProgramInterfacePtr exit) |
bool | isDefined () const |
void | setDefined (bool d) |
StateDescription * | copy (std::map< const base::DataSourceBase *, base::DataSourceBase * > &replacementdss) const |
virtual void | loaded (ExecutionEngine *ee) |
This class represents a state with all actions stored in an external program.
Definition at line 51 of file StateDescription.hpp.
|
inline |
Construct a new State with entry, exit and handle nodes.
The StateGraph owning the nodes is needed for processing each state.
Definition at line 66 of file StateDescription.hpp.
Referenced by copy(), and postponeState().
|
virtual |
Definition at line 57 of file StateDescription.cpp.
|
virtual |
Implements RTT::scripting::StateInterface.
Definition at line 60 of file StateDescription.cpp.
References isDefined(), setEntryProgram(), setExitProgram(), setHandleProgram(), setRunProgram(), and StateDescription().
|
inlinevirtual |
Get the beginning definition of this State.
Implements RTT::scripting::StateInterface.
Definition at line 78 of file StateDescription.hpp.
|
inlinevirtual |
Get the entry program of this State.
Implements RTT::scripting::StateInterface.
Definition at line 93 of file StateDescription.hpp.
Referenced by RTT::scripting::StateGraphParser::getParserResult().
|
inlinevirtual |
Get the exit program of this State.
Implements RTT::scripting::StateInterface.
Definition at line 105 of file StateDescription.hpp.
Referenced by RTT::scripting::StateGraphParser::getParserResult().
|
inlinevirtual |
Get the handle program of this State.
Implements RTT::scripting::StateInterface.
Definition at line 101 of file StateDescription.hpp.
Referenced by RTT::scripting::StateGraphParser::getParserResult().
|
inlinevirtual |
Get the name of this state.
Implements RTT::scripting::StateInterface.
Definition at line 74 of file StateDescription.hpp.
Referenced by RTT::scripting::StateGraphParser::getParserResult(), and postponeState().
|
inlinevirtual |
Get the run program of this State.
Implements RTT::scripting::StateInterface.
Definition at line 97 of file StateDescription.hpp.
Referenced by RTT::scripting::StateGraphParser::getParserResult().
|
inline |
Definition at line 125 of file StateDescription.hpp.
Referenced by copy(), RTT::scripting::StateGraphParser::getParserResult(), and postponeState().
|
virtualinherited |
Definition at line 55 of file StateInterface.cpp.
References RTT::scripting::StateInterface::getEntryProgram(), RTT::scripting::StateInterface::getExitProgram(), RTT::scripting::StateInterface::getHandleProgram(), RTT::scripting::StateInterface::getRunProgram(), and RTT::base::ExecutableInterface::loaded().
StateDescription * RTT::StateDescription::postponeState | ( | ) |
This function returns a new state that contains all the data of this state ( its handle, entry, exit programs, and its name and inited state ), while this state's data is reset ( i.e.
its handle, entry, exit programs are set to null, its name is cleared, and it is set to not inited ). This is used by the parser when it suddenly notices that it needs to insert a dummy state before the current to check preconditions.
Definition at line 45 of file StateDescription.cpp.
References getName(), isDefined(), setDefined(), setEntryProgram(), setExitProgram(), setHandleProgram(), setRunProgram(), and StateDescription().
Referenced by RTT::scripting::StateGraphParser::storeOffset().
|
inline |
Definition at line 130 of file StateDescription.hpp.
Referenced by RTT::scripting::StateGraphParser::getParserResult(), postponeState(), and RTT::scripting::StateGraphParser::storeOffset().
|
inline |
Definition at line 77 of file StateDescription.hpp.
Referenced by RTT::scripting::StateGraphParser::getParserResult().
|
inline |
Definition at line 109 of file StateDescription.hpp.
Referenced by copy(), RTT::scripting::StateGraphParser::getParserResult(), and postponeState().
|
inline |
Definition at line 121 of file StateDescription.hpp.
Referenced by copy(), RTT::scripting::StateGraphParser::getParserResult(), and postponeState().
|
inline |
Definition at line 117 of file StateDescription.hpp.
Referenced by copy(), RTT::scripting::StateGraphParser::getParserResult(), and postponeState().
|
inline |
Definition at line 75 of file StateDescription.hpp.
|
inline |
Definition at line 113 of file StateDescription.hpp.
Referenced by copy(), RTT::scripting::StateGraphParser::getParserResult(), and postponeState().