GAMS  1.4.0
AuctionFactory.h
Go to the documentation of this file.
1 
54 #ifndef _GAMS_AUCTIONS_AUCTION_FACTORY_H_
55 #define _GAMS_AUCTIONS_AUCTION_FACTORY_H_
56 
57 #include <vector>
58 #include <string>
59 #include <map>
60 
61 #include "madara/knowledge/KnowledgeBase.h"
62 #include "AuctionBase.h"
63 
64 namespace gams
65 {
66  namespace auctions
67  {
72  {
73  public:
78 
82  virtual ~AuctionFactory();
83 
91  virtual AuctionBase * create(const std::string & auction_prefix,
92  const std::string & agent_prefix,
93  madara::knowledge::KnowledgeBase * knowledge ) = 0;
94 
99  void set_knowledge(madara::knowledge::KnowledgeBase * knowledge);
100 
105  void set_agent_prefix(const std::string & prefix);
106 
107  protected:
108 
112  std::string agent_prefix_;
113 
115  madara::knowledge::KnowledgeBase * knowledge_;
116  };
117  }
118 }
119 
120 #endif // _GAMS_AUCTIONS_AUCTION_FACTORY_H_
Copyright(c) 2016 Carnegie Mellon University.
#define GAMS_EXPORT
Definition: GamsExport.h:20
Base class for an auction.
Definition: AuctionBase.h:79
Base class for an auction factory.
virtual AuctionBase * create(const std::string &auction_prefix, const std::string &agent_prefix, madara::knowledge::KnowledgeBase *knowledge)=0
Creates a auction.
std::string agent_prefix_
self prefix of the agent
madara::knowledge::KnowledgeBase * knowledge_
knowledge base containing variables
virtual ~AuctionFactory()
Destructor.
void set_agent_prefix(const std::string &prefix)
Sets the prefix for the current bidding agent.
void set_knowledge(madara::knowledge::KnowledgeBase *knowledge)
Sets the knowledge base.
Contains all GAMS-related tools, classes and code.