Class LSVMWorld
- java.lang.Object
-
- org.spectrumauctions.sats.core.model.World
-
- org.spectrumauctions.sats.core.model.lsvm.LSVMWorld
-
- All Implemented Interfaces:
java.io.Serializable
public final class LSVMWorld extends World
- Author:
- Fabio Isler
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LSVMWorld(LSVMWorldSetup worldSetup, RNGSupplier rngSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<LSVMBidder>createPopulation(java.util.List<LSVMBidderSetup> setups, RNGSupplier populationRNG)LSVMGridgetGrid()com.google.common.collect.ImmutableList<LSVMLicense>getLicenses()intgetNumberOfGoods()booleanisLegacyLSVM()In earlier versions of SATS (earlier than 0.7.0), the original model was interpreted differently than it is today.voidrefreshFieldBackReferences()Some of the members of the World (e.g.java.util.List<LSVMBidder>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
-
LSVMWorld
public LSVMWorld(LSVMWorldSetup worldSetup, RNGSupplier rngSupplier)
-
-
Method Detail
-
getGrid
public LSVMGrid getGrid()
-
restorePopulation
public java.util.List<LSVMBidder> 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<LSVMLicense> getLicenses()
- Specified by:
getLicensesin classWorld- Returns:
- An immutable set containing all licenses.
-
getNumberOfGoods
public int getNumberOfGoods()
- Specified by:
getNumberOfGoodsin classWorld
-
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
-
createPopulation
public java.util.List<LSVMBidder> createPopulation(java.util.List<LSVMBidderSetup> setups, RNGSupplier populationRNG)
-
isLegacyLSVM
public boolean isLegacyLSVM()
In earlier versions of SATS (earlier than 0.7.0), the original model was interpreted differently than it is today. Back then, when asking a bidder what her value is for bundle X, the synergy factor increased with any good in X. Now, the synergy factor only increases with goods which the bidder has a positive value for. This flag can be set to true in order to reproduce results of the old SATS versions.
-
-