Package jline.solvers
Class SlottedRequest
java.lang.Object
jline.solvers.SlottedRequest
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 Summary
FieldsModifier and TypeFieldDescriptionfinal String"auto", "discrete" or "continuous".final doubleThe lattice unit d in model time units. -
Method Summary
Modifier and TypeMethodDescriptionbooleanTrue when a discrete time scale was requested.static doubleldesSlotLength(SolverOptions options) The LDES slot length: options.config.slotlength when set, elseLDESOptions.slotLength, else 1.static booleanldesSlotted(SolverOptions options) Whether an LDES run is slotted: its ownLDESOptions.slottedor a discrete request through options.config, so config.slotted means the same to LDES as to NC and MAM.static SlottedRequestof(SolverOptions options)
-
Field Details
-
mode
"auto", "discrete" or "continuous". -
slotLength
public final double slotLengthThe lattice unit d in model time units.
-
-
Method Details
-
isDiscrete
public boolean isDiscrete()True when a discrete time scale was requested. -
ldesSlotted
Whether an LDES run is slotted: its ownLDESOptions.slottedor a discrete request through options.config, so config.slotted means the same to LDES as to NC and MAM. -
ldesSlotLength
The LDES slot length: options.config.slotlength when set, elseLDESOptions.slotLength, else 1. -
of
-