public abstract class World extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected long |
id |
protected String |
modelName |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
long |
getId() |
abstract Set<? extends Good> |
getLicenses() |
String |
getModelName() |
abstract int |
getNumberOfGoods() |
int |
hashCode() |
protected long |
openNewPopulation() |
abstract void |
refreshFieldBackReferences()
Some of the members of the World (e.g.
|
protected <T extends Bidder<?>> |
restorePopulation(Class<T> type,
long populationId) |
<T extends Bidder<?>> |
restorePopulation(Class<T> type,
long populationId,
InstanceHandler storageHandler)
Advanced way to restore serialized
Bidder instances, allowing to specify a custom InstanceHandler For most use cases, it's recommended to use BMWorld.restorePopulation(long). |
abstract Collection<? extends Bidder<?>> |
restorePopulation(long populationId)
Restore serialized
Bidder instances via population id |
protected void |
store() |
protected final String modelName
protected final long id
public World(String modelName)
public String getModelName()
public long getId()
public abstract int getNumberOfGoods()
protected void store()
protected long openNewPopulation()
public abstract Collection<? extends Bidder<?>> restorePopulation(long populationId)
Bidder instances via population idpopulationId - the population idpublic <T extends Bidder<?>> Collection<T> restorePopulation(Class<T> type, long populationId, InstanceHandler storageHandler)
Bidder instances, allowing to specify a custom InstanceHandler BMWorld.restorePopulation(long). InstanceHandler.setDefaultHandler(InstanceHandler)
to an appropriate handler or by manually storing them with an InstanceHandler afterwards. Restoring (deserialization) has to be done
with the same type of InstanceHandler as the serialization.type - the bidder typepopulationId - the population idstorageHandler - the instance handlerprotected <T extends Bidder<?>> Collection<T> restorePopulation(Class<T> type, long populationId)
public abstract void refreshFieldBackReferences()
Copyright © 2017. All rights reserved.