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.
◆ AuctionFactoryRepository()
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 |
◆ ~AuctionFactoryRepository()
virtual gams::auctions::AuctionFactoryRepository::~AuctionFactoryRepository |
( |
| ) |
|
|
virtual |
◆ add()
Adds an algorithm factory.
- Parameters
-
type | the type for this factory |
factory | the factory for creating an algorithm |
- Returns
- the new algorithm
◆ create() [1/2]
Creates an auction based on type.
- Parameters
-
type | the type of the auction( |
- See also
- AuctionTypes)
- Returns
- the new auction
◆ create() [2/2]
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
◆ init()
void gams::auctions::AuctionFactoryRepository::init |
( |
void |
| ) |
|
|
protected |
Initializes factories for all supported GAMS auctions.
◆ set_agent_prefix()
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) |
◆ set_knowledge()
void gams::auctions::AuctionFactoryRepository::set_knowledge |
( |
madara::knowledge::KnowledgeBase * |
knowledge | ) |
|
Sets the knowledge base.
- Parameters
-
knowledge | the knowledge base to use |
◆ agent_prefix_
std::string gams::auctions::AuctionFactoryRepository::agent_prefix_ |
|
protected |
◆ factory_map_
◆ knowledge_
madara::knowledge::KnowledgeBase* gams::auctions::AuctionFactoryRepository::knowledge_ |
|
protected |
The documentation for this class was generated from the following file: