54 #ifndef _GAMS_ELECTIONS_ELECTION_FACTORY_REPOSITORY_H_ 55 #define _GAMS_ELECTIONS_ELECTION_FACTORY_REPOSITORY_H_ 61 #include "madara/knowledge/KnowledgeBase.h" 85 const std::string & agent_prefix,
86 madara::knowledge::KnowledgeBase * knowledge = 0);
107 ElectionBase * create (
const std::string & election_prefix);
120 void set_knowledge (madara::knowledge::KnowledgeBase * knowledge);
126 void set_agent_prefix (
const std::string & prefix);
150 #include "ElectionFactoryRepository.inl" 152 #endif // _GAMS_ELECTIONS_ELECTION_FACTORY_REPOSITORY_H_ std::string agent_prefix_
self prefix of the agent
A repository for election factories.
madara::knowledge::KnowledgeBase * knowledge_
knowledge base containing variables
madara::knowledge::KnowledgeRecord::Integer ElectionType
convenience typedef for ElectionType
std::map< ElectionType, ElectionFactory * > ElectionFactoryMap
Convenience typedef for a map of types to factories.
Contains all GAMS-related tools, classes and code.
Base class for an auction factory.
ElectionFactoryMap factory_map_
a mapping of types to election factories
Copyright (c) 2016 Carnegie Mellon University.
Base class for an election.