Class BMWorld

    • Method Detail

      • getBand

        public BMBand getBand​(java.lang.String bandName)
        Gets a band with a specific name
        Parameters:
        bandName - the band name to be queried
        Returns:
        band with this name, null if no such band in this world
      • getBands

        public java.util.List<BMBand> getBands()
        Returns:
        a list of all bands
      • createPopulation

        public java.util.List<BMBidder> createPopulation​(BMBidderSetup bidderSetup)
        Returns:
        a new population, i.e., a set of bidders, according to the specified bidderSetup
      • createPopulation

        public java.util.List<BMBidder> createPopulation​(java.util.Collection<BMBidderSetup> bidderSetups)
        Parameters:
        bidderSetups - the collection of setups that are the basis for the new population
        Returns:
        a new population, i.e., a set of bidders, according to the specified bidderSetups
      • readWorld

        public static BMWorld readWorld​(long worldId)
      • 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
      • restorePopulation

        public java.util.List<BMBidder> 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class World
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class World