Class MRVMRegionalBidderSetup.Builder
- java.lang.Object
-
- org.spectrumauctions.sats.core.model.BidderSetup.Builder
-
- org.spectrumauctions.sats.core.model.mrvm.MRVMBidderSetup.Builder
-
- org.spectrumauctions.sats.core.model.mrvm.MRVMRegionalBidderSetup.Builder
-
- Enclosing class:
- MRVMRegionalBidderSetup
public static class MRVMRegionalBidderSetup.Builder extends MRVMBidderSetup.Builder
-
-
Field Summary
Fields Modifier and Type Field Description MRVMRegionsMap.RegionpredefinedHome
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MRVMRegionalBidderSetupbuild()Creates a new BidderSetup instance which can then be used to create a new populationdoublegetBase()SeesetGammaShape(double, double)for meaning of this parameterdoublegetExponentFactor()SeesetGammaShape(double, double)for meaning of this parametervoidsetGammaShape(double base, double exponentFactor)Specify the Gamma Function, i.e., the discount the regional bidder has on values for regions with distance d from his home (i.e.,MRVMRegionsMap.getDistance(MRVMRegionsMap.Region, MRVMRegionsMap.Region)
It has the shape base.pow(-x * exponentFactor).
ExponentFactor and base can be specified with this function.voidsetPredefinedHome(MRVMRegionsMap.Region home)Set the predefined home if the home should not be chosen randomly.-
Methods inherited from class org.spectrumauctions.sats.core.model.mrvm.MRVMBidderSetup.Builder
getAlphaInterval, getBetaInterval, getzHighInterval, getzLowInterval, setAlphaInterval, setBetaInterval, setzHighInterval, setzLowInterval
-
Methods inherited from class org.spectrumauctions.sats.core.model.BidderSetup.Builder
getNumberOfBidders, getSetupName, setNumberOfBidders, setSetupName
-
-
-
-
Field Detail
-
predefinedHome
public MRVMRegionsMap.Region predefinedHome
-
-
Method Detail
-
setGammaShape
public void setGammaShape(double base, double exponentFactor)Specify the Gamma Function, i.e., the discount the regional bidder has on values for regions with distance d from his home (i.e.,MRVMRegionsMap.getDistance(MRVMRegionsMap.Region, MRVMRegionsMap.Region)
It has the shape base.pow(-x * exponentFactor).
ExponentFactor and base can be specified with this function.- Parameters:
base- Has to be greater than 0exponentFactor- Has to be greater than 0
-
setPredefinedHome
public void setPredefinedHome(MRVMRegionsMap.Region home)
Set the predefined home if the home should not be chosen randomly.
-
getExponentFactor
public double getExponentFactor()
SeesetGammaShape(double, double)for meaning of this parameter
-
getBase
public double getBase()
SeesetGammaShape(double, double)for meaning of this parameter
-
build
public MRVMRegionalBidderSetup build()
Description copied from class:BidderSetup.BuilderCreates a new BidderSetup instance which can then be used to create a new population- Specified by:
buildin classMRVMBidderSetup.Builder- Returns:
- the new BidderSetup instance
- See Also:
MRVMBidderSetup.Builder.build()
-
-