Class CATSWorld

  • All Implemented Interfaces:
    java.io.Serializable

    public final class CATSWorld
    extends World
    Author:
    Fabio Isler
    See Also:
    Serialized Form
    • Method Detail

      • restorePopulation

        public java.util.List<CATSBidder> restorePopulation​(long populationId)
        Description copied from class: World
        Restore serialized SATSBidder instances via population id
        Specified by:
        restorePopulation in class World
        Parameters:
        populationId - the population id
        Returns:
        the deserialized bidders
      • getLicenses

        public com.google.common.collect.ImmutableList<CATSLicense> getLicenses()
        Specified by:
        getLicenses in class World
        Returns:
        An immutable set containing all licenses.
      • refreshFieldBackReferences

        public void refreshFieldBackReferences()
        Description copied from class: World
        Some of the members of the World (e.g. licenses) have circular references back to the world.
        As the used gsonSerializer cannot handle this yet, the circular references are not serialized and have to be restored after deserialization by calling this method.

        This method will be removed in a later version and the problem be solved during deserialization.
        Specified by:
        refreshFieldBackReferences in class World
        See Also:
        World.refreshFieldBackReferences()
      • getAdditivity

        public double getAdditivity()
      • getAdditionalLocation

        public double getAdditionalLocation()
      • getBudgetFactor

        public double getBudgetFactor()
      • getResaleFactor

        public double getResaleFactor()
      • getSize

        public int getSize()
      • getGrid

        public Graph getGrid()
      • getUseQuadraticPricingOption

        public boolean getUseQuadraticPricingOption()
      • getJumpProbability

        public double getJumpProbability()
      • getDeviation

        public double getDeviation()
      • getMaxSubstitutableBids

        public int getMaxSubstitutableBids()