Class 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
    • Method Detail

      • 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()
      • getNumberOfLots

        public int getNumberOfLots()
      • getQuantity

        public int getQuantity()
        Specified by:
        getQuantity in interface org.marketdesignresearch.mechlib.core.Good
        Overrides:
        getQuantity in class GenericGood
      • 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:
        equals in class GenericGood
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
        Overrides:
        canEqual in class GenericGood