7 #ifndef DYNAMIC_GRAPH_COMMAND_H
8 #define DYNAMIC_GRAPH_COMMAND_H
12 #include "dynamic-graph/dynamic-graph-api.h"
13 #include "dynamic-graph/value.h"
43 const std::string &docstring);
63 std::vector<Value::Type> valueTypeVector_;
64 std::vector<Value> valueVector_;
65 std::string docstring_;
68 static const std::vector<Value::Type> EMPTY_ARG;
This class represents an entity, i.e. a generic computational unit that provides input and output sig...
const std::vector< Value > & getParameterValues() const
Get parameter values.
Command(Entity &entity, const std::vector< Value::Type > &valueTypes, const std::string &docstring)
Value execute()
Execute the command after checking parameters.
const std::vector< Value::Type > & valueTypes() const
Return the value type of all parameters.
std::string getDocstring() const
Get documentation string.
void setParameterValues(const std::vector< Value > &values)
Set parameter values.
virtual Value doExecute()=0
Specific action performed by the command.
Entity & owner()
Get a reference to the Entity owning this command.
This class implements a variant design pattern to handle basic types in Command.