Class LalMarkov

java.lang.Object
jline.lang.lal.LalMarkov

public final class LalMarkov extends Object
Markovian admission check for LAL compositions (Python lal/markov.py).

LAL captures the Markovian models LINE can declare, and nothing else. Every law that reaches a composition, declared by hand or carried by an embedded LINE object, is classified here, and anything outside the accepted set is refused with LINE:unsupported:NonMarkovian rather than fitted.

The accepted set is explicit and deliberately narrower than ProcessType.isMarkovian, which also admits ME and RAP (matrix-exponential laws with no CTMC representation in general), DMAP (discrete time) and the time-inhomogeneous marked schedules. Classification reads the declared distribution object, never sn.proc, which stores an Erlang mean-fit of non-Markovian laws.

  • Field Details

  • Method Details

    • lawName

      public static String lawName(Object dist)
      Short readable name of a law for refusal messages.
    • classify

      public static String classify(Distribution dist)
      Classify one law as timed, immediate or disabled; any law outside the accepted set is refused.
    • checkMarkovian

      public static String checkMarkovian(Distribution dist, String where)
      Classify dist and name where in the refusal when it is refused.
    • objectLaws

      public static List<LalMarkov.Found> objectLaws(Object obj, String prefix)
      Every distribution an object holds, through its fields and the plain containers and holder objects they reference. Model objects (nodes, classes, networks, layered elements) are not descended into: each is walked from its own entry so that back-references do not loop.
    • checkNetwork

      public static void checkNetwork(Network network)
      Refuse a Network holding any non-Markovian specification (Python check_network). Every node and job class is walked, so service, arrival, setup, delay-off, patience, retrial, switchover, breakdown, heterogeneous-server and Petri-net mode laws are all covered without naming each field. Batch arrivals and fluid places are refused as well.
    • checkNetwork

      public static void checkNetwork(Network network, String where)
      checkNetwork(Network) naming the network where in messages.
    • checkLayered

      public static void checkLayered(LayeredNetwork lqn)
      Refuse a LayeredNetwork with a non-Markovian demand, think time or arrival.
    • checkEnvironment

      public static void checkEnvironment(Environment env)
      Refuse an Environment with a non-Markovian holding law or stage model.