public final class BMBidder extends Bidder<BMLicense> implements GenericValueBidder<BMBand>
| Constructor and Description |
|---|
BMBidder(long population,
int bidderId,
BMWorld world,
BMBidderSetup setup,
UniformDistributionRNG rng)
Create a new bidder.
|
| Modifier and Type | Method and Description |
|---|---|
BigDecimal |
calculateValue(Bundle<BMLicense> bundle)
Returns the value this bidder has for a specific bundle.
|
BigDecimal |
calculateValue(Map<BMBand,Integer> genericQuantities) |
Bidder<BMLicense> |
drawSimilarBidder(RNGSupplier rngSupplier) |
boolean |
equals(Object obj) |
BigDecimal |
getBaseValue(BMBand band) |
<T extends BiddingLanguage> |
getValueFunction(Class<T> clazz,
RNGSupplier rngSupplier) |
BMWorld |
getWorld() |
int |
hashCode() |
int |
highestSynergyQuantity(BMBand band) |
void |
refreshReference(World world)
To prevent from creating too many identical world instances, worlds are not serialized and deserialized with the bidder
As a temporary solution, the world instance is re-added after deserialization by calling this method. This method will be removed in a later version and be done automatically during deserialization. |
BigDecimal |
synergyFactor(BMBand band,
int quantity)
Returns the synergy factor for a given band and quantity.
|
getId, getPopulation, getSetup, getSetupType, getValue, getValueFunction, getValueFunction, getWorldId, storepublic BMBidder(long population,
int bidderId,
BMWorld world,
BMBidderSetup setup,
UniformDistributionRNG rng)
BMWorld.createPopulation(java.util.Collection) instead, to create new bidder sets.public BigDecimal calculateValue(Bundle<BMLicense> bundle)
BiddercalculateValue in class Bidder<BMLicense>bundle - the bundle for which the value is askedBidder.getValue(Bundle)public BigDecimal synergyFactor(BMBand band, int quantity)
highestSynergyQuantity(BMBand). public BigDecimal getBaseValue(BMBand band)
public int highestSynergyQuantity(BMBand band)
positiveValueThreshold.public Bidder<BMLicense> drawSimilarBidder(RNGSupplier rngSupplier)
drawSimilarBidder in class Bidder<BMLicense>public BMWorld getWorld()
getWorld in class Bidder<BMLicense>Bidder.getWorld()public <T extends BiddingLanguage> T getValueFunction(Class<T> clazz, RNGSupplier rngSupplier) throws UnsupportedBiddingLanguageException
getValueFunction in class Bidder<BMLicense>UnsupportedBiddingLanguageExceptionpublic void refreshReference(World world)
BidderrefreshReference in class Bidder<BMLicense>Bidder.refreshReference(World)public BigDecimal calculateValue(Map<BMBand,Integer> genericQuantities)
calculateValue in interface GenericValueBidder<BMBand>Copyright © 2019. All rights reserved.