Class LalRecords

java.lang.Object
jline.lang.lal.LalRecords

public final class LalRecords extends Object
Private record constructors of LAL agents, NOT part of the public API (Python lal._records._Records).

LAL agents are declared action by action, or obtained by embedding LINE model objects. These constructors build the same finite agents for LAL's own internal use: SolverMAM's lowering of embedded Queue and Source nodes into the level and source agents its recognizers read (LalMamLowering), and the synthetic marked stream that its traffic fitting substitutes for a source (jline.solvers.mam.lal.LalTraffic). They were public Agent factories until 2026-11-15. The class is public only so that the solver packages (jline.solvers.mam.lal) and the LAL tests in other packages (jline.solvers.mam, jline.solvers.ag, which port the Python tests that still use _Records) can reach it; it is internal and applications must not use it.

  • Method Details

    • queueBuilder

      public static LalRecords.QueueBuilder queueBuilder(String name)
    • queue

      public static Agent queue(String name, Integer capacity, double serviceRate, List<String> arrivals)
      Single-server queue with one departure output.
    • queue

      public static Agent queue(String name, Integer capacity, Double serviceRate, List<String> arrivals, Map<String,Double> departures, int servers, int initial, String serviceInput, List<String> serviceInputs, String servicePhase)
      Create a single-class queue; capacity == null is unbounded.

      arrivals names separate passive inputs. departures maps active output names to fixed routing probabilities summing to one. A full queue disables its inputs, and a blocked output blocks that routed departure. For an external service clock set serviceRate == null and give serviceInput(s) and optionally servicePhase.

    • mmap

      public static Agent mmap(String name, Matrix d0, Map<String,Matrix> marks)
      MMAP agent with initial phase 0.
    • mmap

      public static Agent mmap(String name, Matrix d0, Map<String,Matrix> marks, int initial)
      MMAP agent started in the given zero-based phase.
    • mmap

      public static Agent mmap(String name, Matrix d0, Map<String,Matrix> marks, double[] initial)
      MMAP agent started from an initial phase distribution.
    • mmap

      public static Agent mmap(String name, double[][] d0, Map<String,double[][]> marks, int initialIndex, double[] initialVector)
      Create a finite agent from an MMAP and its named mark matrices. The phase process is shared by every mark; internal D0 off-diagonals become the active action _phase.
      Parameters:
      initialIndex - zero-based initial phase (ignored when initialVector is given)
      initialVector - initial phase distribution, or null
    • bufferedJoin

      public static Agent bufferedJoin(String name, double leftRate, double rightRate, int capacity)
      Two independent Poisson inputs paired through bounded unmatched buffers.
    • bufferedJoin

      public static Agent bufferedJoin(String name, double leftRate, double rightRate, int capacity, String output)
      Two independent Poisson inputs paired through bounded unmatched buffers. A matching arrival consumes one unmatched item and emits output.
    • bufferedMapJoin

      public static Agent bufferedMapJoin(String name, Matrix[] left, Matrix[] right, int capacity)
    • bufferedMapJoin

      public static Agent bufferedMapJoin(String name, Matrix[] left, Matrix[] right, int capacity, String output)
      Pair two MAP streams (D0, D1), freezing a whole input at its full buffer (the policy of mmap_max).
    • bufferedMmapJoin

      public static Agent bufferedMmapJoin(String name, MatrixCell left, MatrixCell right, int capacity, List<String> labels)
      Pair two MMAP streams given in M3A layout [D0, D1, D1_1, ...] and mark each completion by its later arrival.
    • phService

      public static Agent phService(String name, double[] alpha, Matrix T, String completion)
      PH service clock with a single completion action.
    • phService

      public static Agent phService(String name, double[] alpha, Matrix T)
    • phService

      public static Agent phService(String name, double[] alpha, Matrix T, Map<String,Double> completion)
      Build a PH service clock; synchronize its completion actions with a queue's service inputs and _phase with its service phase.
    • fromMarkedMap

      public static Agent fromMarkedMap(String name, MarkedMAP process, List<String> labels)
      Construct from LINE's stationary MarkedMAP; only the per-mark matrices are used.
    • fromMarkedMap

      public static Agent fromMarkedMap(String name, MarkedMAP process, List<String> labels, int initial)
    • fromMap

      public static Agent fromMap(String name, MAP process)
      Construct from a stationary LINE MAP with action arrival.
    • fromMap

      public static Agent fromMap(String name, MAP process, String action, int initial)
    • fromMap

      public static Agent fromMap(String name, MMPP2 process)
      Construct from a stationary LINE MMPP2 with action arrival.
    • fromMap

      public static Agent fromMap(String name, MMPP2 process, String action, int initial)
    • fromNetworkProcess

      public static Agent fromNetworkProcess(String name, NetworkStruct sn, int station, int jobclass, List<String> labels, int initial)
      Import one stationary MAP/MMAP process from a LINE network struct. station and jobclass are zero-based. A marked source must be imported from its first-mark carrier with one label per mark.
    • fromGenerator

      public static Agent fromGenerator(String name, Matrix generator)
      Construct one agent from a CTMC generator with no event filters, started in state 0.
    • fromGenerator

      public static Agent fromGenerator(String name, Matrix generator, Map<String,Matrix> events, int initialIndex, double[] initialVector)
      Construct one finite agent from a CTMC generator and optional event filters. Unlabelled off-diagonal rates become _internal.