GAMS  1.4.0
PlatformFactory.h
Go to the documentation of this file.
1 
54 #ifndef _GAMS_PLATFORM_FACTORY_H_
55 #define _GAMS_PLATFORM_FACTORY_H_
56 
59 #include "gams/variables/Self.h"
60 #include "gams/variables/Sensor.h"
61 #include "madara/knowledge/KnowledgeBase.h"
62 
63 namespace gams
64 {
65  namespace platforms
66  {
71  {
72  public:
73 
78 
82  virtual ~PlatformFactory();
83 
94  virtual BasePlatform * create(
95  const madara::knowledge::KnowledgeMap & args,
96  madara::knowledge::KnowledgeBase * knowledge,
97  variables::Sensors * sensors,
98  variables::Platforms * platforms,
99  variables::Self * self) = 0;
100 
106  madara::knowledge::KnowledgeBase * knowledge);
107 
113 
118  void set_self(variables::Self * self);
119 
125 
126  protected:
127 
129  madara::knowledge::KnowledgeBase * knowledge_;
130 
133 
136 
139  };
140  }
141 }
142 
143 #endif // _GAMS_PLATFORM_FACTORY_H_
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.
Copyright(c) 2014 Carnegie Mellon University.
The base platform for all platforms to use.
Definition: BasePlatform.h:113
Base class for platform factories to create BasePlatforms.
void set_sensors(variables::Sensors *sensors)
Sets the map of sensor names to sensor information.
virtual BasePlatform * create(const madara::knowledge::KnowledgeMap &args, madara::knowledge::KnowledgeBase *knowledge, variables::Sensors *sensors, variables::Platforms *platforms, variables::Self *self)=0
Creates a platform.
variables::Platforms * platforms_
platform variables
variables::Self * self_
self-referencing variables
void set_self(variables::Self *self)
Sets self-referencing variables.
void set_knowledge(madara::knowledge::KnowledgeBase *knowledge)
Sets the knowledge base.
variables::Sensors * sensors_
sensor variables
madara::knowledge::KnowledgeBase * knowledge_
knowledge base containing variables
void set_platforms(variables::Platforms *platforms)
Sets the map of platform names to platform information.
virtual ~PlatformFactory()
Destructor.
A container for self referencing information.
Definition: Self.h:70
std::map< std::string, PlatformStatus > Platforms
a map of sensor names to the sensor information
std::map< std::string, Sensor * > Sensors
a map of sensor names to the sensor information
Definition: Sensor.h:238
Contains all GAMS-related tools, classes and code.