Class EventKernel

java.lang.Object
jline.lang.lal.EventKernel

public final class EventKernel extends Object
Event labels and the lazy joint-state event iterator of a LAL model (Python core.events and core.event_kernel). Joint states are arrays of local state indices in agent declaration order; an embedded LINE model holds a global state index of its own enumerated space.

events(int[]) is the extended kernel: it yields every enabled LalEvent with its labels, rate (weight if immediate), immediate flag and priority, applies the per-agent timed priority rule, and interprets functional rates, embedded models, injected arrivals and extension synchronizations. outgoing(int[], Set) is the legacy timed kernel, one label per move; LalCore.eventKernel(jline.lang.lal.LalModel) refuses the models it cannot represent.

  • Method Details

    • getModel

      public LalModel getModel()
    • getLabels

      public List<String> getLabels()
    • getAgentNames

      public List<String> getAgentNames()
    • agentIndex

      public int agentIndex(String name)
    • agent

      public AgentRecord agent(int i)
    • localIndex

      public int localIndex(int agent, String state)
    • stateNames

      public String[] stateNames(int[] state)
      Local state names of a joint state; an embedded model contributes its global state index.
    • stateIndices

      public int[] stateIndices(String[] state)
      Joint state from local state names.
    • cartesianStates

      public List<int[]> cartesianStates()
      The Cartesian product of local state spaces, last agent varying fastest (hand agents only).
    • view

      public StateView view(int[] state)
      The joint-state view of a state, for functional rates and rewards.
    • events

      public List<LalEvent> events(int[] state)
      Every enabled joint event of a state (Python events iterator), in kernel order, including self-events and events of zero rate only where the rule keeps them (functional rates of zero are dropped).
    • selected

      public static List<LalEvent> selected(List<LalEvent> events)
      Maximal progress and immediate priorities (Python selected): when an immediate event is enabled only the immediate events of the highest priority remain.
    • outgoing

      public List<EventKernel.Move> outgoing(int[] state)
    • outgoing

      public List<EventKernel.Move> outgoing(int[] state, Set<String> include)
      Outgoing moves of the legacy timed kernel in kernel order, one label per move. include, when non-null, restricts the event labels.