public final class GSVMBidder extends Bidder<GSVMLicense>
| Modifier and Type | Method and Description |
|---|---|
BigDecimal |
calculateValue(Bundle<GSVMLicense> bundle)
Returns the value this bidder has for a specific bundle.
|
Bidder<GSVMLicense> |
drawSimilarBidder(RNGSupplier rngSupplier) |
boolean |
equals(Object o) |
Map<Long,BigDecimal> |
getBaseValues() |
int |
getBidderPosition() |
<T extends BiddingLanguage> |
getValueFunction(Class<T> clazz,
RNGSupplier rngSupplier) |
GSVMWorld |
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 BigDecimal calculateValue(Bundle<GSVMLicense> bundle)
BiddercalculateValue in class Bidder<GSVMLicense>bundle - the bundle for which the value is askedpublic int getBidderPosition()
public <T extends BiddingLanguage> T getValueFunction(Class<T> clazz, RNGSupplier rngSupplier) throws UnsupportedBiddingLanguageException
getValueFunction in class Bidder<GSVMLicense>UnsupportedBiddingLanguageExceptionpublic GSVMWorld getWorld()
getWorld in class Bidder<GSVMLicense>public void refreshReference(World world)
BidderrefreshReference in class Bidder<GSVMLicense>public Bidder<GSVMLicense> drawSimilarBidder(RNGSupplier rngSupplier)
drawSimilarBidder in class Bidder<GSVMLicense>public boolean equals(Object o)
equals in class Bidder<GSVMLicense>public int hashCode()
hashCode in class Bidder<GSVMLicense>public Map<Long,BigDecimal> getBaseValues()
Copyright © 2019. All rights reserved.