54 #ifndef _GAMS_ELECTIONS_PLURALITY_ELECTION_H_
55 #define _GAMS_ELECTIONS_PLURALITY_ELECTION_H_
61 #include "madara/knowledge/containers/StringVector.h"
83 const std::string & agent_prefix =
"",
84 madara::knowledge::KnowledgeBase * knowledge = 0);
130 const std::string & agent_prefix =
"",
131 madara::knowledge::KnowledgeBase * knowledge = 0);
Copyright(c) 2016 Carnegie Mellon University.
Copyright(c) 2016 Carnegie Mellon University.
Base class for an election.
Base class for an auction factory.
Factory for creating plurality elections.
ElectionPluralityFactory()
Constructor.
virtual ~ElectionPluralityFactory()
Destructor.
virtual ElectionBase * create(const std::string &election_prefix="", const std::string &agent_prefix="", madara::knowledge::KnowledgeBase *knowledge=0)
Creates a plurality election.
An election that implements plurality voting(NOT IMPLEMENTED)
virtual CandidateList get_leaders(int num_leaders=1)
Returns the leaders of the election in order of popularity or whatever conditions constitute winning ...
ElectionPlurality(const std::string &election_prefix="", const std::string &agent_prefix="", madara::knowledge::KnowledgeBase *knowledge=0)
Constructor.
virtual ~ElectionPlurality()
Constructor.
std::string get_leader(void)
Returns the leader of the voting.
std::vector< std::string > CandidateList
list of candidates
Contains all GAMS-related tools, classes and code.