Class GSVMWorld

  • All Implemented Interfaces:
    java.io.Serializable

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

      • getSize

        public int getSize()
      • getNationalCircle

        public GSVMCircle getNationalCircle()
      • getRegionalCircle

        public GSVMCircle getRegionalCircle()
      • restorePopulation

        public java.util.List<GSVMBidder> 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<GSVMLicense> 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
      • isLegacyGSVM

        public boolean isLegacyGSVM()
        In earlier versions of SATS (earlier than 0.7.0), the original model was interpreted differently than it is today. Back then, when asking a bidder what her value is for bundle X, the synergy factor increased with any good in X. Now, the synergy factor only increases with goods which the bidder has a positive value for. This flag can be set to true in order to reproduce results of the old SATS versions.