GAMS  1.2.2
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:
77  AuctionFactory ();
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_
Base class for an auction factory.
madara::knowledge::KnowledgeBase * knowledge_
knowledge base containing variables
Copyright (c) 2016 Carnegie Mellon University.
Base class for an auction.
Definition: AuctionBase.h:78
Contains all GAMS-related tools, classes and code.
#define GAMS_EXPORT
Definition: GamsExport.h:20
std::string agent_prefix_
self prefix of the agent