65 #include "madara/knowledge/containers/Integer.h" 66 #include "madara/knowledge/containers/Double.h" 67 #include "madara/knowledge/containers/String.h" 68 #include "madara/knowledge/containers/DoubleVector.h" 69 #include "madara/knowledge/KnowledgeBase.h" 85 MapeLoop (madara::knowledge::KnowledgeBase & knowledge);
95 void define_mape (
const std::string & loop =
96 "monitor (); analyze (); plan (); execute ()");
103 void define_monitor (
104 madara::knowledge::KnowledgeRecord (*func) (
105 madara::knowledge::FunctionArguments &,
106 madara::knowledge::Variables &));
113 void define_analyze (
114 madara::knowledge::KnowledgeRecord (*func) (
115 madara::knowledge::FunctionArguments &,
116 madara::knowledge::Variables &));
124 madara::knowledge::KnowledgeRecord (*func) (
125 madara::knowledge::FunctionArguments &,
126 madara::knowledge::Variables &));
133 void define_execute (
134 madara::knowledge::KnowledgeRecord (*func) (
135 madara::knowledge::FunctionArguments &,
136 madara::knowledge::Variables &));
144 void init_vars (madara::knowledge::KnowledgeBase & knowledge,
145 const madara::knowledge::KnowledgeRecord::Integer &
id = 0,
146 const madara::knowledge::KnowledgeRecord::Integer & processes = -1);
154 madara::knowledge::KnowledgeRecord run (
double period = 0.5,
155 double max_runtime = -1);
180 #endif // _GAMS_LOOP_H_ A container for swarm information.
madara::knowledge::KnowledgeBase & knowledge_
knowledge base
Copyright (c) 2014 Carnegie Mellon University.
std::map< std::string, Sensor * > Sensors
a map of sensor names to the sensor information
Copyright (c) 2014 Carnegie Mellon University.
std::vector< Agent > Agents
An array of agent knowledge.
Copyright (c) 2014 Carnegie Mellon University.
variables::Self self_
Containers for self-referencing variables.
GAMS_EXPORT void init_vars(AccentStatuses &variables, madara::knowledge::KnowledgeBase &knowledge, const std::string &prefix)
Initializes accent status containers.
Contains all GAMS-related tools, classes and code.
A container for self referencing information.
A highly extensible MAPE loop.
variables::Sensors sensors_
Containers for sensor information.
variables::Swarm swarm_
Containers for swarm-related variables.
madara::knowledge::CompiledExpression mape_loop_
Compiled MAPE MapeLoop.
Copyright (c) 2014-2018 Carnegie Mellon University.
variables::Agents agents_
Containers for agent-related variables.
Copyright (c) 2014 Carnegie Mellon University.