public class BaseValueModel extends DefaultModel<BMWorld,BMBidder>
| Constructor and Description |
|---|
BaseValueModel()
Creates a new QuickAccessor to the Base Value Model in its default configuration.
|
BaseValueModel(int numberOfBidders)
Creates a new QuickAccessor to the Base Value Model in its default configuration.
|
| Modifier and Type | Method and Description |
|---|---|
List<BMBidder> |
createPopulation(BMWorld world,
RNGSupplier populationRNG)
Creates a new set of
Bidder instances |
BMWorld |
createWorld(RNGSupplier rngSupplier)
Creates a new
World |
int |
getNumberOfBidders() |
protected void |
modifyBidderBuilder()
Call this method when bidderBuilder is changed (away from default config)
to ensure the
BidderSetup.getSetupName() is changed |
protected void |
modifyWorldBuilder()
Call this method when worldBuilder is changed (away from default config)
to ensure the
BMWorldSetup.getSetupName() is changed |
void |
setNumberOfBidders(int numberOfBidders) |
createNewPopulation, createNewPopulation, createNewPopulation, createNewPopulation, createNewPopulation, createPopulation, createPopulation, createWorld, createWorldpublic BaseValueModel()
BaseValueModel(int) for construction.
Otherwise, 5 bidders are created by default.public BaseValueModel(int numberOfBidders)
numberOfBidders - specifies how many bidders there will be created in each populationpublic BMWorld createWorld(RNGSupplier rngSupplier)
DefaultModelWorldcreateWorld in class DefaultModel<BMWorld,BMBidder>rngSupplier - A rng supplier for random creation of world parameterspublic List<BMBidder> createPopulation(BMWorld world, RNGSupplier populationRNG)
DefaultModelBidder instancescreatePopulation in class DefaultModel<BMWorld,BMBidder>world - the World for which the bidders are createdpopulationRNG - a rng supplier for the creation of random bidder parameterspublic int getNumberOfBidders()
public void setNumberOfBidders(int numberOfBidders)
numberOfBidders - the number of bidders to be createdprotected void modifyWorldBuilder()
BMWorldSetup.getSetupName() is changedprotected void modifyBidderBuilder()
BidderSetup.getSetupName() is changedCopyright © 2017. All rights reserved.