GAMS  1.4.0
LocalPheremoneAreaCoverage.h
Go to the documentation of this file.
1 
55 #ifndef _GAMS_ALGORITHMS_AREA_COVERAGE_PHEREMONE_AREA_COVERAGE_H_
56 #define _GAMS_ALGORITHMS_AREA_COVERAGE_PHEREMONE_AREA_COVERAGE_H_
57 
59 #include "gams/pose/SearchArea.h"
60 #include "gams/variables/Sensor.h"
62 
63 namespace gams
64 {
65  namespace algorithms
66  {
67  namespace area_coverage
68  {
73  {
74  public:
86  const std::string& search_id,
87  double e_time,
88  madara::knowledge::KnowledgeBase * knowledge = 0,
89  platforms::BasePlatform * platform = 0,
90  variables::Sensors * sensors = 0,
91  variables::Self * self = 0,
92  variables::Agents * agents = 0);
93 
99 
100  protected:
104  virtual void generate_new_position(void);
105 
108 
111  }; // class LocalPheremoneAreaCoverage
112 
117  : public AlgorithmFactory
118  {
119  public:
120 
136  const madara::knowledge::KnowledgeMap & args,
137  madara::knowledge::KnowledgeBase * knowledge,
138  platforms::BasePlatform * platform,
139  variables::Sensors * sensors,
140  variables::Self * self,
141  variables::Agents * agents);
142  };
143  } // namespace area_coverage
144  } // namespace algorithms
145 } // namespace gams
146 
147 #endif // _GAMS_ALGORITHMS_AREA_COVERAGE_PHEREMONE_AREA_COVERAGE_H_
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.
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 pheremone area coverage 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 pheremone area coverage Algorithm.
Covers an area based on concentrations of virtual pheremones.
void operator=(const LocalPheremoneAreaCoverage &rhs)
Assignment operator.
virtual void generate_new_position(void)
Generate new next position.
LocalPheremoneAreaCoverage(const std::string &search_id, double e_time, madara::knowledge::KnowledgeBase *knowledge=0, platforms::BasePlatform *platform=0, variables::Sensors *sensors=0, variables::Self *self=0, variables::Agents *agents=0)
Constructor.
The base platform for all platforms to use.
Definition: BasePlatform.h:113
A utility class for search areas.
Definition: SearchArea.h:72
A container for self referencing information.
Definition: Self.h:70
A container for sensor information.
Definition: Sensor.h:81
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.
Copyright(c) 2014 Carnegie Mellon University.