GAMS  1.4.0
NullAlgorithm.h
Go to the documentation of this file.
1 
54 #ifndef _GAMS_ALGORITHMS_NULL_H_
55 #define _GAMS_ALGORITHMS_NULL_H_
56 
57 #include "gams/variables/Sensor.h"
60 #include "gams/variables/Self.h"
63 
64 namespace gams
65 {
66  namespace algorithms
67  {
72  {
73  public:
82  madara::knowledge::KnowledgeBase * knowledge = 0,
83  platforms::BasePlatform * platform = 0,
84  variables::Sensors * sensors = 0,
85  variables::Self * self = 0);
86 
91 
96  void operator=(const NullAlgorithm & rhs);
97 
102  virtual int analyze(void);
103 
108  virtual int execute(void);
109 
114  virtual int plan(void);
115  };
116 
121  {
122  public:
123 
139  const madara::knowledge::KnowledgeMap & args,
140  madara::knowledge::KnowledgeBase * knowledge,
141  platforms::BasePlatform * platform,
142  variables::Sensors * sensors,
143  variables::Self * self,
144  variables::Agents * agents);
145  };
146  }
147 }
148 
149 #endif // _GAMS_ALGORITHMS_NULL_H_
Copyright(c) 2014 Carnegie Mellon University.
Copyright(c) 2014 Carnegie Mellon University.
Copyright(c) 2014 Carnegie Mellon University.
#define GAMS_EXPORT
Definition: GamsExport.h:20
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.
Definition: BaseAlgorithm.h:95
A factory class for creating Null algorithms.
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 Move Algorithm.
An algorithm that performs no-ops for all methods.
Definition: NullAlgorithm.h:72
virtual int analyze(void)
Analyzes environment, platform, or other information.
virtual int execute(void)
Plans the next execution of the algorithm.
virtual int plan(void)
Plans the next execution of the algorithm.
void operator=(const NullAlgorithm &rhs)
Assignment operator.
NullAlgorithm(madara::knowledge::KnowledgeBase *knowledge=0, platforms::BasePlatform *platform=0, variables::Sensors *sensors=0, variables::Self *self=0)
Constructor.
The base platform for all platforms to use.
Definition: BasePlatform.h:113
A container for self referencing information.
Definition: Self.h:70
std::map< std::string, Sensor * > Sensors
a map of sensor names to the sensor information
Definition: Sensor.h:238
std::vector< Agent > Agents
An array of agent knowledge.
Definition: Agent.h:246
Contains all GAMS-related tools, classes and code.