Class BMWorldSetup.BMWorldSetupBuilder
- java.lang.Object
-
- org.spectrumauctions.sats.core.model.bvm.BMWorldSetup.BMWorldSetupBuilder
-
- Direct Known Subclasses:
BVMWorldSetup.BVMWorldSetupBuilder,MBVMWorldSetup.MBVMWorldSetupBuilder
- Enclosing class:
- BMWorldSetup
public abstract static class BMWorldSetup.BMWorldSetupBuilder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description BMWorldSetupBuilder(java.lang.String setupName)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddBand(java.lang.String nameOfBand, int numberOfLicenses)Define new Band which should be generated in the modelabstract BMWorldSetupbuild()java.util.Map<java.lang.String,java.lang.Integer>getBands()SeeBMWorldSetup.bands()for the purpose of this parameterjava.lang.StringgetSetupName()SeeBMWorldSetup.getSetupName()for the purpose of this parameterbooleanremoveBand(java.lang.String nameOfBand)Remove a band, such that it will not be created.voidsetSetupName(java.lang.String setupName)SeeBMWorldSetup.getSetupName()for the purpose of this parameter
-
-
-
Method Detail
-
addBand
public void addBand(java.lang.String nameOfBand, int numberOfLicenses)Define new Band which should be generated in the model
-
removeBand
public boolean removeBand(java.lang.String nameOfBand)
Remove a band, such that it will not be created.- Parameters:
nameOfBand- the name of the band- Returns:
- true, if band was removed. false otherwise
-
getBands
public java.util.Map<java.lang.String,java.lang.Integer> getBands()
SeeBMWorldSetup.bands()for the purpose of this parameter
-
getSetupName
public java.lang.String getSetupName()
SeeBMWorldSetup.getSetupName()for the purpose of this parameter
-
setSetupName
public void setSetupName(java.lang.String setupName)
SeeBMWorldSetup.getSetupName()for the purpose of this parameter
-
build
public abstract BMWorldSetup build()
- Returns:
- An immutable BMWorldSetup Instance with the in this builder instance defined parameters.
-
-