GAMS  1.2.2
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 
77  PlatformFactory ();
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 
105  void set_knowledge (
106  madara::knowledge::KnowledgeBase * knowledge);
107 
112  void set_platforms (variables::Platforms * platforms);
113 
118  void set_self (variables::Self * self);
119 
124  void set_sensors (variables::Sensors * sensors);
125 
126  protected:
127 
129  madara::knowledge::KnowledgeBase * knowledge_;
130 
133 
136 
139  };
140  }
141 }
142 
143 #endif // _GAMS_PLATFORM_FACTORY_H_
variables::Platforms * platforms_
platform variables
std::map< std::string, Sensor * > Sensors
a map of sensor names to the sensor information
Definition: Sensor.h:238
variables::Self * self_
self-referencing variables
The base platform for all platforms to use.
Definition: BasePlatform.h:190
Copyright (c) 2014 Carnegie Mellon University.
Copyright (c) 2014 Carnegie Mellon University.
Contains all GAMS-related tools, classes and code.
A container for self referencing information.
Definition: Self.h:69
Copyright (c) 2014 Carnegie Mellon University.
std::map< std::string, PlatformStatus > Platforms
a map of sensor names to the sensor information
#define GAMS_EXPORT
Definition: GamsExport.h:20
madara::knowledge::KnowledgeBase * knowledge_
knowledge base containing variables
Base class for platform factories to create BasePlatforms.
variables::Sensors * sensors_
sensor variables
Copyright (c) 2014 Carnegie Mellon University.