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.
|
Map<Long,BigDecimal> |
getBaseValues() |
int |
getBidderPosition() |
<T extends BiddingLanguage> |
getValueFunction(Class<T> clazz,
long seed)
Use this method to get a desired value function representation (bidding language)
for this bidder.
|
GSVMWorld |
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, getSetupType, getValue, getValueFunction, getWorldId, hashCode, 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, long seed) throws UnsupportedBiddingLanguageException
BiddergetValueFunction in class Bidder<GSVMLicense>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 GSVMWorld getWorld()
getWorld in class Bidder<GSVMLicense>public void refreshReference(World world)
BidderrefreshReference in class Bidder<GSVMLicense>public Map<Long,BigDecimal> getBaseValues()
Copyright © 2017. All rights reserved.