Package jline.solvers.mam.lal
Class LalQbd
java.lang.Object
jline.solvers.mam.lal.LalQbd
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 Summary
Modifier and TypeMethodDescriptionstatic RunnableTEST-ONLY: installs (or, with null, removes) an action run after everysolveComposition(jline.lang.lal.Composition, long, long, java.lang.String)returns its result and before the caller sees it.static LalMamResultstatic LalMamResultsolveComposition(Composition model, long maxPhases, long maxStates, String levelName) static AgentRecordPythonstructure: the level agent, ornullwith the reason inreason[0].
-
Method Details
-
setAfterSolveHookForTesting
TEST-ONLY: installs (or, with null, removes) an action run after everysolveComposition(jline.lang.lal.Composition, long, long, java.lang.String)returns its result and before the caller sees it. The Python tests monkeypatchlal_qbd.solve_compositionthe 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) Pythonstructure: the level agent, ornullwith the reason inreason[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)
-