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
    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.
  • Method Details

    • nextInt

      int nextInt()
      Gets the next random value as an Integer.
      Returns:
      Integer
    • nextLong

      long nextLong()
      Gets the next random value as a Long.
      Returns:
      Long
    • nextDouble

      double nextDouble()
      Gets the next random value as a Double.
      Returns:
      Double