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 a Double.
    int nextInt()
    Gets the next random value as an Integer.
    long nextLong()
    Gets the next random value as a Long.

    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 an Integer.
      Specified by:
      nextInt in interface Generator
      Returns:
      Integer
    • nextLong

      public long nextLong()
      Description copied from interface: Generator
      Gets the next random value as a Long.
      Specified by:
      nextLong in interface Generator
      Returns:
      Long
    • nextDouble

      public double nextDouble()
      Description copied from interface: Generator
      Gets the next random value as a Double.
      Specified by:
      nextDouble in interface Generator
      Returns:
      Double