Class EmbeddedEnvironment
- All Implemented Interfaces:
EmbeddedPart
Environment embedded as a stage agent plus its stage models
(Python embed.EmbeddedEnvironment).
The joint state is (clock, x): clock is the stage together
with the phases of its running stage clocks, x a global state of
that stage's network. In stage e the network evolves with stage e's own arcs
(the embedded network of that stage, so the semantics is SolverCTMC's); a
stage clock ringing moves to the destination stage, starts its clocks afresh,
and carries the network state across under the arc's reset policy:
keep matches every node's state row in the destination stage's space;
a queue-length reset maps the station-by-class queue lengths, keeping the
service phases where such a state exists; a state reset gives the entry law
of the exit state as the image of its unit vector. Competing arcs are racing
phase-type clocks; kernel arcs draw the destination on entry and then run
that arc's sojourn clock. Stage changes carry the key Env.STAGE[from->to].
-
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 embedded environment.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.
-
Constructor Details
-
EmbeddedEnvironment
- Parameters:
env- the Markovian environment (checked byLalMarkov.checkEnvironment(jline.lang.Environment))prefix- embedding prefix, or empty to use the environment namecutoff- open-class cutoff of the stage networks, ornull
-
-
Method Details
-
getEnvironment
The embedded environment. -
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
-
resolve
Description copied from interface:EmbeddedPartKey of a node action, validating names against the model.- Specified by:
resolvein interfaceEmbeddedPart
-
checkInjection
Description copied from interface:EmbeddedPartRefuse a key that cannot receive an injected arrival.- Specified by:
checkInjectionin interfaceEmbeddedPart
-
setInjected
Description copied from interface:EmbeddedPartRecord the injected classes (names); a change invalidates the enumeration.- Specified by:
setInjectedin interfaceEmbeddedPart
-
refresh
public void refresh()Description copied from interface:EmbeddedPartDrop the enumeration so that the next use re-reads the LINE model.- Specified by:
refreshin 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
-
outgoing
Description copied from interface:EmbeddedPartArcs leaving global states.- Specified by:
outgoingin interfaceEmbeddedPart
-
inject
Description copied from interface:EmbeddedPartPassive response of a node to an injected arrival; empty blocks the injection.- Specified by:
injectin interfaceEmbeddedPart
-
nodeStates
Description copied from interface:EmbeddedPartThe stateful node agents.- Specified by:
nodeStatesin interfaceEmbeddedPart
-
nodeRow
Description copied from interface:EmbeddedPartState row of a stateful node in global states.- Specified by:
nodeRowin 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
-