public final class LSVMBidder extends Bidder<LSVMLicense>
| Modifier and Type | Method and Description |
|---|---|
double |
calculateFactor(int size) |
BigDecimal |
calculateValue(Bundle<LSVMLicense> bundle)
Returns the value this bidder has for a specific bundle.
|
Bidder<LSVMLicense> |
drawSimilarBidder(RNGSupplier rngSupplier) |
Map<Long,BigDecimal> |
getBaseValues() |
com.google.common.collect.ImmutableSet<LSVMLicense> |
getProximity() |
<T extends BiddingLanguage> |
getValueFunction(Class<T> clazz,
RNGSupplier rngSupplier) |
LSVMWorld |
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 com.google.common.collect.ImmutableSet<LSVMLicense> getProximity()
public BigDecimal calculateValue(Bundle<LSVMLicense> bundle)
BiddercalculateValue in class Bidder<LSVMLicense>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<LSVMLicense>UnsupportedBiddingLanguageExceptionpublic LSVMWorld getWorld()
getWorld in class Bidder<LSVMLicense>Bidder.getWorld()public void refreshReference(World world)
BidderrefreshReference in class Bidder<LSVMLicense>public Bidder<LSVMLicense> drawSimilarBidder(RNGSupplier rngSupplier)
drawSimilarBidder in class Bidder<LSVMLicense>public Map<Long,BigDecimal> getBaseValues()
public double calculateFactor(int size)
Copyright © 2019. All rights reserved.