Interface Generator
- All Known Implementing Classes:
ArrivalEventIntervalGenerator,AssemblyTimeGenerator,ErrorCheckTimeGenerator
public interface Generator
Generic generator interface. Used to enforce a consistent API for all random number generators in
the simulator.
-
Method Summary
Modifier and Type Method Description doublenextDouble()Gets the next random value as aDouble.intnextInt()Gets the next random value as anInteger.longnextLong()Gets the next random value as aLong.
-
Method Details
-
nextInt
int nextInt()Gets the next random value as anInteger.- Returns:
Integer
-
nextLong
long nextLong()Gets the next random value as aLong.- Returns:
Long
-
nextDouble
double nextDouble()Gets the next random value as aDouble.- Returns:
Double
-