A factory class for creating Java Algorithms.
More...
#include <JavaAlgorithm.h>
A factory class for creating Java Algorithms.
Definition at line 156 of file JavaAlgorithm.h.
◆ JavaAlgorithmFactory()
gams::algorithms::JavaAlgorithmFactory::JavaAlgorithmFactory |
( |
jobject |
obj | ) |
|
◆ ~JavaAlgorithmFactory()
virtual gams::algorithms::JavaAlgorithmFactory::~JavaAlgorithmFactory |
( |
| ) |
|
|
virtual |
◆ create()
Creates a Java Algorithm.
- Parameters
-
args | first arg is where to store the executions tracker in the knowledge base. Default is ".executions" when no args are provided. |
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.
◆ get_java_instance()
jobject gams::algorithms::JavaAlgorithmFactory::get_java_instance |
( |
void |
| ) |
|
◆ set_agents()
Sets list of agents participating in swarm.
- Parameters
-
agents | agents in the swarm |
◆ set_knowledge()
void gams::algorithms::AlgorithmFactory::set_knowledge |
( |
madara::knowledge::KnowledgeBase * |
knowledge | ) |
|
|
inherited |
Sets the knowledge base.
- Parameters
-
knowledge | the knowledge base to use |
◆ set_platform()
Sets the map of platform names to platform information.
- Parameters
-
platform | the platform to use |
◆ set_self()
void gams::algorithms::AlgorithmFactory::set_self |
( |
variables::Self * |
self | ) |
|
|
inherited |
Sets self-referencing variables.
- Parameters
-
self | self-referencing variables |
◆ set_sensors()
Sets the map of sensor names to sensor information.
- Parameters
-
sensors | map of sensor names to sensor information |
◆ agents_
◆ knowledge_
madara::knowledge::KnowledgeBase* gams::algorithms::AlgorithmFactory::knowledge_ |
|
protectedinherited |
◆ obj_
jobject gams::algorithms::JavaAlgorithmFactory::obj_ |
|
protected |
◆ platform_
◆ self_
◆ sensors_
The documentation for this class was generated from the following file: