38 #ifndef STATE_DESCRIPTION_HPP 39 #define STATE_DESCRIPTION_HPP 45 {
namespace scripting {
67 : mentry(), mexit(), mhandle(), mrun(),
68 name(_name), entrypoint(linenr), inited(false)
74 const std::string&
getName()
const {
return name; }
75 void setName(
const std::string& newname) { name = newname; }
102 return mhandle.get();
134 StateDescription* copy( std::map<const base::DataSourceBase*, base::DataSourceBase*>& replacementdss )
const;
ProgramInterface * getHandleProgram() const
Get the handle program of this State.
void setEntryProgram(ProgramInterfacePtr entry)
int getEntryPoint() const
Get the beginning definition of this State.
void setHandleProgram(ProgramInterfacePtr handle)
void setRunProgram(ProgramInterfacePtr run)
void setEntryPoint(int line)
const std::string & getName() const
Get the name of this state.
This class represents a state with all actions stored in an external program.
#define RTT_SCRIPTING_API
boost::shared_ptr< ProgramInterface > ProgramInterfacePtr
StateDescription(const std::string &_name, int linenr)
Construct a new State with entry, exit and handle nodes.
ProgramInterface * getEntryProgram() const
Get the entry program of this State.
void setExitProgram(ProgramInterfacePtr exit)
void setName(const std::string &newname)
ProgramInterface * getRunProgram() const
Get the run program of this State.
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
A State contains an entry, run, handle and exit program.
A Program represents a collection of instructions that can be stepwise executed.
ProgramInterface * getExitProgram() const
Get the exit program of this State.