Class MRVMBand
- java.lang.Object
-
- org.spectrumauctions.sats.core.model.GenericGood
-
- org.spectrumauctions.sats.core.model.mrvm.MRVMBand
-
- All Implemented Interfaces:
java.io.Serializable,org.marketdesignresearch.mechlib.core.Good,SATSGood
public final class MRVMBand extends GenericGood
- Author:
- Michael Weiss
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.spectrumauctions.sats.core.model.GenericGood
worldId
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.math.BigDecimalcalculateCAP(int quantity)protected booleancanEqual(java.lang.Object other)java.util.List<MRVMLicense>containedGoods()static java.util.HashSet<MRVMBand>createBands(MRVMWorld world, MRVMWorldSetup worldSetup, MRVMRegionsMap regionsMap, UniformDistributionRNG rng)booleanequals(java.lang.Object o)java.math.BigDecimalgetBaseCapacity()intgetNumberOfLots()intgetQuantity()java.math.BigDecimalgetSynergy(int quantity)MRVMWorldgetWorld()longgetWorldId()inthashCode()voidrefreshFieldBackReferences(MRVMWorld world)Method is called after deserialization, there is not need to call it on any other occasion.-
Methods inherited from class org.spectrumauctions.sats.core.model.GenericGood
getName, getUuid, shortJson, toString
-
-
-
-
Method Detail
-
createBands
public static java.util.HashSet<MRVMBand> createBands(MRVMWorld world, MRVMWorldSetup worldSetup, MRVMRegionsMap regionsMap, UniformDistributionRNG rng)
-
getSynergy
public java.math.BigDecimal getSynergy(int quantity)
- Parameters:
quantity- number of licenses in this band in the same region- Returns:
- the synergy factor for having a specific number of licenses of this band in the same region.
If no synergy factor is explicitly stored for a specific quantity, for the next lower quantity with known synergy is returned.
The synergy for quantity 1 is always 1;
-
calculateCAP
public java.math.BigDecimal calculateCAP(int quantity)
-
getBaseCapacity
public java.math.BigDecimal getBaseCapacity()
-
getWorld
public MRVMWorld getWorld()
- Specified by:
getWorldin interfaceSATSGood- Specified by:
getWorldin classGenericGood
-
containedGoods
public java.util.List<MRVMLicense> containedGoods()
- Specified by:
containedGoodsin classGenericGood
-
getNumberOfLots
public int getNumberOfLots()
-
getQuantity
public int getQuantity()
- Specified by:
getQuantityin interfaceorg.marketdesignresearch.mechlib.core.Good- Overrides:
getQuantityin classGenericGood
-
getWorldId
public long getWorldId()
- Overrides:
getWorldIdin classGenericGood
-
refreshFieldBackReferences
public void refreshFieldBackReferences(MRVMWorld world)
Method is called after deserialization, there is not need to call it on any other occasion.- See Also:
for explanations.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classGenericGood
-
canEqual
protected boolean canEqual(java.lang.Object other)
- Overrides:
canEqualin classGenericGood
-
hashCode
public int hashCode()
- Overrides:
hashCodein classGenericGood
-
-