Class LalQbd

java.lang.Object
jline.solvers.mam.lal.LalQbd

public final class LalQbd extends Object
Exact finite, level-dependent QBD analysis of LAL compositions (Python solver_mam/lal_qbd.py). The level agent has states n_0,...,n_K; all other agents form the phase. Events come directly from the LAL kernel, including observable self-events.
  • Method Details

    • setAfterSolveHookForTesting

      public static Runnable setAfterSolveHookForTesting(Runnable hook)
      TEST-ONLY: installs (or, with null, removes) an action run after every solveComposition(jline.lang.lal.Composition, long, long, java.lang.String) returns its result and before the caller sees it. The Python tests monkeypatch lal_qbd.solve_composition the same way, to change the model while MAM analysis is in flight. It is never set in production code.
      Parameters:
      hook - the action, or null for none
      Returns:
      the hook it replaces, so a test can restore it
    • structure

      public static AgentRecord structure(LalModel snapshot, long maxPhases, long maxStates, String levelName, String[] reason)
      Python structure: the level agent, or null with the reason in reason[0].
    • solveComposition

      public static LalMamResult solveComposition(Composition model, long maxPhases, long maxStates, String levelName)
    • solve

      public static LalMamResult solve(LalModel snapshot, boolean truncated, long maxPhases, long maxStates, String levelName)