GAMS
1.4.0
|
A factory class for creating Null algorithms. More...
#include <Home.h>
Public Member Functions | |
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 Null(no-op) 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... | |
|
virtual |
Creates a Null(no-op) Algorithm.
args | this algorithm requires no arguments |
knowledge | the knowledge base to use |
platform | the platform. This will be set by the controller in init_vars. |
sensors | the sensor info. This will be set by the controller in init_vars. |
self | self-referencing variables. This will be set by the controller in init_vars |
agents | the list of agents, which is dictated by init_vars when a number of processes is set. This will be set by the controller in init_vars |
Implements gams::algorithms::AlgorithmFactory.
|
inherited |
Sets list of agents participating in swarm.
agents | agents in the swarm |
|
inherited |
Sets the knowledge base.
knowledge | the knowledge base to use |
|
inherited |
Sets the map of platform names to platform information.
platform | the platform to use |
|
inherited |
Sets self-referencing variables.
self | self-referencing variables |
|
inherited |
Sets the map of sensor names to sensor information.
sensors | map of sensor names to sensor information |
|
protectedinherited |
list of agents participating in the swarm
Definition at line 139 of file AlgorithmFactory.h.
|
protectedinherited |
knowledge base containing variables
Definition at line 136 of file AlgorithmFactory.h.
|
protectedinherited |
platform variables
Definition at line 142 of file AlgorithmFactory.h.
|
protectedinherited |
self-referencing variables
Definition at line 145 of file AlgorithmFactory.h.
|
protectedinherited |
sensor variables
Definition at line 148 of file AlgorithmFactory.h.