Class DefaultModel<W extends World,B extends SATSBidder>
- java.lang.Object
-
- org.spectrumauctions.sats.core.model.DefaultModel<W,B>
-
- Direct Known Subclasses:
BaseValueModel,CATSRegionModel,GlobalSynergyValueModel,LocalSynergyValueModel,MultiBandValueModel,MultiRegionModel,SingleRegionModel
public abstract class DefaultModel<W extends World,B extends SATSBidder> extends java.lang.Object- Author:
- Michael Weiss
-
-
Constructor Summary
Constructors Constructor Description DefaultModel()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.List<B>createNewPopulation(W world)Creates a new set ofSATSBidderinstancesjava.util.List<B>createNewPopulation(W world, long populationSeed)Creates a new set ofSATSBidderinstancesjava.util.List<B>createNewWorldAndPopulation()Default version if you do not have to keep track of the seeds of your auction instance.java.util.List<B>createNewWorldAndPopulation(long seed)Default version if you want to keep track of the seeds of your auction instances.java.util.List<B>createNewWorldAndPopulation(long worldSeed, long populationSeed)Deprecated.java.util.List<B>createNewWorldAndPopulation(RNGSupplier rngSupplier)Deprecated.java.util.List<B>createNewWorldAndPopulation(RNGSupplier worldRNG, RNGSupplier populationRNG)Creates a new set ofSATSBidderinstances for a newly generatedWorldinstanceabstract java.util.List<B>createPopulation(W world, RNGSupplier populationRNG)Creates a new set ofSATSBidderinstancesWcreateWorld()Creates a newWorldWcreateWorld(long seed)Creates a newWorldabstract WcreateWorld(RNGSupplier worldSeed)Creates a newWorld
-
-
-
Method Detail
-
createWorld
public abstract W createWorld(RNGSupplier worldSeed)
Creates a newWorld- Parameters:
worldSeed- A rng supplier for random creation of world parameters- Returns:
- a new world
-
createWorld
public W createWorld(long seed)
Creates a newWorld- Parameters:
seed- The seed for the random creation of world parameters- Returns:
- a new world
-
createPopulation
public abstract java.util.List<B> createPopulation(W world, RNGSupplier populationRNG)
Creates a new set ofSATSBidderinstances- Parameters:
world- theWorldfor which the bidders are createdpopulationRNG- a rng supplier for the creation of random bidder parameters- Returns:
- a new set of bidders
-
createNewWorldAndPopulation
public java.util.List<B> createNewWorldAndPopulation()
Default version if you do not have to keep track of the seeds of your auction instance. Note your experiments will not be repeatable with this version. Creates a new set ofSATSBidderinstances- Returns:
- a new set of bidders
-
createNewWorldAndPopulation
public java.util.List<B> createNewWorldAndPopulation(long seed)
Default version if you want to keep track of the seeds of your auction instances. In practice you want you to use this version to achieve repeatable experiments. Creates a new set ofSATSBidderinstances- Parameters:
seed- the seed for the RNG- Returns:
- a new set of bidders
-
createNewWorldAndPopulation
@Deprecated public java.util.List<B> createNewWorldAndPopulation(RNGSupplier rngSupplier)
Deprecated.Creates a new set ofSATSBidderinstances for a newly generatedWorldinstance- Parameters:
rngSupplier- A rng supplier for random creation of both world parameters and bidder paramters- Returns:
- a new set of bidders
-
createNewWorldAndPopulation
@Deprecated public java.util.List<B> createNewWorldAndPopulation(long worldSeed, long populationSeed)
Deprecated.Creates a new set ofSATSBidderinstances for a newly generatedWorldinstance If you are only interested in one population of the world you might rather use the method, where you only provide one seed. When you are interested in different populations of the same world you may use the method where you provide the already created world- Parameters:
worldSeed- A seed for random creation of world parameterspopulationSeed- A seed for random creation of bidder parameters- Returns:
- a new set of bidders
- See Also:
createNewWorldAndPopulation(long),createNewPopulation(World, long)
-
createNewWorldAndPopulation
public java.util.List<B> createNewWorldAndPopulation(RNGSupplier worldRNG, RNGSupplier populationRNG)
Creates a new set ofSATSBidderinstances for a newly generatedWorldinstance- Parameters:
worldRNG- A rng supplier for random creation of world parameterspopulationRNG- A rng supplier for randmon creation of bidder parameters- Returns:
- a new set of bidders
-
createNewPopulation
public java.util.List<B> createNewPopulation(W world, long populationSeed)
Creates a new set ofSATSBidderinstances- Parameters:
world- The world for which the bidders are createdpopulationSeed- A seed for random creation of bidder parameters- Returns:
- a new set of bidders
-
createNewPopulation
public java.util.List<B> createNewPopulation(W world)
Creates a new set ofSATSBidderinstances- Parameters:
world- The world for which the bidders are created- Returns:
- a new set of bidders
-
-