54 #ifndef _GAMS_ALGORITHMS_EXECUTOR_H_ 55 #define _GAMS_ALGORITHMS_EXECUTOR_H_ 65 #include "madara/utility/EpochEnforcer.h" 84 madara::knowledge::KnowledgeMap
args;
110 AlgorithmMetaDatas algorithms,
112 madara::knowledge::KnowledgeBase * knowledge = 0,
133 virtual int analyze (
void);
139 virtual int execute (
void);
145 virtual int plan (
void);
168 madara::utility::EpochEnforcer<std::chrono::steady_clock>
enforcer_;
192 const madara::knowledge::KnowledgeMap & args,
193 madara::knowledge::KnowledgeBase * knowledge,
202 #endif // _GAMS_ALGORITHMS_EXECUTOR_H_ Base class for algorithm factories that classes derived from.
Copyright (c) 2014 Carnegie Mellon University.
An algorithm capable of executing other algorithms.
int cycles_
tracks the number of cycles completed through algorithms
madara::utility::EpochEnforcer< std::chrono::steady_clock > enforcer_
enforcer for time
Copyright (c) 2014 Carnegie Mellon University.
std::map< std::string, Sensor * > Sensors
a map of sensor names to the sensor information
BaseAlgorithm * current_
current executing algorithm
Copyright (c) 2014 Carnegie Mellon University.
std::vector< Agent > Agents
An array of agent knowledge.
Copyright (c) 2014 Carnegie Mellon University.
int repeat_
number of times to repeat
A factory class for creating Executor algorithms.
AlgorithmMetaDatas algorithms_
for keeping track of algorithms
Contains all GAMS-related tools, classes and code.
size_t alg_index_
current algorithm
A container for self referencing information.
The base class that algorithms in GAMS use.
Copyright (c) 2014 Carnegie Mellon University.
bool precond_met_
indicates if the precondition has been met for current algorithm
std::vector< AlgorithmMetaData > AlgorithmMetaDatas
helper typdef for collection of AlgorithMetaData