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().
  • 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

      List<NodeEvent> 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 state s is vanishing.
    • outgoing

      List<EmbeddedPart.Arc> outgoing(int s)
      Arcs leaving global state s.
    • inject

      List<EmbeddedPart.Response> inject(int s, NodeEvent key)
      Passive response of a node to an injected arrival; empty blocks the injection.
    • checkInjection

      void checkInjection(NodeEvent key)
      Refuse a key that cannot receive an injected arrival.
    • resolve

      NodeEvent resolve(Object node, EventType event, Object jobclass, String mode)
      Key of a node action, validating names against the model.
    • setInjected

      void setInjected(Set<String> classes)
      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

      The stateful node agents.
    • nodeRow

      EmbeddedPart.NodeRow nodeRow(int s, Object node)
      State row of a stateful node in global state s.
    • nodeStateLabel

      String nodeStateLabel(int s, int isf)
      Rendered state row [v ...] of stateful node isf in global state s.
    • stageOf

      int stageOf(int s)
      Stage of global state s, or -1 when the part has no stages.
    • stageNames

      List<String> stageNames()
      Stage names, empty when the part has no stages.