GAMS
1.4.0
|
Base class for algorithm factories that classes derived from. More...
#include <AlgorithmFactory.h>
Public Member Functions | |
AlgorithmFactory () | |
Constructor. More... | |
virtual | ~AlgorithmFactory () |
Destructor. More... | |
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. More... | |
void | set_agents (variables::Agents *agents) |
Sets list of agents participating in swarm. More... | |
void | set_knowledge (madara::knowledge::KnowledgeBase *knowledge) |
Sets the knowledge base. More... | |
void | set_platform (platforms::BasePlatform *platform) |
Sets the map of platform names to platform information. More... | |
void | set_self (variables::Self *self) |
Sets self-referencing variables. More... | |
void | set_sensors (variables::Sensors *sensors) |
Sets the map of sensor names to sensor information. More... | |
Protected Attributes | |
variables::Agents * | agents_ |
list of agents participating in the swarm More... | |
madara::knowledge::KnowledgeBase * | knowledge_ |
knowledge base containing variables More... | |
platforms::BasePlatform * | platform_ |
platform variables More... | |
variables::Self * | self_ |
self-referencing variables More... | |
variables::Sensors * | sensors_ |
sensor variables More... | |
Base class for algorithm factories that classes derived from.
Definition at line 72 of file AlgorithmFactory.h.
gams::algorithms::AlgorithmFactory::AlgorithmFactory | ( | ) |
Constructor.
|
virtual |
Destructor.
|
pure virtual |
Creates an algorithm.
args | a vector of Knowledge Record arguments |
knowledge | the knowledge base of variables and values |
platform | the underlying platform the algorithm will use |
sensors | map of sensor names to sensor information |
self | self-referencing variables for this agent |
agents | list of agents in the swarm |
Implemented in gams::algorithms::ZoneCoverageFactory, gams::algorithms::WaitFactory, gams::algorithms::TakeoffFactory, gams::algorithms::SpellFactory, gams::algorithms::PerimeterPatrolFactory, gams::algorithms::PerformanceProfilingFactory, gams::algorithms::NullAlgorithmFactory, gams::algorithms::MoveFactory, gams::algorithms::MessageProfilingFactory, gams::algorithms::LandFactory, gams::algorithms::KarlEvaluatorFactory, gams::algorithms::JavaAlgorithmFactory, gams::algorithms::HomeFactory, gams::algorithms::HoldFactory, gams::algorithms::GroupBarrierFactory, gams::algorithms::GreetFactory, gams::algorithms::FormationSyncFactory, gams::algorithms::FormationFlyingFactory, gams::algorithms::FormationCoverageFactory, gams::algorithms::FollowFactory, gams::algorithms::ExecutorFactory, gams::algorithms::DebugAlgorithmFactory, gams::algorithms::area_coverage::WaypointsCoverageFactory, gams::algorithms::area_coverage::UniformRandomEdgeCoverageFactory, gams::algorithms::area_coverage::UniformRandomAreaCoverageFactory, gams::algorithms::area_coverage::SnakeAreaCoverageFactory, gams::algorithms::area_coverage::PriorityWeightedRandomAreaCoverageFactory, gams::algorithms::area_coverage::PrioritizedMinTimeAreaCoverageFactory, gams::algorithms::area_coverage::PerimeterPatrolCoverageFactory, gams::algorithms::area_coverage::MinTimeAreaCoverageFactory, and gams::algorithms::area_coverage::LocalPheremoneAreaCoverageFactory.
void gams::algorithms::AlgorithmFactory::set_agents | ( | variables::Agents * | agents | ) |
Sets list of agents participating in swarm.
agents | agents in the swarm |
void gams::algorithms::AlgorithmFactory::set_knowledge | ( | madara::knowledge::KnowledgeBase * | knowledge | ) |
Sets the knowledge base.
knowledge | the knowledge base to use |
void gams::algorithms::AlgorithmFactory::set_platform | ( | platforms::BasePlatform * | platform | ) |
Sets the map of platform names to platform information.
platform | the platform to use |
void gams::algorithms::AlgorithmFactory::set_self | ( | variables::Self * | self | ) |
Sets self-referencing variables.
self | self-referencing variables |
void gams::algorithms::AlgorithmFactory::set_sensors | ( | variables::Sensors * | sensors | ) |
Sets the map of sensor names to sensor information.
sensors | map of sensor names to sensor information |
|
protected |
list of agents participating in the swarm
Definition at line 139 of file AlgorithmFactory.h.
|
protected |
knowledge base containing variables
Definition at line 136 of file AlgorithmFactory.h.
|
protected |
platform variables
Definition at line 142 of file AlgorithmFactory.h.
|
protected |
self-referencing variables
Definition at line 145 of file AlgorithmFactory.h.
|
protected |
sensor variables
Definition at line 148 of file AlgorithmFactory.h.