Class SetupDelayOff

java.lang.Object
jline.lang.state.SetupDelayOff

public final class SetupDelayOff extends Object
Server setup and delay-off at a CTMC station (Queue.setDelayOff), port of Python api/state/setup_delayoff.py.

Semantics (LDES): every server is ACTIVE, OFF, in SETUP or in DELAYOFF. An arrival takes an idle ACTIVE server; failing that, a server in DELAYOFF, whose timer is cancelled and which serves the job at once (chosen uniformly among the DELAYOFF servers); failing that, an OFF server starts its setup under the ARRIVING class's setup law and the job waits; failing that the job waits. A departure that leaves the buffer empty starts the freed server's delay-off under the DEPARTING class's delay-off law. A setup that completes makes its server ACTIVE, taking the head-of-line job or idling. A delay-off that expires turns its server OFF. All servers start ACTIVE.

The station's local state carries a block of server counts [off, setup(r,k)..., delayoff(r,k)...] in the shared controller column of sn.nvars (2R); ACTIVE is the remainder of the server count. The block is declared per solve by #prepare(NetworkStruct) on a private copy of the struct, so a station is treated here only once its controller column holds the block width. The synchronous-call (REPLY) counters of columns 2R+1..3R stay the tail of the local variables, after the block: a held server is neither ACTIVE idle nor in the block, a REPLY arrival wakes nobody, a REPLY departure follows the CALLING class's delay-off law, and a calling departure keeps its server and starts no delay-off. Only FCFS is served, the laws must be Markovian, every served class needs both laws, and the block is exclusive with breakdowns, true BAS blocking, server pools, retrials and a MAP service: each refused by name (LINE:unsupported:SetupDelayOff).

  • Method Details

    • hasLaws

      public static boolean hasLaws(NetworkStruct sn, int ind)
      True when node ind declares setup and delay-off laws.
    • info

      public static SetupDelayOff.Info info(NetworkStruct sn, int ind)
      The prepared layout of node ind, or null when it has none or the struct is not prepared.
    • layouts

      public static Map<Integer,SetupDelayOff.Info> layouts(NetworkStruct sn)
      Validated layouts of the setup/delay-off stations of sn, by node (Python ctmc_setup without the struct edits, which the caller applies to its private copy).
    • unavailable

      public static double unavailable(NetworkStruct sn, int ind, Matrix spaceVar, int row)
      Servers OFF, in SETUP or in DELAYOFF in row row of the local variables spaceVar; 0 at a station without a block.
    • clockSync

      public static Sync clockSync(EventType event, int ind, int r, int local)
      Local sync action of a setup/delay-off clock (passive LOCAL).