Package jline.lang.lal
Class EventKernel
java.lang.Object
jline.lang.lal.EventKernel
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classOne outgoing move of the legacy kernel: target joint state, event label and rate. -
Method Summary
Modifier and TypeMethodDescriptionagent(int i) intagentIndex(String name) List<int[]>The Cartesian product of local state spaces, last agent varying fastest (hand agents only).events(int[] state) Every enabled joint event of a state (Pythoneventsiterator), in kernel order, including self-events and events of zero rate only where the rule keeps them (functional rates of zero are dropped).getModel()intlocalIndex(int agent, String state) outgoing(int[] state) Outgoing moves of the legacy timed kernel in kernel order, one label per move.Maximal progress and immediate priorities (Pythonselected): when an immediate event is enabled only the immediate events of the highest priority remain.int[]stateIndices(String[] state) Joint state from local state names.String[]stateNames(int[] state) Local state names of a joint state; an embedded model contributes its global state index.view(int[] state) The joint-state view of a state, for functional rates and rewards.
-
Method Details
-
getModel
-
getLabels
-
getAgentNames
-
agentIndex
-
agent
-
localIndex
-
stateNames
Local state names of a joint state; an embedded model contributes its global state index. -
stateIndices
Joint state from local state names. -
cartesianStates
The Cartesian product of local state spaces, last agent varying fastest (hand agents only). -
view
The joint-state view of a state, for functional rates and rewards. -
events
Every enabled joint event of a state (Pythoneventsiterator), in kernel order, including self-events and events of zero rate only where the rule keeps them (functional rates of zero are dropped). -
selected
Maximal progress and immediate priorities (Pythonselected): when an immediate event is enabled only the immediate events of the highest priority remain. -
outgoing
-
outgoing
Outgoing moves of the legacy timed kernel in kernel order, one label per move.include, when non-null, restricts the event labels.
-