Factory for creating plurality elections.
More...
#include <ElectionCumulative.h>
Factory for creating plurality elections.
Definition at line 109 of file ElectionCumulative.h.
gams::elections::ElectionCumulativeFactory::ElectionCumulativeFactory |
( |
| ) |
|
virtual gams::elections::ElectionCumulativeFactory::~ElectionCumulativeFactory |
( |
| ) |
|
|
virtual |
virtual ElectionBase* gams::elections::ElectionCumulativeFactory::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.
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) |
void gams::elections::ElectionFactory::set_knowledge |
( |
madara::knowledge::KnowledgeBase * |
knowledge | ) |
|
|
inherited |
Sets the knowledge base.
- Parameters
-
knowledge | the knowledge base to use |
std::string gams::elections::ElectionFactory::agent_prefix_ |
|
protectedinherited |
madara::knowledge::KnowledgeBase* gams::elections::ElectionFactory::knowledge_ |
|
protectedinherited |
The documentation for this class was generated from the following file: