Class Solver_ctmc_bmap

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

public final class Solver_ctmc_bmap extends Object
Batch emissions of a Source whose class arrives by a BMAP, for the CTMC generator (Python _bmap_source_groups / _batch_arrival_arcs and api/state/batch_source.py).

A BMAP stream is {D0, D1, D_1, ..., D_B} (sn.proc layout, with D1 = sum_b D_b): from modulating phase k the Source emits a batch of b jobs and moves to phase j at rate D_b(k,j). The ordinary Source departure of the state machinery reads the aggregate D1 and so emits one job per epoch, so the departure actions of a BMAP class are left out of the per-action loop of Solver_ctmc and expanded here: each emission is split over the multinomial allocations of its b jobs to the Source's routing destinations (each job routed independently), and the arrivals are applied one after another. A job its destination refuses is lost, while the emission and its phase move still happen, as for a single arrival lost at a full station. Arcs are grouped by (class, batch size, accepted and lost counts per destination), so the departure and arrival rates count jobs, not epochs.

  • Method Details

    • hasBmapSource

      public static boolean hasBmapSource(NetworkStruct sn)
      True when some Source class of sn arrives by a BMAP.
    • sourceGroups

      public static Map<List<Integer>,List<Integer>> sourceGroups(NetworkStruct sn, Map<Integer,Sync> sync)
      {[source node, class] -> [action, ...]} of the BMAP Source classes; each listed action pairs the class's Source departure with one routing destination. State-dependent routing out of such a Source is refused: its weights are drawn per departure from the pre-event state, which a batch of several jobs leaving at once does not define.
    • arcs

      public static List<Solver_ctmc_bmap.Group> arcs(NetworkStruct sn, Map<Integer,Sync> sync, Map<List<Integer>,List<Integer>> bmapGroups, Matrix stateSpaceHashed, Matrix[][] startFilt, Matrix[][] preemptFilt)
      Arcs of the BMAP Source emissions, grouped by outcome; the START/PREEMPT tags of each accepted arrival go to startFilt/preemptFilt.