GAMS
1.4.0
|
Base class for platform factories to create BasePlatforms. More...
#include <PlatformFactory.h>
Public Member Functions | |
PlatformFactory () | |
Constructor. More... | |
virtual | ~PlatformFactory () |
Destructor. More... | |
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. More... | |
void | set_knowledge (madara::knowledge::KnowledgeBase *knowledge) |
Sets the knowledge base. More... | |
void | set_platforms (variables::Platforms *platforms) |
Sets the map of platform names to platform information. More... | |
void | set_self (variables::Self *self) |
Sets self-referencing variables. More... | |
void | set_sensors (variables::Sensors *sensors) |
Sets the map of sensor names to sensor information. More... | |
Protected Attributes | |
madara::knowledge::KnowledgeBase * | knowledge_ |
knowledge base containing variables More... | |
variables::Platforms * | platforms_ |
platform variables More... | |
variables::Self * | self_ |
self-referencing variables More... | |
variables::Sensors * | sensors_ |
sensor variables More... | |
Base class for platform factories to create BasePlatforms.
Definition at line 70 of file PlatformFactory.h.
gams::platforms::PlatformFactory::PlatformFactory | ( | ) |
Constructor.
|
virtual |
Destructor.
|
pure virtual |
Creates a platform.
args | a vector of Knowledge Record arguments |
knowledge | the knowledge base to use |
sensors | the sensors available |
platforms | the status of platforms |
self | self-referencing information |
Implemented in gams::platforms::PlatformCollectionFactory, gams::platforms::NullPlatformFactory, and gams::platforms::DebugPlatformFactory.
void gams::platforms::PlatformFactory::set_knowledge | ( | madara::knowledge::KnowledgeBase * | knowledge | ) |
Sets the knowledge base.
knowledge | the knowledge base to use |
void gams::platforms::PlatformFactory::set_platforms | ( | variables::Platforms * | platforms | ) |
Sets the map of platform names to platform information.
platforms | map of platform names to platform information |
void gams::platforms::PlatformFactory::set_self | ( | variables::Self * | self | ) |
Sets self-referencing variables.
self | self-referencing variables |
void gams::platforms::PlatformFactory::set_sensors | ( | variables::Sensors * | sensors | ) |
Sets the map of sensor names to sensor information.
sensors | map of sensor names to sensor information |
|
protected |
knowledge base containing variables
Definition at line 129 of file PlatformFactory.h.
|
protected |
platform variables
Definition at line 132 of file PlatformFactory.h.
|
protected |
self-referencing variables
Definition at line 135 of file PlatformFactory.h.
|
protected |
sensor variables
Definition at line 138 of file PlatformFactory.h.