Class AssemblyTimeGenerator
java.lang.Object
com.assemblyrobot.simulator.core.generators.AssemblyTimeGenerator
- All Implemented Interfaces:
Generator
public class AssemblyTimeGenerator extends java.lang.Object implements Generator
Assembly duration generator. Generates arbitrary durations for assembly (measured in seconds)
during the Assembly stage based on a
Normal
distribution, with defaults specified by the
system and alterable by the user.-
Constructor Summary
Constructors Constructor Description AssemblyTimeGenerator()
-
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
-
AssemblyTimeGenerator
public AssemblyTimeGenerator()
-
-
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
-