A repository for group factories.
More...
#include <GroupFactoryRepository.h>
|
void | init (void) |
| Initializes factories for all supported GAMS groups. More...
|
|
A repository for group factories.
Definition at line 76 of file GroupFactoryRepository.h.
◆ GroupFactoryRepository()
gams::groups::GroupFactoryRepository::GroupFactoryRepository |
( |
madara::knowledge::KnowledgeBase * |
knowledge = 0 | ) |
|
Constructor.
- Parameters
-
knowledge | a knowledge base to look into for group prefixes |
◆ ~GroupFactoryRepository()
virtual gams::groups::GroupFactoryRepository::~GroupFactoryRepository |
( |
| ) |
|
|
virtual |
◆ add()
Adds an algorithm factory.
- Parameters
-
type | the type number for this factory |
factory | the factory for creating an algorithm |
- Returns
- the new algorithm
◆ create() [1/2]
GroupBase* gams::groups::GroupFactoryRepository::create |
( |
const std::string & |
prefix | ) |
|
Creates a group based on group prefix in the knowledge base.
- Parameters
-
prefix | the name of the group(e.g. group.protectors) |
- Returns
- the new group
◆ create() [2/2]
Creates a group based on type.
- Parameters
-
type | the type of the group( |
- See also
- GroupTypes)
- Returns
- the new group
◆ init()
void gams::groups::GroupFactoryRepository::init |
( |
void |
| ) |
|
|
protected |
Initializes factories for all supported GAMS groups.
◆ set_knowledge()
void gams::groups::GroupFactoryRepository::set_knowledge |
( |
madara::knowledge::KnowledgeBase * |
knowledge | ) |
|
Sets the knowledge base.
- Parameters
-
knowledge | the knowledge base to use |
◆ factory_map_
◆ knowledge_
madara::knowledge::KnowledgeBase* gams::groups::GroupFactoryRepository::knowledge_ |
|
protected |
The documentation for this class was generated from the following file: