Factory for creating plurality elections.
More...
#include <ElectionPlurality.h>
Factory for creating plurality elections.
Definition at line 108 of file ElectionPlurality.h.
◆ ElectionPluralityFactory()
gams::elections::ElectionPluralityFactory::ElectionPluralityFactory |
( |
| ) |
|
◆ ~ElectionPluralityFactory()
virtual gams::elections::ElectionPluralityFactory::~ElectionPluralityFactory |
( |
| ) |
|
|
virtual |
◆ create()
virtual ElectionBase* gams::elections::ElectionPluralityFactory::create |
( |
const std::string & |
election_prefix = "" , |
|
|
const std::string & |
agent_prefix = "" , |
|
|
madara::knowledge::KnowledgeBase * |
knowledge = 0 |
|
) |
| |
|
virtual |
Creates a plurality election.
- Parameters
-
election_prefix | the name of the election(e.g. election.leader) |
agent_prefix | the name of this bidder(e.g. agent.0) |
knowledge | the knowledge base to use for syncing |
- Returns
- the new group
Implements gams::elections::ElectionFactory.
◆ set_agent_prefix()
void gams::elections::ElectionFactory::set_agent_prefix |
( |
const std::string & |
prefix | ) |
|
|
inherited |
Sets the prefix for the current bidding agent.
- Parameters
-
prefix | the name of the agent(e.g. agent.0) |
◆ set_knowledge()
void gams::elections::ElectionFactory::set_knowledge |
( |
madara::knowledge::KnowledgeBase * |
knowledge | ) |
|
|
inherited |
Sets the knowledge base.
- Parameters
-
knowledge | the knowledge base to use |
◆ agent_prefix_
std::string gams::elections::ElectionFactory::agent_prefix_ |
|
protectedinherited |
◆ knowledge_
madara::knowledge::KnowledgeBase* gams::elections::ElectionFactory::knowledge_ |
|
protectedinherited |
The documentation for this class was generated from the following file: