Class LalTraffic

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

public final class LalTraffic extends Object
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.
  • Method Details

    • setCompressHookForTesting

      public static LalTraffic.CompressHook setCompressHookForTesting(LalTraffic.CompressHook hook)
      TEST-ONLY: installs (or, with null, removes) the LalTraffic.CompressHook. It is never set in production code.
      Returns:
      the hook it replaces, so a test can restore it
    • setSourceFitHookForTesting

      public static LalTraffic.SourceFitHook setSourceFitHookForTesting(LalTraffic.SourceFitHook hook)
      TEST-ONLY: installs (or, with null, removes) the LalTraffic.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, or null. Keys: kind, method, exact, sources, marks, targets, streams (List of [D0, D1, D11, ...]), matrices (combined or null), blocking.
    • countStatistics

      public static double[][] countStatistics(double[][][] stream, double duration)
      Marked count rates and covariance over duration using 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").