Class LalMamLowering

java.lang.Object
jline.lang.lal.LalMamLowering

public final class LalMamLowering extends Object
Lowering of embedded LINE networks to the agents SolverMAM's LAL methods read (Python lal/mam_lowering.py).

SolverMAM's composition methods recognize a level agent whose states count the jobs of a queue, and source agents whose states are the phases of a MAP or MMAP. An embedded Network is lowered to exactly those agents when its structure allows it:

  • every station is a Queue visited by ONE open class, with exponential service on c servers, or phase-type service on one server (a separate service clock whose completions are the departures), FCFS, LCFS, SIRO or PS scheduling, and an infinite or finite capacity;
  • a finite capacity under LINE's DROP rule loses the arriving job, a self-event of the full queue; under a blocking rule the arrival is blocked;
  • routing is sn.rtnodes between Queue nodes and to a Sink, with no class switching; a Source contributes its Exp, MAP or marked-MAP arrival process, each class going to a single queue;
  • hand agents may inject arrivals of a queue's class; a hand observer of a node event is not lowered.
Lowered actions keep route-specific names; actionLabelMap(jline.lang.lal.Composition) presents them under LINE's event keys (Q.DEP[Jobs], a service clock's phase moves as Q.PHASE[Jobs], a Source's emissions as Src.DEP[cls]). A network outside this structure is refused by name.
  • Method Details

    • lower

      public static Composition lower(Composition composition)
      Return a composition of plain agents equivalent to composition, or composition itself when it embeds nothing. The result records its source (Composition.getLoweredSource()) and label map.
    • actionLabelMap

      public static Map<String,String> actionLabelMap(Composition lowered)
      agent.action -> node-event label of a lowered composition (Python action_label_map).
    • relabelActionTable

      public static LalTable relabelActionTable(LalTable table, Map<String,String> mapping)
      Rename lowered action rows to their node-event labels, summing rows that share one (Python relabel_action_table).