public final class CATSBidder extends Bidder<CATSLicense>
| Modifier and Type | Method and Description |
|---|---|
BigDecimal |
calculateValue(Bundle<CATSLicense> bundle)
Returns the value this bidder has for a specific bundle.
|
Bidder<CATSLicense> |
drawSimilarBidder(RNGSupplier rngSupplier) |
com.google.common.collect.ImmutableMap<Long,BigDecimal> |
getPrivateValues() |
<T extends BiddingLanguage> |
getValueFunction(Class<T> clazz,
RNGSupplier rngSupplier) |
CATSWorld |
getWorld() |
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. |
equals, getId, getPopulation, getSetup, getSetupType, getValue, getValueFunction, getValueFunction, getWorldId, hashCode, storepublic BigDecimal calculateValue(Bundle<CATSLicense> bundle)
BiddercalculateValue in class Bidder<CATSLicense>bundle - the bundle for which the value is askedpublic <T extends BiddingLanguage> T getValueFunction(Class<T> clazz, RNGSupplier rngSupplier) throws UnsupportedBiddingLanguageException
getValueFunction in class Bidder<CATSLicense>UnsupportedBiddingLanguageExceptionpublic CATSWorld getWorld()
getWorld in class Bidder<CATSLicense>public com.google.common.collect.ImmutableMap<Long,BigDecimal> getPrivateValues()
public void refreshReference(World world)
BidderrefreshReference in class Bidder<CATSLicense>public Bidder<CATSLicense> drawSimilarBidder(RNGSupplier rngSupplier)
drawSimilarBidder in class Bidder<CATSLicense>Copyright © 2019. All rights reserved.