Class ArrivalEventIntervalGenerator
java.lang.Object
com.assemblyrobot.simulator.core.generators.ArrivalEventIntervalGenerator
- All Implemented Interfaces:
Generator
public class ArrivalEventIntervalGenerator extends java.lang.Object implements Generator
Arrival event interval generator. Generates arbitrary intervals for
EventType.ARRIVAL
events (measured in seconds) based on
a Normal
distribution, with defaults specified by the system and alterable by the user.-
Constructor Summary
Constructors Constructor Description ArrivalEventIntervalGenerator()
-
Method Summary
Modifier and Type Method Description double
nextDouble()
Gets the next random value as aDouble
.int
nextInt()
Gets the next random value as anInteger
.long
nextLong()
Gets the next random value as aLong
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ArrivalEventIntervalGenerator
public ArrivalEventIntervalGenerator()
-
-
Method Details
-
nextInt
public int nextInt()Description copied from interface:Generator
Gets the next random value as anInteger
. -
nextLong
public long nextLong()Description copied from interface:Generator
Gets the next random value as aLong
. -
nextDouble
public double nextDouble()Description copied from interface:Generator
Gets the next random value as aDouble
.- Specified by:
nextDouble
in interfaceGenerator
- Returns:
Double
-