Package jline.solvers.mam.lal
Class LalTraffic
java.lang.Object
jline.solvers.mam.lal.LalTraffic
Independent marked arrival proposals in finite LAL compositions and their
explicit fitting (Python
solver_mam/lal_traffic.py). The offered
MMAPs describe traffic before any queue blocking; they are not substitutes
for the joint queue/phase dynamics of a blocked composition.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceTEST-ONLY replacement of the compression step offitTraffic(java.util.Map<java.lang.String, java.lang.Object>, double[][][], java.lang.String, java.lang.String, double, double)(Python tests monkeypatchmmap_ops.mmap_compress).static final classstatic interfaceTEST-ONLY replacement of the per-source moment fit of interposition (Python tests monkeypatchm3a.m3pp2m_fitc_theoretical). -
Method Summary
Modifier and TypeMethodDescriptionstatic double[][]countStatistics(double[][][] stream, double duration) Marked count rates and covariance overdurationusing a scale-free block exponential (Python_count_statistics).static LalTraffic.FitfitTraffic(Map<String, Object> traffic, double[][][] original, String method, String compressMethod, double fitTime, double fitTolerance) Fit offered marked streams and enforce a finite-time counting budget.offeredTraffic(LalModel snapshot, String levelName, boolean materialize) Exact superposed offered MMAP with mark provenance, ornull.static LalTraffic.CompressHookTEST-ONLY: installs (or, with null, removes) theLalTraffic.CompressHook.static LalTraffic.SourceFitHookTEST-ONLY: installs (or, with null, removes) theLalTraffic.SourceFitHook.static LalMamResultsolveReduced(Composition model, String levelName, String method, String compressMethod, double fitTime, double fitTolerance, long maxPhases, long maxStates, int maxIter, double tol) Explicitly fit independent offered streams, then solve the reduced QBD.
-
Method Details
-
setCompressHookForTesting
TEST-ONLY: installs (or, with null, removes) theLalTraffic.CompressHook. It is never set in production code.- Returns:
- the hook it replaces, so a test can restore it
-
setSourceFitHookForTesting
TEST-ONLY: installs (or, with null, removes) theLalTraffic.SourceFitHook. It is never set in production code.- Returns:
- the hook it replaces, so a test can restore it
-
offeredTraffic
public static Map<String,Object> offeredTraffic(LalModel snapshot, String levelName, boolean materialize) Exact superposed offered MMAP with mark provenance, ornull. Keys: kind, method, exact, sources, marks, targets, streams (List of [D0, D1, D11, ...]), matrices (combined ornull), blocking. -
countStatistics
public static double[][] countStatistics(double[][][] stream, double duration) Marked count rates and covariance overdurationusing a scale-free block exponential (Python_count_statistics). Returns{rates}in element 0 and the covariance rows after it. -
fitTraffic
public static LalTraffic.Fit fitTraffic(Map<String, Object> traffic, double[][][] original, String method, String compressMethod, double fitTime, double fitTolerance) Fit offered marked streams and enforce a finite-time counting budget. -
solveReduced
public static LalMamResult solveReduced(Composition model, String levelName, String method, String compressMethod, double fitTime, double fitTolerance, long maxPhases, long maxStates, int maxIter, double tol) Explicitly fit independent offered streams, then solve the reduced QBD. Original source phase probabilities and internal transition rates have no generally valid inverse mapping and are reported as NaN ("not computed").
-