Package jline.lang.lal
Interface EmbeddedPart
- All Known Implementing Classes:
EmbeddedEnvironment,EmbeddedNetwork
public interface EmbeddedPart
An embedded LINE model seen as one part of a composition: an
EmbeddedNetwork or an EmbeddedEnvironment. The agent record
of the part holds global state indices; its node agents are projections of
them, used for the state table and for injection. The enumeration behind
these methods is lazy and is redone after refresh().-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classOne arc leaving a global state: target state, node keys, rate (weight if immediate).static final classA stateful node agent: node name and stateful index.static final class(sn, node index, state row)of a stateful node in a global state.static final classA passive response to an injected arrival: target global state and probability. -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckInjection(NodeEvent key) Refuse a key that cannot receive an injected arrival.intGlobal index of the initial state.Node keys of the part's events, in first-seen order.getName()Name of the part in the composition.Embedding prefix, empty when none was given.booleanTrue when some global state of the part is vanishing.Passive response of a node to an injected arrival; empty blocks the injection.booleanisVanishing(int s) True when global statesis vanishing.State row of a stateful node in global states.nodeStateLabel(int s, int isf) Rendered state row[v ...]of stateful nodeisfin global states.The stateful node agents.outgoing(int s) Arcs leaving global states.voidrefresh()Drop the enumeration so that the next use re-reads the LINE model.Key of a node action, validating names against the model.voidsetInjected(Set<String> classes) Record the injected classes (names); a change invalidates the enumeration.Stage names, empty when the part has no stages.intstageOf(int s) Stage of global states, or-1when the part has no stages.
-
Method Details
-
getName
String getName()Name of the part in the composition. -
getPrefix
String getPrefix()Embedding prefix, empty when none was given. -
getInitial
int getInitial()Global index of the initial state. -
getLabels
Node keys of the part's events, in first-seen order. -
hasVanishing
boolean hasVanishing()True when some global state of the part is vanishing. -
isVanishing
boolean isVanishing(int s) True when global statesis vanishing. -
outgoing
Arcs leaving global states. -
inject
Passive response of a node to an injected arrival; empty blocks the injection. -
checkInjection
Refuse a key that cannot receive an injected arrival. -
resolve
Key of a node action, validating names against the model. -
setInjected
Record the injected classes (names); a change invalidates the enumeration. -
refresh
void refresh()Drop the enumeration so that the next use re-reads the LINE model. -
nodeStates
List<EmbeddedPart.NodeAgent> nodeStates()The stateful node agents. -
nodeRow
State row of a stateful node in global states. -
nodeStateLabel
Rendered state row[v ...]of stateful nodeisfin global states. -
stageOf
int stageOf(int s) Stage of global states, or-1when the part has no stages. -
stageNames
Stage names, empty when the part has no stages.
-