Class EmbeddedNetwork
- All Implemented Interfaces:
EmbeddedPart
Network embedded as one agent per node (Python
embed.EmbeddedNetwork).
The joint behaviour is not re-derived here: SolverCTMC's own state-space
preparation and sync-action generator builder run on the network, and their
per-event arcs are collected before any solve through the internal
LalCollect sink. The embedded agents therefore reproduce LINE's
generator exactly, including vanishing states, true BAS blocking, Petri-net
mode firings (sn.gsync) and fork firings (sn.fjsync).
Node actions are named with LINE's own event vocabulary, keyed by
NodeEvent. Each event of the network carries the keys of all its
participants, so a departure is reported at its source node and the matching
arrival at its destination as two rows of the same rate. A departure-arrival
event is split over the sn.rtnodes routing paths through
non-stateful nodes, each sub-event carrying the keys of the nodes it crosses.
The enumeration is lazy and is redone after refresh().
-
Nested Class Summary
Nested classes/interfaces inherited from interface jline.lang.lal.EmbeddedPart
EmbeddedPart.Arc, EmbeddedPart.NodeAgent, EmbeddedPart.NodeRow, EmbeddedPart.Response -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckInjection(NodeEvent key) Refuse a key that cannot receive an injected arrival.The cutoff of open classes, ornull.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.The embedded LINE network.intNumber of enumerated global states.Embedding prefix, empty when none was given.The private struct the generator builder read.booleanTrue when some global state of the part is vanishing.Passive response of a node to an injected arrival in global states; an empty list blocks the injection (no successor within LINE's enumerated space, e.g.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 network.Key of a node action, validating names against the network.voidsetInjected(Set<String> classes) Record the classes hand agents inject (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.
-
Constructor Details
-
EmbeddedNetwork
- Parameters:
network- the Markovian network (refused otherwise withLINE:unsupported:NonMarkovian)prefix- embedding prefix, empty for nonecutoff- open-class cutoff as in SolverCTMC, ornull
-
-
Method Details
-
getNetwork
The embedded LINE network. -
getName
Description copied from interface:EmbeddedPartName of the part in the composition.- Specified by:
getNamein interfaceEmbeddedPart
-
getPrefix
Description copied from interface:EmbeddedPartEmbedding prefix, empty when none was given.- Specified by:
getPrefixin interfaceEmbeddedPart
-
getCutoff
The cutoff of open classes, ornull. -
setInjected
Record the classes hand agents inject (names); a change invalidates the enumeration.- Specified by:
setInjectedin interfaceEmbeddedPart
-
refresh
public void refresh()Drop the enumeration so that the next use re-reads the network.- Specified by:
refreshin interfaceEmbeddedPart
-
resolve
Key of a node action, validating names against the network.- Specified by:
resolvein interfaceEmbeddedPart
-
getInitial
public int getInitial()Description copied from interface:EmbeddedPartGlobal index of the initial state.- Specified by:
getInitialin interfaceEmbeddedPart
-
getLabels
Description copied from interface:EmbeddedPartNode keys of the part's events, in first-seen order.- Specified by:
getLabelsin interfaceEmbeddedPart
-
hasVanishing
public boolean hasVanishing()Description copied from interface:EmbeddedPartTrue when some global state of the part is vanishing.- Specified by:
hasVanishingin interfaceEmbeddedPart
-
isVanishing
public boolean isVanishing(int s) Description copied from interface:EmbeddedPartTrue when global statesis vanishing.- Specified by:
isVanishingin interfaceEmbeddedPart
-
getNumStates
public int getNumStates()Number of enumerated global states. -
getStruct
The private struct the generator builder read. -
outgoing
Description copied from interface:EmbeddedPartArcs leaving global states.- Specified by:
outgoingin interfaceEmbeddedPart
-
inject
Passive response of a node to an injected arrival in global states; an empty list blocks the injection (no successor within LINE's enumerated space, e.g. at the cutoff).- Specified by:
injectin interfaceEmbeddedPart
-
checkInjection
Description copied from interface:EmbeddedPartRefuse a key that cannot receive an injected arrival.- Specified by:
checkInjectionin interfaceEmbeddedPart
-
nodeRow
Description copied from interface:EmbeddedPartState row of a stateful node in global states.- Specified by:
nodeRowin interfaceEmbeddedPart
-
nodeStates
Description copied from interface:EmbeddedPartThe stateful node agents.- Specified by:
nodeStatesin interfaceEmbeddedPart
-
nodeStateLabel
Description copied from interface:EmbeddedPartRendered state row[v ...]of stateful nodeisfin global states.- Specified by:
nodeStateLabelin interfaceEmbeddedPart
-
stageOf
public int stageOf(int s) Description copied from interface:EmbeddedPartStage of global states, or-1when the part has no stages.- Specified by:
stageOfin interfaceEmbeddedPart
-
stageNames
Description copied from interface:EmbeddedPartStage names, empty when the part has no stages.- Specified by:
stageNamesin interfaceEmbeddedPart
-