GAMS  1.4.0
gams::groups::GroupTransientFactory Class Reference

Factory for creating GroupTransient groups. More...

#include <GroupTransient.h>

Inheritance diagram for gams::groups::GroupTransientFactory:
gams::groups::GroupFactory

Public Member Functions

 GroupTransientFactory ()
 Constructor. More...
 
virtual ~GroupTransientFactory ()
 Destructor. More...
 
virtual GroupBasecreate (const std::string &prefix, madara::knowledge::KnowledgeBase *knowledge)
 Creates a group. More...
 
void set_knowledge (madara::knowledge::KnowledgeBase *knowledge)
 Sets the knowledge base. More...
 

Protected Attributes

madara::knowledge::KnowledgeBase * knowledge_
 knowledge base containing variables More...
 

Detailed Description

Factory for creating GroupTransient groups.

Definition at line 170 of file GroupTransient.h.

Constructor & Destructor Documentation

◆ GroupTransientFactory()

gams::groups::GroupTransientFactory::GroupTransientFactory ( )

Constructor.

◆ ~GroupTransientFactory()

virtual gams::groups::GroupTransientFactory::~GroupTransientFactory ( )
virtual

Destructor.

Member Function Documentation

◆ create()

virtual GroupBase* gams::groups::GroupTransientFactory::create ( const std::string &  prefix,
madara::knowledge::KnowledgeBase *  knowledge 
)
virtual

Creates a group.

Parameters
prefixthe name of the group(e.g. group.protectors)
knowledgethe knowledge base of variables and values
Returns
the new group

Implements gams::groups::GroupFactory.

◆ set_knowledge()

void gams::groups::GroupFactory::set_knowledge ( madara::knowledge::KnowledgeBase *  knowledge)
inherited

Sets the knowledge base.

Parameters
knowledgethe knowledge base to use

Member Data Documentation

◆ knowledge_

madara::knowledge::KnowledgeBase* gams::groups::GroupFactory::knowledge_
protectedinherited

knowledge base containing variables

Definition at line 103 of file GroupFactory.h.


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