39 #include "../base/ActionInterface.hpp" 40 #include "../internal/DataSource.hpp" 43 using namespace detail;
80 return command->
valid();
~VertexNode()
Returns a special program node that contains no clauses and a special stopExecution command...
base::ActionInterface * getCommand() const
Returns the command currently associated with this node.
void startExecution()
This means that the execution engine has just started to execute this node, after some other node has...
virtual void reset()
Reset this action.
This class represents elements in a program tree.
virtual void readArguments()=0
This is invoked some time before execute() at a time when the action may read its function arguments...
virtual bool valid() const
Inspect if this action was executed and valid.
VertexNode()
Construct an empty program node with no command, no conditional branches and line number 0...
VertexNode copy(std::map< const base::DataSourceBase *, base::DataSourceBase * > &rdss) const
int getLineNumber() const
Returns the program line number currently associated with this program node (default = zero)...
virtual ActionInterface * clone() const =0
The Clone Software Pattern.
base::ActionInterface * setCommand(base::ActionInterface *c)
Set the command associated with this program to the given command.
virtual bool execute()=0
Execute the functionality of this action.
Based on the software pattern 'command', this interface allows execution of action objects...
bool isValid() const
Returns true if the node is in a valid state to be left.
bool execute()
Executes the command currently associated with this node.
void setLineNumber(int ln)
Set line number of this program node to given line number.
VertexNode & operator=(const VertexNode &orig)
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.