Class AuditableRandomGenerator
java.lang.Object
org.uma.jmetal.util.pseudorandom.impl.AuditableRandomGenerator
- All Implemented Interfaces:
Serializable,PseudoRandomGenerator
An
AuditableRandomGenerator is a PseudoRandomGenerator which can be audited
to know when a random generation method is called.- Author:
- Matthieu Vergne
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(Consumer<AuditableRandomGenerator.Audit> listener) getName()longgetSeed()doubledoublenextDouble(double lowerBound, double upperBound) intnextInt(int lowerBound, int upperBound) voidremoveListener(Consumer<AuditableRandomGenerator.Audit> listener) voidsetSeed(long seed)
-
Constructor Details
-
AuditableRandomGenerator
-
-
Method Details
-
addListener
-
removeListener
-
nextInt
public int nextInt(int lowerBound, int upperBound) - Specified by:
nextIntin interfacePseudoRandomGenerator
-
nextDouble
public double nextDouble(double lowerBound, double upperBound) - Specified by:
nextDoublein interfacePseudoRandomGenerator
-
nextDouble
public double nextDouble()- Specified by:
nextDoublein interfacePseudoRandomGenerator
-
setSeed
public void setSeed(long seed) - Specified by:
setSeedin interfacePseudoRandomGenerator
-
getSeed
public long getSeed()- Specified by:
getSeedin interfacePseudoRandomGenerator
-
getName
- Specified by:
getNamein interfacePseudoRandomGenerator
-