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.
-
-
Field Summary
Fields Modifier and Type Field Description public final static SeedsManager
INSTANCE
-
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. -
-
Method Detail
-
createAvailableSeedsFile
final Unit createAvailableSeedsFile(Collection<Integer> seeds)
Creates the file containing the list of available seeds.
- Parameters:
seeds
- the list of available seeds
-
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
-
-
-
-