9 #include "Sem_PlanParts.hpp"
21 bool isDefined()
const;
23 std::string toString()
const;
25 friend bool operator==(
ActionType const &v1 ,
ActionType const &v2) {
return v1._value==v2._value;}
26 friend bool operator!=(
ActionType const &v1 ,
ActionType const &v2) {
return v1._value!=v2._value;}
30 static std::vector<ActionType> currentlyDefinedActionTypes();
34 static std::vector<std::string> __stringValues;
47 std::vector<PlanningType>
const &requiredParts()
const;
48 void setRequiredParts(
const std::vector<PlanningType> &requiredParts);
51 void setActionType(
const ActionType &actionType);
53 std::vector<PlanningType> hriParts()
const;
54 void setHriParts(
const std::vector<PlanningType> &hriParts);
57 const std::set<AgentType> &include()
const;
58 std::set<AgentType> &include();
59 void setInclude(
const std::set<AgentType> &include);
62 const std::set<AgentType> &exclude()
const;
63 std::set<AgentType> &exclude();
64 void setExclude(
const std::set<AgentType> &exclude);
72 std::vector<PlanningType> _requiredParts;
73 std::vector<PlanningType> _hriParts;
75 std::set<AgentType> _include;
76 std::set<AgentType> _exclude;
91 std::string getPath();
96 bool importJsonFile(
const std::string &path);
97 bool importJsonFile(
const std::string &path,
ActionType t);
99 bool addActionDef(
ActionType t, Json::Value
const & value);
115 void setProactive(
bool proactive);
118 std::string _global_json_path;
119 std::map<ActionType,ActionDefinition*> _actions;
124 #endif // SEM_ACTIONS_H
Definition: Sem_AgentType.hpp:12
This file implements macros to help with the logging, in a way similar to ROS, using log4cxx...
bool proactive() const
proactive means that json data will be loaded on creation, otherwise it is read on getPlanPart() call...
Definition: Sem_Actions.cpp:470
bool isWhiteListed(AgentType agent_type) const
consider include and exclude lists
Definition: Sem_Actions.cpp:162
Definition: Sem_Actions.hpp:14
Definition: Sem_Actions.hpp:80
Definition: Sem_Actions.hpp:39