Class BMBidderSetup.BMBidderSetupBuilder
- java.lang.Object
-
- org.spectrumauctions.sats.core.model.BidderSetup.Builder
-
- org.spectrumauctions.sats.core.model.bvm.BMBidderSetup.BMBidderSetupBuilder
-
- Direct Known Subclasses:
BVMBidderSetup.BVMBidderSetupBuilder,MBVMBidderSetup.MBVMBidderSetupBuilder
- Enclosing class:
- BMBidderSetup
public abstract static class BMBidderSetup.BMBidderSetupBuilder extends BidderSetup.Builder
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,DoubleInterval>baseValueIntervalsprotected java.util.Map<java.lang.String,IntegerInterval>positiveValueThresholdIntervalsprotected java.util.Map<java.lang.String,java.util.Map<java.lang.Integer,java.math.BigDecimal>>synFactors
-
Constructor Summary
Constructors Modifier Constructor Description protectedBMBidderSetupBuilder(java.lang.String setupName, int numberOfBidders)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract BMBidderSetupbuild()Creates a new BidderSetup instance which can then be used to create a new populationjava.util.Map<java.lang.String,DoubleInterval>getBaseValueIntervals()SeeBMBidderSetup.drawBaseValue(BMBand, UniformDistributionRNG)for the explanation of this parameter.java.util.Map<java.lang.String,IntegerInterval>getPositiveValueThresholdIntervals()SeeBMBidderSetup.drawPositiveValueThreshold(BMBand, UniformDistributionRNG)for the explanation of this parameter.java.util.Map<java.lang.String,java.util.Map<java.lang.Integer,java.math.BigDecimal>>getSynFactors()SeeBMBidderSetup.drawSynergyFactors(BMBand, UniformDistributionRNG)for the explanation of this parameter.voidputBaseValueInterval(java.lang.String bandName, DoubleInterval interval)SeeBMBidderSetup.drawBaseValue(BMBand, UniformDistributionRNG)for the explanation of this parameter.voidputSynergyFactors(java.lang.String bandName, java.util.Map<java.lang.Integer,java.math.BigDecimal> synergies)SeeBMBidderSetup.drawSynergyFactors(BMBand, UniformDistributionRNG)for the explanation of this parameter.protected voidputValueThresholdInterval(java.lang.String bandName, IntegerInterval interval)SeeBMBidderSetup.drawPositiveValueThreshold(BMBand, UniformDistributionRNG)for the explanation of this parameter.DoubleIntervalremoveBaseValueInterval(java.lang.String bandName)SeeBMBidderSetup.drawBaseValue(BMBand, UniformDistributionRNG)for the explanation of this parameter.java.util.Map<java.lang.Integer,java.math.BigDecimal>removeSynergyFactor(java.lang.String bandName)SeeBMBidderSetup.drawSynergyFactors(BMBand, UniformDistributionRNG)for the explanation of this parameter.protected IntegerIntervalremoveValueThresholdInterval(java.lang.String bandName)SeeBMBidderSetup.drawPositiveValueThreshold(BMBand, UniformDistributionRNG)for the explanation of this parameter.-
Methods inherited from class org.spectrumauctions.sats.core.model.BidderSetup.Builder
getNumberOfBidders, getSetupName, setNumberOfBidders, setSetupName
-
-
-
-
Field Detail
-
positiveValueThresholdIntervals
protected java.util.Map<java.lang.String,IntegerInterval> positiveValueThresholdIntervals
-
baseValueIntervals
protected java.util.Map<java.lang.String,DoubleInterval> baseValueIntervals
-
synFactors
protected java.util.Map<java.lang.String,java.util.Map<java.lang.Integer,java.math.BigDecimal>> synFactors
-
-
Constructor Detail
-
BMBidderSetupBuilder
protected BMBidderSetupBuilder(java.lang.String setupName, int numberOfBidders)- Parameters:
setupName- the name of this bidder typenumberOfBidders- As there is no default value specified by Bichler et al. (2013) for the Base Models, no default value is stored here
-
-
Method Detail
-
putValueThresholdInterval
protected void putValueThresholdInterval(java.lang.String bandName, IntegerInterval interval)SeeBMBidderSetup.drawPositiveValueThreshold(BMBand, UniformDistributionRNG)for the explanation of this parameter.
-
removeValueThresholdInterval
protected IntegerInterval removeValueThresholdInterval(java.lang.String bandName)
SeeBMBidderSetup.drawPositiveValueThreshold(BMBand, UniformDistributionRNG)for the explanation of this parameter.
-
putBaseValueInterval
public void putBaseValueInterval(java.lang.String bandName, DoubleInterval interval)SeeBMBidderSetup.drawBaseValue(BMBand, UniformDistributionRNG)for the explanation of this parameter.
-
removeBaseValueInterval
public DoubleInterval removeBaseValueInterval(java.lang.String bandName)
SeeBMBidderSetup.drawBaseValue(BMBand, UniformDistributionRNG)for the explanation of this parameter.
-
putSynergyFactors
public void putSynergyFactors(java.lang.String bandName, java.util.Map<java.lang.Integer,java.math.BigDecimal> synergies)SeeBMBidderSetup.drawSynergyFactors(BMBand, UniformDistributionRNG)for the explanation of this parameter.
-
removeSynergyFactor
public java.util.Map<java.lang.Integer,java.math.BigDecimal> removeSynergyFactor(java.lang.String bandName)
SeeBMBidderSetup.drawSynergyFactors(BMBand, UniformDistributionRNG)for the explanation of this parameter.
-
getPositiveValueThresholdIntervals
public java.util.Map<java.lang.String,IntegerInterval> getPositiveValueThresholdIntervals()
SeeBMBidderSetup.drawPositiveValueThreshold(BMBand, UniformDistributionRNG)for the explanation of this parameter.
-
getBaseValueIntervals
public java.util.Map<java.lang.String,DoubleInterval> getBaseValueIntervals()
SeeBMBidderSetup.drawBaseValue(BMBand, UniformDistributionRNG)for the explanation of this parameter.
-
getSynFactors
public java.util.Map<java.lang.String,java.util.Map<java.lang.Integer,java.math.BigDecimal>> getSynFactors()
SeeBMBidderSetup.drawSynergyFactors(BMBand, UniformDistributionRNG)for the explanation of this parameter.
-
build
public abstract BMBidderSetup build()
Description copied from class:BidderSetup.BuilderCreates a new BidderSetup instance which can then be used to create a new population- Specified by:
buildin classBidderSetup.Builder- Returns:
- the new BidderSetup instance
-
-