Package jline.solvers

Class SlottedRequest

java.lang.Object
jline.solvers.SlottedRequest

public final class SlottedRequest extends Object
The one reading of the discrete-time switch shared by SolverNC, SolverMAM and SolverLDES, so the same options mean the same thing to all three.

mode is "discrete" when config.slotted is true or config.timescale is "discrete", "continuous" when config.timescale is "continuous", and "auto" otherwise. Asking for slotted together with a continuous timescale is an error. What "auto" means is the solver's business: MAM infers the time scale from the laws (SnIsDiscreteTime), NC and LDES read it as continuous.

slotLength is config.slotlength (default 1), the lattice unit d in model time units. Every interarrival and service sample must be a positive multiple of d; a law keeps its meaning whatever d is.

MATLAB twin: line_slotted_request.m

  • Field Details

    • mode

      public final String mode
      "auto", "discrete" or "continuous".
    • slotLength

      public final double slotLength
      The lattice unit d in model time units.
  • Method Details

    • isDiscrete

      public boolean isDiscrete()
      True when a discrete time scale was requested.
    • ldesSlotted

      public static boolean ldesSlotted(SolverOptions options)
      Whether an LDES run is slotted: its own LDESOptions.slotted or a discrete request through options.config, so config.slotted means the same to LDES as to NC and MAM.
    • ldesSlotLength

      public static double ldesSlotLength(SolverOptions options)
      The LDES slot length: options.config.slotlength when set, else LDESOptions.slotLength, else 1.
    • of

      public static SlottedRequest of(SolverOptions options)