Class LalCore
lal/core.py).
A synchronized active transition is blocked when any passive partner has no matching transition. Passive alternatives use positive weights, normalized within each partner's current state. Unsynchronized active actions are local.
Immediate actions fire in zero time with maximal progress: in a state where
any immediate event is enabled only the immediate events of the highest
priority fire, chosen in proportion to their weights, and such vanishing
states are eliminated by stochastic complementation in compileModel(jline.lang.lal.LalModel).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHashable wrapper of a joint state given as local state indices. -
Method Summary
Modifier and TypeMethodDescriptionstatic LalCompiledcompileModel(LalModel model) Compile the full Cartesian state space.static LalCompiledcompileModel(LalModel model, boolean reachableOnly, Long maxStates, Long maxDenseBytes) Compile the finite state space and labelled event matrices (Pythoncompile_model).static EventKerneleventKernel(LalModel model) Return the legacy timed kernel of a validated model (Pythonevent_kernel).static EventKernelReturn the extended event kernel of a validated model (Pythonevents).static StringjoinFeatures(Collection<String> features) Comma-joined sorted feature names, as Python joins them in refusal messages.modelFeatures(LalModel model) Features of a model that only the extended kernel interprets (Pythonmodel_features):embedded,immediate,functionalandmultilabel, in sorted order.static LalModelParse LAL source, throwingIllegalArgumentExceptionon invalid input.static voidvalidateModel(LalModel model) Validate with unbounded queues refused.static voidvalidateModel(LalModel model, boolean allowUnbounded) Validate the common agent model used by both frontends (Pythonvalidate_model).
-
Method Details
-
validateModel
Validate with unbounded queues refused. -
validateModel
Validate the common agent model used by both frontends (Pythonvalidate_model). -
parse
Parse LAL source, throwingIllegalArgumentExceptionon invalid input. -
modelFeatures
Features of a model that only the extended kernel interprets (Pythonmodel_features):embedded,immediate,functionalandmultilabel, in sorted order. -
joinFeatures
Comma-joined sorted feature names, as Python joins them in refusal messages. -
events
Return the extended event kernel of a validated model (Pythonevents). -
eventKernel
Return the legacy timed kernel of a validated model (Pythonevent_kernel). Models with immediate actions, embedded LINE objects or multi-label events need the extended interface and are refused, so a solver path built on this kernel cannot misread them. -
compileModel
Compile the full Cartesian state space. -
compileModel
public static LalCompiled compileModel(LalModel model, boolean reachableOnly, Long maxStates, Long maxDenseBytes) Compile the finite state space and labelled event matrices (Pythoncompile_model).Matrices contain nonnegative event rates, including observable self-events. The generator excludes those self-events. Vanishing states (an immediate event enabled, or a vanishing state of an embedded LINE model) are eliminated by stochastic complementation: the generator and the label matrices are returned over the tangible states, and each label matrix credits the firings made inside vanishing excursions to the tangible state the excursion started from and the one it ends in. A model embedding a LINE object is always enumerated from its initial support.
- Parameters:
reachableOnly- enumerate only states reachable from the initial supportmaxStates- reachable-state cap, ornullmaxDenseBytes- dense storage cap in bytes, ornull
-