Class MRVMGenericDefinition
- java.lang.Object
-
- org.spectrumauctions.sats.core.model.GenericGood
-
- org.spectrumauctions.sats.core.model.mrvm.MRVMGenericDefinition
-
- All Implemented Interfaces:
java.io.Serializable,org.marketdesignresearch.mechlib.core.Good,SATSGood
public final class MRVMGenericDefinition 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 MRVMGenericDefinition(MRVMBand band, MRVMRegionsMap.Region region)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)voidcheckQuantityIsValid(int quantity)java.util.List<MRVMLicense>containedGoods()booleanequals(java.lang.Object o)MRVMBandgetBand()MRVMRegionsMap.RegiongetRegion()MRVMWorldgetWorld()inthashCode()com.google.gson.JsonElementshortJson()-
Methods inherited from class org.spectrumauctions.sats.core.model.GenericGood
getName, getQuantity, getUuid, getWorldId, toString
-
-
-
-
Constructor Detail
-
MRVMGenericDefinition
public MRVMGenericDefinition(MRVMBand band, MRVMRegionsMap.Region region)
-
-
Method Detail
-
getWorld
public MRVMWorld getWorld()
- Specified by:
getWorldin interfaceSATSGood- Specified by:
getWorldin classGenericGood
-
getBand
public MRVMBand getBand()
-
getRegion
public MRVMRegionsMap.Region getRegion()
-
checkQuantityIsValid
public void checkQuantityIsValid(int quantity)
- Throws:
java.lang.IllegalArgumentException- if the quantity is negative or exceeds the number of lots in this band.
-
containedGoods
public java.util.List<MRVMLicense> containedGoods()
- Specified by:
containedGoodsin classGenericGood
-
shortJson
public com.google.gson.JsonElement shortJson()
- Overrides:
shortJsonin classGenericGood
-
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
-
-