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