54 #ifndef _GAMS_ALGORITHM_JAVA_H_
55 #define _GAMS_ALGORITHM_JAVA_H_
62 #include "madara/knowledge/KnowledgeBase.h"
91 madara::knowledge::KnowledgeBase * knowledge = 0,
188 const madara::knowledge::KnowledgeMap & args,
189 madara::knowledge::KnowledgeBase * knowledge,
Copyright(c) 2014 Carnegie Mellon University.
Copyright(c) 2014 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.
The base class that algorithms in GAMS use.
A factory class for creating Java Algorithms.
jobject get_java_instance(void)
Returns the Java instance that implements from AlgorithmFactory.
virtual ~JavaAlgorithmFactory()
Destructor.
JavaAlgorithmFactory(jobject obj)
Constructor.
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 Java Algorithm.
jobject obj_
the Java object with callable methods
A facade for Java algorithms.
jobject obj_
the Java object with callable methods
~JavaAlgorithm()
Destructor.
JavaAlgorithm(jobject obj, madara::knowledge::KnowledgeBase *knowledge=0, platforms::BasePlatform *platform=0, variables::Sensors *sensors=0, variables::Self *self=0, variables::Agents *agents=0)
Constructor.
virtual int execute(void)
Plans the next execution of the algorithm.
virtual std::string get_name() const
Gets the name of the algorithm.
virtual int plan(void)
Plans the next execution of the algorithm.
virtual std::string get_id() const
Gets the unique identifier of the algorithm.
jobject get_java_instance(void)
Returns the Java instance that derives from BaseAlgorithm.
virtual int analyze(void)
Analyzes environment, platform, or other information.
jclass class_
the class of the Java object obj_
void operator=(const JavaAlgorithm &rhs)
Assignment operator.
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.