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) |
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,
long seed)
Use this method to get a desired value function representation (bidding language)
for this bidder.
|
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, getSetupType, getValue, 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 <T extends BiddingLanguage> T getValueFunction(Class<T> clazz, long seed) throws UnsupportedBiddingLanguageException
BiddergetValueFunction in class Bidder<SRVMLicense>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<SRVMLicense>Bidder.refreshReference(World)public int hashCode()
hashCode in class Bidder<SRVMLicense>public boolean equals(Object obj)
equals in class Bidder<SRVMLicense>Copyright © 2017. All rights reserved.