Object SeedsManager

  • All Implemented Interfaces:

    
    public class SeedsManager
    
                        

    This object is used to manage the list of available seeds while running analysis on an already executed Alchemist simulation. It is used to avoid running the same simulation twice.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Unit createAvailableSeedsFile(Collection<Integer> seeds) Creates the file containing the list of available seeds.
      final Integer popNextAvailableSeed(Integer seed) Returns a random seed from the list of available seeds and removes it from the list.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • popNextAvailableSeed

         final Integer popNextAvailableSeed(Integer seed)

        Returns a random seed from the list of available seeds and removes it from the list.

        Parameters:
        seed - the seed used to randomize the selection
        Returns:

        a random seed from the list of available seeds