A repository for auction factories.
More...
#include <AuctionFactoryRepository.h>
|
void | init (void) |
| Initializes factories for all supported GAMS auctions. More...
|
|
A repository for auction factories.
Definition at line 76 of file AuctionFactoryRepository.h.
gams::auctions::AuctionFactoryRepository::AuctionFactoryRepository |
( |
const std::string & |
agent_prefix, |
|
|
madara::knowledge::KnowledgeBase * |
knowledge = 0 |
|
) |
| |
Constructor.
- Parameters
-
agent_prefix | the name of this bidder (e.g. agent.0) |
knowledge | a knowledge base where auction info is |
virtual gams::auctions::AuctionFactoryRepository::~AuctionFactoryRepository |
( |
| ) |
|
|
virtual |
Adds an algorithm factory.
- Parameters
-
type | the type for this factory |
factory | the factory for creating an algorithm |
- Returns
- the new algorithm
AuctionBase* gams::auctions::AuctionFactoryRepository::create |
( |
const std::string & |
auction_prefix | ) |
|
Creates an auction based on type.
- Parameters
-
auction_prefix | the name of the auction (e.g. auction.position) |
- Returns
- the new auction
Creates an auction based on type.
- Parameters
-
type | the type of the auction ( |
- See also
- AuctionTypes)
- Returns
- the new auction
void gams::auctions::AuctionFactoryRepository::init |
( |
void |
| ) |
|
|
protected |
Initializes factories for all supported GAMS auctions.
void gams::auctions::AuctionFactoryRepository::set_agent_prefix |
( |
const std::string & |
prefix | ) |
|
Sets the prefix for the current bidding agent.
- Parameters
-
prefix | the name of the agent (e.g. agent.0) |
void gams::auctions::AuctionFactoryRepository::set_knowledge |
( |
madara::knowledge::KnowledgeBase * |
knowledge | ) |
|
Sets the knowledge base.
- Parameters
-
knowledge | the knowledge base to use |
std::string gams::auctions::AuctionFactoryRepository::agent_prefix_ |
|
protected |
madara::knowledge::KnowledgeBase* gams::auctions::AuctionFactoryRepository::knowledge_ |
|
protected |
The documentation for this class was generated from the following file: