Class BMBand
- java.lang.Object
-
- org.spectrumauctions.sats.core.model.GenericGood
-
- org.spectrumauctions.sats.core.model.bvm.BMBand
-
- All Implemented Interfaces:
java.io.Serializable,org.marketdesignresearch.mechlib.core.Good,SATSGood
public class BMBand extends GenericGood
- Author:
- Michael Weiss
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.spectrumauctions.sats.core.model.GenericGood
worldId
-
-
Constructor Summary
Constructors Constructor Description BMBand(BMWorld world, java.lang.String name, int numberOfLicenses, int licenseCounter, RNGSupplier rngSupplier)Creates a new Band Bands are automatically created when a newBMWorldinstance is created, hence, the use of this constructor is not recommended.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)java.util.List<BMLicense>containedGoods()booleanequals(java.lang.Object o)intgetQuantity()BMWorldgetWorld()inthashCode()booleanisPartOf(BMLicense license)voidrefreshFieldBackReferences(BMWorld world)Method is called after deserialization, there is not need to call it on any other occasion.
SeeWorld.refreshFieldBackReferences()for explanations.-
Methods inherited from class org.spectrumauctions.sats.core.model.GenericGood
getName, getUuid, getWorldId, shortJson, toString
-
-
-
-
Constructor Detail
-
BMBand
public BMBand(BMWorld world, java.lang.String name, int numberOfLicenses, int licenseCounter, RNGSupplier rngSupplier)
Creates a new Band Bands are automatically created when a newBMWorldinstance is created, hence, the use of this constructor is not recommended.
-
-
Method Detail
-
getWorld
public BMWorld getWorld()
- Specified by:
getWorldin interfaceSATSGood- Specified by:
getWorldin classGenericGood
-
containedGoods
public java.util.List<BMLicense> containedGoods()
- Specified by:
containedGoodsin classGenericGood
-
getQuantity
public int getQuantity()
- Specified by:
getQuantityin interfaceorg.marketdesignresearch.mechlib.core.Good- Overrides:
getQuantityin classGenericGood
-
refreshFieldBackReferences
public void refreshFieldBackReferences(BMWorld world)
Method is called after deserialization, there is not need to call it on any other occasion.
SeeWorld.refreshFieldBackReferences()for explanations.- Parameters:
world- the world this band belongs to
-
isPartOf
public boolean isPartOf(BMLicense license)
-
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
-
-