Class GSVMBidderSetup.Builder
- java.lang.Object
-
- org.spectrumauctions.sats.core.model.BidderSetup.Builder
-
- org.spectrumauctions.sats.core.model.gsvm.GSVMBidderSetup.Builder
-
- Direct Known Subclasses:
GSVMNationalBidderSetup.Builder,GSVMRegionalBidderSetup.Builder
- Enclosing class:
- GSVMBidderSetup
protected abstract static class GSVMBidderSetup.Builder extends BidderSetup.Builder
-
-
Field Summary
Fields Modifier and Type Field Description protected intactivityLimitOverrideIn this simple implementation of the GSVM activity limit (how many licenses can be won by a bidder), the default is: * |nationalCircleLicenses| for the national bidder * Math.round(2/3 * |positiveBaseValueLicenses|) for regional bidders In a default world, that results in the original activity limits of 12 for a national bidder 4 for a regional bidder.protected DoubleIntervalhighNationalValueIntervalprotected DoubleIntervallowNationalValueIntervalprotected DoubleIntervalregionalValueInterval
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder(java.lang.String setupName, int numberOfBidders, DoubleInterval lnvi, DoubleInterval hnvi, DoubleInterval rvi)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract GSVMBidderSetupbuild()Creates a new BidderSetup instance which can then be used to create a new populationvoidsetActivityLimitOverride(int activityLimitOverride)voidsetHighNationalValueInterval(DoubleInterval iv)Set the value interval for the higher-valued part of the national circlevoidsetLowNationalValueInterval(DoubleInterval iv)Set the value interval for the lower-valued part of the national circle-
Methods inherited from class org.spectrumauctions.sats.core.model.BidderSetup.Builder
getNumberOfBidders, getSetupName, setNumberOfBidders, setSetupName
-
-
-
-
Field Detail
-
lowNationalValueInterval
protected DoubleInterval lowNationalValueInterval
-
highNationalValueInterval
protected DoubleInterval highNationalValueInterval
-
regionalValueInterval
protected DoubleInterval regionalValueInterval
-
activityLimitOverride
protected int activityLimitOverride
In this simple implementation of the GSVM activity limit (how many licenses can be won by a bidder), the default is: * |nationalCircleLicenses| for the national bidder * Math.round(2/3 * |positiveBaseValueLicenses|) for regional bidders In a default world, that results in the original activity limits of 12 for a national bidder 4 for a regional bidder. By setting the activityLimitOverride parameter to zero or more, you can override this.
-
-
Constructor Detail
-
Builder
protected Builder(java.lang.String setupName, int numberOfBidders, DoubleInterval lnvi, DoubleInterval hnvi, DoubleInterval rvi)
-
-
Method Detail
-
setLowNationalValueInterval
public void setLowNationalValueInterval(DoubleInterval iv)
Set the value interval for the lower-valued part of the national circle- Parameters:
iv- The value interval
-
setHighNationalValueInterval
public void setHighNationalValueInterval(DoubleInterval iv)
Set the value interval for the higher-valued part of the national circle- Parameters:
iv- The value interval
-
build
public abstract GSVMBidderSetup 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
-
setActivityLimitOverride
public void setActivityLimitOverride(int activityLimitOverride)
-
-