public final class MRVMWorld extends World
| Modifier and Type | Field and Description |
|---|---|
static String |
MODEL_NAME |
| Constructor and Description |
|---|
MRVMWorld(MRVMWorldSetup worldSetup,
RNGSupplier rngSupplier) |
| Modifier and Type | Method and Description |
|---|---|
static BigDecimal |
c(MRVMRegionsMap.Region r,
Bundle<MRVMLicense> bundle)
Defines the c-function, i.e., c(r,x) = sum_{b\in B} cap(b,r,x) [as explained in the paper]
|
static BigDecimal |
capOfBand(MRVMBand band,
int numberOfLicenses)
Returns the capacity for having numberOfLicenses many
MRVMLicense in MRVMBand band |
List<MRVMBidder> |
createPopulation(Collection<MRVMLocalBidderSetup> localSetups,
Collection<MRVMRegionalBidderSetup> regionalSetups,
Collection<MRVMNationalBidderSetup> nationalSetups,
RNGSupplier rngSupplier) |
List<MRVMBidder> |
createPopulation(MRVMLocalBidderSetup localSetup,
MRVMRegionalBidderSetup regionalSetup,
MRVMNationalBidderSetup nationalSetup,
RNGSupplier rngSupplier) |
Set<MRVMBand> |
getBands() |
Set<MRVMLicense> |
getLicenses() |
static Map<MRVMBand,Bundle<MRVMLicense>> |
getLicensesPerBand(Bundle<MRVMLicense> bundle)
Sorts the licenses of a bundle into subbundles by their band.
|
static Map<MRVMBand,Bundle<MRVMLicense>> |
getLicensesPerBand(Bundle<MRVMLicense> bundle,
MRVMWorld world)
Sorts the licenses of a bundle into subbundles by their band.
|
static Map<MRVMRegionsMap.Region,Bundle<MRVMLicense>> |
getLicensesPerRegion(Bundle<MRVMLicense> bundle)
Sorts the licenses of a bundle into subbundles by their region.
|
BigDecimal |
getMaximumRegionalCapacity()
Calculates the maximum capacity any region can have.
|
int |
getNumberOfGoods() |
MRVMRegionsMap |
getRegionsMap() |
static Map<MRVMBand,Integer> |
quantitiesPerBand(Bundle<MRVMLicense> bundle)
Counts the number of licenses for each band.
|
static Map<MRVMBand,Integer> |
quantitiesPerBand(Bundle<MRVMLicense> bundle,
MRVMWorld MRVMWorld)
Counts the number of licenses for each band.
|
void |
refreshFieldBackReferences()
Some of the members of the World (e.g.
|
Collection<? extends Bidder<MRVMLicense>> |
restorePopulation(long populationId)
Restore serialized
Bidder instances via population id |
equals, getId, getModelName, hashCode, openNewPopulation, restorePopulation, restorePopulation, storepublic static final String MODEL_NAME
public MRVMWorld(MRVMWorldSetup worldSetup, RNGSupplier rngSupplier)
public int getNumberOfGoods()
getNumberOfGoods in class WorldWorld.getNumberOfGoods()public Set<MRVMLicense> getLicenses()
getLicenses in class WorldWorld.getLicenses()public Collection<? extends Bidder<MRVMLicense>> restorePopulation(long populationId)
WorldBidder instances via population idrestorePopulation in class WorldpopulationId - the population idWorld.restorePopulation(long)public void refreshFieldBackReferences()
WorldrefreshFieldBackReferences in class WorldWorld.refreshFieldBackReferences()public MRVMRegionsMap getRegionsMap()
public static Map<MRVMBand,Bundle<MRVMLicense>> getLicensesPerBand(Bundle<MRVMLicense> bundle)
bundle - Must be nonemptypublic static Map<MRVMBand,Bundle<MRVMLicense>> getLicensesPerBand(Bundle<MRVMLicense> bundle, MRVMWorld world)
public static Map<MRVMBand,Integer> quantitiesPerBand(Bundle<MRVMLicense> bundle)
bundle - Must be nonemptypublic static Map<MRVMBand,Integer> quantitiesPerBand(Bundle<MRVMLicense> bundle, MRVMWorld MRVMWorld)
bundle - Must be nonemptypublic static BigDecimal c(MRVMRegionsMap.Region r, Bundle<MRVMLicense> bundle)
public BigDecimal getMaximumRegionalCapacity()
public static BigDecimal capOfBand(MRVMBand band, int numberOfLicenses)
MRVMLicense in MRVMBand bandpublic static Map<MRVMRegionsMap.Region,Bundle<MRVMLicense>> getLicensesPerRegion(Bundle<MRVMLicense> bundle)
public List<MRVMBidder> createPopulation(MRVMLocalBidderSetup localSetup, MRVMRegionalBidderSetup regionalSetup, MRVMNationalBidderSetup nationalSetup, RNGSupplier rngSupplier)
public List<MRVMBidder> createPopulation(Collection<MRVMLocalBidderSetup> localSetups, Collection<MRVMRegionalBidderSetup> regionalSetups, Collection<MRVMNationalBidderSetup> nationalSetups, RNGSupplier rngSupplier)
Copyright © 2017. All rights reserved.