GAMS  1.4.0
gams::platforms::PlatformFactory Class Referenceabstract

Base class for platform factories to create BasePlatforms. More...

#include <PlatformFactory.h>

Inheritance diagram for gams::platforms::PlatformFactory:
gams::platforms::DebugPlatformFactory gams::platforms::NullPlatformFactory gams::platforms::PlatformCollectionFactory

Public Member Functions

 PlatformFactory ()
 Constructor. More...
 
virtual ~PlatformFactory ()
 Destructor. More...
 
virtual BasePlatformcreate (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::Platformsplatforms_
 platform variables More...
 
variables::Selfself_
 self-referencing variables More...
 
variables::Sensorssensors_
 sensor variables More...
 

Detailed Description

Base class for platform factories to create BasePlatforms.

Definition at line 70 of file PlatformFactory.h.

Constructor & Destructor Documentation

◆ PlatformFactory()

gams::platforms::PlatformFactory::PlatformFactory ( )

Constructor.

◆ ~PlatformFactory()

virtual gams::platforms::PlatformFactory::~PlatformFactory ( )
virtual

Destructor.

Member Function Documentation

◆ create()

virtual BasePlatform* gams::platforms::PlatformFactory::create ( const madara::knowledge::KnowledgeMap &  args,
madara::knowledge::KnowledgeBase *  knowledge,
variables::Sensors sensors,
variables::Platforms platforms,
variables::Self self 
)
pure virtual

Creates a platform.

Parameters
argsa vector of Knowledge Record arguments
knowledgethe knowledge base to use
sensorsthe sensors available
platformsthe status of platforms
selfself-referencing information
Returns
the new platform

Implemented in gams::platforms::PlatformCollectionFactory, gams::platforms::NullPlatformFactory, and gams::platforms::DebugPlatformFactory.

◆ set_knowledge()

void gams::platforms::PlatformFactory::set_knowledge ( madara::knowledge::KnowledgeBase *  knowledge)

Sets the knowledge base.

Parameters
knowledgethe knowledge base to use

◆ set_platforms()

void gams::platforms::PlatformFactory::set_platforms ( variables::Platforms platforms)

Sets the map of platform names to platform information.

Parameters
platformsmap of platform names to platform information

◆ set_self()

void gams::platforms::PlatformFactory::set_self ( variables::Self self)

Sets self-referencing variables.

Parameters
selfself-referencing variables

◆ set_sensors()

void gams::platforms::PlatformFactory::set_sensors ( variables::Sensors sensors)

Sets the map of sensor names to sensor information.

Parameters
sensorsmap of sensor names to sensor information

Member Data Documentation

◆ knowledge_

madara::knowledge::KnowledgeBase* gams::platforms::PlatformFactory::knowledge_
protected

knowledge base containing variables

Definition at line 129 of file PlatformFactory.h.

◆ platforms_

variables::Platforms* gams::platforms::PlatformFactory::platforms_
protected

platform variables

Definition at line 132 of file PlatformFactory.h.

◆ self_

variables::Self* gams::platforms::PlatformFactory::self_
protected

self-referencing variables

Definition at line 135 of file PlatformFactory.h.

◆ sensors_

variables::Sensors* gams::platforms::PlatformFactory::sensors_
protected

sensor variables

Definition at line 138 of file PlatformFactory.h.


The documentation for this class was generated from the following file: