54 #ifndef _GAMS_ALGORITHMS_ALGORITHM_FACTORY_H_
55 #define _GAMS_ALGORITHMS_ALGORITHM_FACTORY_H_
62 #include "madara/knowledge/KnowledgeBase.h"
96 const madara::knowledge::KnowledgeMap & args,
97 madara::knowledge::KnowledgeBase * knowledge,
Copyright(c) 2014-2018 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.
void set_agents(variables::Agents *agents)
Sets list of agents participating in swarm.
variables::Self * self_
self-referencing variables
AlgorithmFactory()
Constructor.
variables::Sensors * sensors_
sensor variables
variables::Agents * agents_
list of agents participating in the swarm
virtual BaseAlgorithm * create(const madara::knowledge::KnowledgeMap &args, madara::knowledge::KnowledgeBase *knowledge, platforms::BasePlatform *platform, variables::Sensors *sensors, variables::Self *self, variables::Agents *agents)=0
Creates an algorithm.
platforms::BasePlatform * platform_
platform variables
void set_self(variables::Self *self)
Sets self-referencing variables.
madara::knowledge::KnowledgeBase * knowledge_
knowledge base containing variables
void set_knowledge(madara::knowledge::KnowledgeBase *knowledge)
Sets the knowledge base.
void set_sensors(variables::Sensors *sensors)
Sets the map of sensor names to sensor information.
void set_platform(platforms::BasePlatform *platform)
Sets the map of platform names to platform information.
virtual ~AlgorithmFactory()
Destructor.
The base class that algorithms in GAMS use.
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.