54 #ifndef _GAMS_ALGORITHMS_CONTROLLER_ALGORITHM_FACTORY_H_ 55 #define _GAMS_ALGORITHMS_CONTROLLER_ALGORITHM_FACTORY_H_ 57 #include "madara/utility/Refcounter.h" 64 #include "madara/knowledge/KnowledgeBase.h" 91 madara::knowledge::KnowledgeBase * knowledge = 0,
109 void add (
const std::vector <std::string> & aliases,
119 const madara::knowledge::KnowledgeMap & args = madara::knowledge::KnowledgeMap ());
131 void set_knowledge (madara::knowledge::KnowledgeBase * knowledge);
154 void initialize_default_mappings (
void);
192 #endif // _GAMS_ALGORITHMS_CONTROLLER_ALGORITHM_FACTORY_H_ Base class for algorithm factories that classes derived from.
variables::Self * self_
self-referencing variables
The controller's algorithm factory.
Copyright (c) 2014 Carnegie Mellon University.
std::map< std::string, Sensor * > Sensors
a map of sensor names to the sensor information
AlgorithmFactoryMap factory_map_
a map of all aliases to factories
Copyright (c) 2014 Carnegie Mellon University.
std::vector< Agent > Agents
An array of agent knowledge.
Copyright (c) 2014 Carnegie Mellon University.
platforms::BasePlatform * platform_
platform variables
Contains all GAMS-related tools, classes and code.
A container for self referencing information.
bool init_finished_
flag for seeing if an init defaultshas stopped
The base class that algorithms in GAMS use.
Copyright (c) 2014 Carnegie Mellon University.
variables::Agents * agents_
list of agents participating in the swarm
bool init_started_
flag for seeing if an init defaults has started
GAMS_EXPORT AlgorithmFactoryRepository * global_algorithm_factory()
A globally accessible algorithm factory.
Copyright (c) 2014-2018 Carnegie Mellon University.
variables::Sensors * sensors_
sensor variables
madara::knowledge::KnowledgeBase * knowledge_
knowledge base containing variables
std::map< std::string, AlgorithmFactory * > AlgorithmFactoryMap
Convenience typedef for a map of aliases to factories.