public final class SRVMBidder extends Bidder<SRVMLicense> implements GenericValueBidder<SRVMBand>
| Modifier and Type | Method and Description |
|---|---|
BigDecimal |
calculateValue(Bundle<SRVMLicense> licenses)
Returns the value this bidder has for a specific bundle.
|
BigDecimal |
calculateValue(Map<SRVMBand,Integer> genericQuantities) |
Bidder<SRVMLicense> |
drawSimilarBidder(RNGSupplier rngSupplier) |
boolean |
equals(Object obj) |
Map<String,BigDecimal> |
getBaseValues() |
BigDecimal |
getBidderStrength()
This random value is used exclusively in {
SRVMBidderSetup.drawBaseValues(SRVMWorld, BigDecimal, RNGSupplier), but stored in the bidder for easier analysis.Its mean is typically 1. Note that the bidder strength is not the only random influence on the base values, hence a high bidder strength does not imply that a bidder is stronger than others, it simply makes it more likely. |
BigDecimal |
getInterbandSynergyValue() |
Map<String,BigDecimal> |
getIntrabandSynergyFactors() |
Map<String,Integer> |
getSynergyThreshold() |
<T extends BiddingLanguage> |
getValueFunction(Class<T> clazz,
RNGSupplier rngSupplier) |
SRVMWorld |
getWorld() |
int |
hashCode() |
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. |
getId, getPopulation, getSetup, getSetupType, getValue, getValueFunction, getValueFunction, getWorldId, storepublic SRVMWorld getWorld()
getWorld in class Bidder<SRVMLicense>public BigDecimal getBidderStrength()
SRVMBidderSetup.drawBaseValues(SRVMWorld, BigDecimal, RNGSupplier), but stored in the bidder for easier analysis.public Map<String,BigDecimal> getBaseValues()
public Map<String,BigDecimal> getIntrabandSynergyFactors()
public BigDecimal getInterbandSynergyValue()
public BigDecimal calculateValue(Bundle<SRVMLicense> licenses)
BiddercalculateValue in class Bidder<SRVMLicense>licenses - the bundle for which the value is askedpublic BigDecimal calculateValue(Map<SRVMBand,Integer> genericQuantities)
calculateValue in interface GenericValueBidder<SRVMBand>GenericValueBidder.calculateValue(java.util.Map)public Bidder<SRVMLicense> drawSimilarBidder(RNGSupplier rngSupplier)
drawSimilarBidder in class Bidder<SRVMLicense>public <T extends BiddingLanguage> T getValueFunction(Class<T> clazz, RNGSupplier rngSupplier) throws UnsupportedBiddingLanguageException
getValueFunction in class Bidder<SRVMLicense>UnsupportedBiddingLanguageExceptionpublic void refreshReference(World world)
BidderrefreshReference in class Bidder<SRVMLicense>Bidder.refreshReference(World)public int hashCode()
hashCode in class Bidder<SRVMLicense>public boolean equals(Object obj)
equals in class Bidder<SRVMLicense>Copyright © 2019. All rights reserved.