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 doublenextDouble()Gets the next random value as aDouble.intnextInt()Gets the next random value as anInteger.longnextLong()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:GeneratorGets the next random value as anInteger. -
nextLong
public long nextLong()Description copied from interface:GeneratorGets the next random value as aLong. -
nextDouble
public double nextDouble()Description copied from interface:GeneratorGets the next random value as aDouble.- Specified by:
nextDoublein interfaceGenerator- Returns:
Double
-