Class CATSWorld
- java.lang.Object
-
- org.spectrumauctions.sats.core.model.World
-
- org.spectrumauctions.sats.core.model.cats.CATSWorld
-
- All Implemented Interfaces:
java.io.Serializable
public final class CATSWorld extends World
- Author:
- Fabio Isler
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CATSWorld(CATSWorldSetup worldSetup, RNGSupplier rngSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<CATSBidder>createPopulation(java.util.List<CATSBidderSetup> setups, RNGSupplier populationRNG)doublegetAdditionalLocation()doublegetAdditivity()doublegetBudgetFactor()doublegetDeviation()GraphgetGrid()doublegetJumpProbability()com.google.common.collect.ImmutableList<CATSLicense>getLicenses()intgetMaxSubstitutableBids()intgetNumberOfGoods()doublegetResaleFactor()intgetSize()booleangetUseQuadraticPricingOption()voidrefreshFieldBackReferences()Some of the members of the World (e.g.java.util.List<CATSBidder>restorePopulation(long populationId)Restore serializedSATSBidderinstances via population id-
Methods inherited from class org.spectrumauctions.sats.core.model.World
equals, getId, getModelName, hashCode, openNewPopulation, restorePopulation, restorePopulation, store
-
-
-
-
Constructor Detail
-
CATSWorld
public CATSWorld(CATSWorldSetup worldSetup, RNGSupplier rngSupplier)
-
-
Method Detail
-
restorePopulation
public java.util.List<CATSBidder> restorePopulation(long populationId)
Description copied from class:WorldRestore serializedSATSBidderinstances via population id- Specified by:
restorePopulationin classWorld- Parameters:
populationId- the population id- Returns:
- the deserialized bidders
-
getLicenses
public com.google.common.collect.ImmutableList<CATSLicense> getLicenses()
- Specified by:
getLicensesin classWorld- Returns:
- An immutable set containing all licenses.
-
getNumberOfGoods
public int getNumberOfGoods()
- Specified by:
getNumberOfGoodsin classWorld- See Also:
World.getNumberOfGoods()
-
refreshFieldBackReferences
public void refreshFieldBackReferences()
Description copied from class:WorldSome of the members of the World (e.g. licenses) have circular references back to the world.
As the used gsonSerializer cannot handle this yet, the circular references are not serialized and have to be restored after deserialization by calling this method.
This method will be removed in a later version and the problem be solved during deserialization.- Specified by:
refreshFieldBackReferencesin classWorld- See Also:
World.refreshFieldBackReferences()
-
createPopulation
public java.util.List<CATSBidder> createPopulation(java.util.List<CATSBidderSetup> setups, RNGSupplier populationRNG)
-
getAdditivity
public double getAdditivity()
-
getAdditionalLocation
public double getAdditionalLocation()
-
getBudgetFactor
public double getBudgetFactor()
-
getResaleFactor
public double getResaleFactor()
-
getSize
public int getSize()
-
getGrid
public Graph getGrid()
-
getUseQuadraticPricingOption
public boolean getUseQuadraticPricingOption()
-
getJumpProbability
public double getJumpProbability()
-
getDeviation
public double getDeviation()
-
getMaxSubstitutableBids
public int getMaxSubstitutableBids()
-
-