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) |
boolean |
equals(Object obj) |
BigDecimal |
getBaseValue(BMBand band) |
<T extends BiddingLanguage> |
getValueFunction(Class<T> clazz,
long seed)
Use this method to get a desired value function representation (bidding language)
for this bidder.
|
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, getSetupType, getValue, 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 BMWorld getWorld()
getWorld in class Bidder<BMLicense>Bidder.getWorld()public <T extends BiddingLanguage> T getValueFunction(Class<T> clazz, long seed) throws UnsupportedBiddingLanguageException
BiddergetValueFunction in class Bidder<BMLicense>clazz - the type of the value functionUnsupportedBiddingLanguageException - Throws this exception for all bidding languages
which are not supported by the implementing bidder class. This javadoc should be extended by
the implementing class, specifying which value function representation are supported.public 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 © 2017. All rights reserved.