Class Solver_ctmc_extras

java.lang.Object
jline.solvers.ctmc.handlers.Solver_ctmc_extras

public final class Solver_ctmc_extras extends Object
Per-solve station blocks of the CTMC (Python _ctmc_sync_space): server setup and delay-off (SetupDelayOff), retrial with a finite number of attempts (RetrialAttempts) and server parallelism (ServerParallelism). The blocks are declared on a private shallow copy of the struct, so the model's own struct is left untouched.

Setup/delay-off and parallel stations hold waiting jobs next to idle (or unavailable) servers, rows the population lattice does not enumerate, so their space is generated by reachability (needsReachable(jline.lang.NetworkStruct)). The attempt-level block of a retrial station is enumerated as every composition of each row's orbit size: on the lattice path it is appended after the lattice is generated (expandAttempts(jline.lang.NetworkStruct, java.util.List<java.lang.Integer>, jline.util.matrix.Matrix, jline.util.matrix.Matrix)), on the reachable path it is declared before the walk, which then reaches the levels through the events.

  • Method Details

    • needsReachable

      public static boolean needsReachable(NetworkStruct sn)
      True when some station needs the reachable state-space generator.
    • attemptStations

      public static List<Integer> attemptStations(NetworkStruct sn)
      The finite-attempt retrial stations of sn (node indices).
    • prepare

      public static NetworkStruct prepare(NetworkStruct sn, boolean attemptsNow)
      The struct with the setup blocks declared (controller column, all-ACTIVE initial block, SETUP/DELAYOFF clock actions) and, when attemptsNow, the attempt blocks too; sn itself when there is nothing to declare.
    • expandAttempts

      public static Solver_ctmc_extras.Expanded expandAttempts(NetworkStruct sn, List<Integer> attempts, Matrix ssHashed, Matrix ssAggr)
      Append the attempt-level block to the lattice generated on sn (whose nvars and state do not carry it yet): every composition of each local row's orbit size, the global states expanded accordingly. Updates sn (which must be a private copy) in place: space, spaceHash, nvars and the initial state.