54 #ifndef _GAMS_ELECTIONS_ELECTION_FACTORY_H_
55 #define _GAMS_ELECTIONS_ELECTION_FACTORY_H_
61 #include "madara/knowledge/KnowledgeBase.h"
92 const std::string & agent_prefix,
93 madara::knowledge::KnowledgeBase * knowledge) = 0;
Copyright(c) 2016 Carnegie Mellon University.
Base class for an election.
Base class for an auction factory.
void set_knowledge(madara::knowledge::KnowledgeBase *knowledge)
Sets the knowledge base.
void set_agent_prefix(const std::string &prefix)
Sets the prefix for the current bidding agent.
madara::knowledge::KnowledgeBase * knowledge_
knowledge base containing variables
virtual ~ElectionFactory()
Destructor.
std::string agent_prefix_
self prefix of the agent
ElectionFactory()
Constructor.
virtual ElectionBase * create(const std::string &auction_prefix, const std::string &agent_prefix, madara::knowledge::KnowledgeBase *knowledge)=0
Creates a auction.
Contains all GAMS-related tools, classes and code.