public final class MRVMRegionalBidder extends MRVMBidder
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
BigDecimal |
gammaFactor(MRVMRegionsMap.Region r,
Bundle<MRVMLicense> bundle)
Calculates the gamma factor, as explained in the model writeup.
|
Map<MRVMRegionsMap.Region,BigDecimal> |
gammaFactors(Bundle<MRVMLicense> bundle)
Calculates the gamma factors for all regions.
|
int |
getHomeId() |
<T extends BiddingLanguage> |
getValueFunction(Class<T> type,
long seed)
Use this method to get a desired value function representation (bidding language)
for this bidder.
|
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. |
calculateValue, calculateValue, getAlpha, getBeta, getWorld, getzHigh, getzLow, omegaFactor, svFunction, svFunctiongetId, getPopulation, getSetupType, getValue, getValueFunction, getWorldId, storepublic int getHomeId()
public BigDecimal gammaFactor(MRVMRegionsMap.Region r, Bundle<MRVMLicense> bundle)
gammaFactor in class MRVMBidderbundle - Is not required for calculation of regional bidders gamma factors and will be ignored.r - The region for which the discount is requestedpublic Map<MRVMRegionsMap.Region,BigDecimal> gammaFactors(Bundle<MRVMLicense> bundle)
MRVMBidder.gammaFactor(MRVMRegionsMap.Region, Bundle)gammaFactors in class MRVMBidderbundle - Is not required for calculation of regional bidders gamma factors and will be ignored.public <T extends BiddingLanguage> T getValueFunction(Class<T> type, long seed) throws UnsupportedBiddingLanguageException
BiddergetValueFunction in class MRVMBiddertype - 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 MRVMBidderBidder.refreshReference(World)public int hashCode()
hashCode in class MRVMBidderpublic boolean equals(Object obj)
equals in class MRVMBidderCopyright © 2017. All rights reserved.