54 #ifndef _GAMS_ALGORITHMS_WAIT_H_
55 #define _GAMS_ALGORITHMS_WAIT_H_
66 #include "madara/utility/EpochEnforcer.h"
87 const double& wait_time,
88 madara::knowledge::KnowledgeBase * knowledge = 0,
124 madara::utility::EpochEnforcer<std::chrono::steady_clock>
enforcer_;
149 const madara::knowledge::KnowledgeMap & args,
150 madara::knowledge::KnowledgeBase * knowledge,
Copyright(c) 2014 Carnegie Mellon University.
Copyright(c) 2014 Carnegie Mellon University.
Copyright(c) 2014 Carnegie Mellon University.
Copyright(c) 2014 Carnegie Mellon University.
Base class for algorithm factories that classes derived from.
The base class that algorithms in GAMS use.
A factory class for creating Wait algorithms.
virtual BaseAlgorithm * create(const madara::knowledge::KnowledgeMap &args, madara::knowledge::KnowledgeBase *knowledge, platforms::BasePlatform *platform, variables::Sensors *sensors, variables::Self *self, variables::Agents *agents)
Creates a Wait Algorithm.
An algorithm for waiting.
void operator=(const Wait &rhs)
Assignment operator.
madara::utility::EpochEnforcer< std::chrono::steady_clock > enforcer_
an enforcer for max wait time
Wait(const double &wait_time, madara::knowledge::KnowledgeBase *knowledge=0, platforms::BasePlatform *platform=0, variables::Sensors *sensors=0, variables::Self *self=0)
Constructor.
virtual int plan(void)
Plans the next execution of the algorithm.
virtual int analyze(void)
Analyzes environment, platform, or other information.
virtual int execute(void)
Plans the next execution of the algorithm.
A container for self referencing information.
std::map< std::string, Sensor * > Sensors
a map of sensor names to the sensor information
std::vector< Agent > Agents
An array of agent knowledge.
Contains all GAMS-related tools, classes and code.