public final class BMWorld extends World
| Modifier and Type | Field and Description |
|---|---|
static String |
MODEL_NAME |
| Constructor and Description |
|---|
BMWorld(BMWorldSetup setup,
RNGSupplier rngSupplier) |
| Modifier and Type | Method and Description |
|---|---|
List<BMBidder> |
createPopulation(BMBidderSetup bidderSetup) |
List<BMBidder> |
createPopulation(BMBidderSetup bidderSetup,
long seed) |
List<BMBidder> |
createPopulation(BMBidderSetup bidderSetup,
RNGSupplier rngSupplier) |
List<BMBidder> |
createPopulation(Collection<BMBidderSetup> bidderSetups) |
List<BMBidder> |
createPopulation(Collection<BMBidderSetup> bidderSetups,
long seed) |
List<BMBidder> |
createPopulation(Collection<BMBidderSetup> bidderSetups,
RNGSupplier rngSupplier) |
boolean |
equals(Object obj) |
BMBand |
getBand(String bandName)
Gets a band with a specific name
|
List<BMBand> |
getBands() |
Set<BMLicense> |
getLicenses() |
int |
getNumberOfGoods() |
int |
hashCode() |
static BMWorld |
readWorld(long worldId) |
void |
refreshFieldBackReferences()
Some of the members of the World (e.g.
|
Collection<BMBidder> |
restorePopulation(long populationId)
Restore serialized
Bidder instances via population id |
getId, getModelName, openNewPopulation, restorePopulation, restorePopulation, storepublic static final String MODEL_NAME
public BMWorld(BMWorldSetup setup, RNGSupplier rngSupplier)
public BMBand getBand(String bandName)
bandName - the band name to be queriedpublic Set<BMLicense> getLicenses()
getLicenses in class Worldpublic int getNumberOfGoods()
getNumberOfGoods in class Worldpublic List<BMBidder> createPopulation(BMBidderSetup bidderSetup)
public List<BMBidder> createPopulation(BMBidderSetup bidderSetup, long seed)
createPopulation(BMBidderSetup)public List<BMBidder> createPopulation(BMBidderSetup bidderSetup, RNGSupplier rngSupplier)
createPopulation(BMBidderSetup)public List<BMBidder> createPopulation(Collection<BMBidderSetup> bidderSetups)
bidderSetups - the collection of setups that are the basis for the new populationpublic List<BMBidder> createPopulation(Collection<BMBidderSetup> bidderSetups, long seed)
createPopulation(Collection)public List<BMBidder> createPopulation(Collection<BMBidderSetup> bidderSetups, RNGSupplier rngSupplier)
createPopulation(Collection)public static BMWorld readWorld(long worldId)
public void refreshFieldBackReferences()
WorldrefreshFieldBackReferences in class Worldpublic Collection<BMBidder> restorePopulation(long populationId)
WorldBidder instances via population idrestorePopulation in class WorldpopulationId - the population idCopyright © 2017. All rights reserved.