Klasse WireImpl

Alle implementierten Schnittstellen:
MouseListener, EventListener

public class WireImpl extends WiringComponentImpl
Wire for all signal types. Can be used as multiplex wire with multiple output. Connection: Implements connection transaction. Simulation: Implements step(Signal). Layout: Manages display and canvas. Initialization and Signaling.
  • Konstruktordetails

    • WireImpl

      public WireImpl()
  • Methodendetails

    • getFacade

      public Wire getFacade()
      Setzt außer Kraft:
      getFacade in Klasse SignalingComponent
    • getFullLabel

      public String getFullLabel()
      Setzt außer Kraft:
      getFullLabel in Klasse WiringComponentImpl
      Gibt zurück:
      Concatenated (short) name and long name, e.g. "s(t) - Sendesignal". If a long name doesn't exist only the (short) name, e.g. "s(t)", is returned.
    • getFromWC

      public SystemImpl getFromWC()
      getter and setters:
      Angegeben von:
      getFromWC in Klasse WiringComponentImpl
    • getToWC

      public SystemImpl getToWC()
      Angegeben von:
      getToWC in Klasse WiringComponentImpl
    • getToWC

      public SystemImpl getToWC(int port)
      Angegeben von:
      getToWC in Klasse WiringComponentImpl
    • isMux

      public boolean isMux()
      Angegeben von:
      isMux in Klasse WiringComponentImpl
    • toPorts

      public int toPorts()
    • name

      public void name(String name)
      Setzt außer Kraft:
      name in Klasse WiringComponentImpl
    • name

      public void name(String name, String longName)
      Beschreibung aus Klasse kopiert: WiringComponentImpl
      Sets both name and long name
      Setzt außer Kraft:
      name in Klasse WiringComponentImpl
      Parameter:
      name -
      longName -
    • connect

      public void connect(SystemImpl fromSys, SystemImpl toSys)
      Parameter:
      fromSys - the system output (port 0) is connected to this wire
      toSys - the system input (port 0) is connected to this wire
    • connect

      public void connect(SystemImpl fromSys, int fromPortIdNumber, SystemImpl toSys, int toPortIdNumber)
      Parameter:
      fromSys - the system which output will be connected to this wire
      fromPortIdNumber - portIdnumber (tentative: field index) of the system which output will be connected to this wire
      toSys - the system which input will be connected to this wire
      toPortIdNumber - portIdnumber (tentative: field index) of the system which input will be connected to this wire
    • connect

      public WireImpl connect(SystemImpl toSys)
    • initToPorts

      public void initToPorts()
    • connect

      public void connect(OutPort outPort)
    • replaceInPort

      public void replaceInPort(InPort oldToPort, InPort newToPort)
    • initSystemContainer

      public void initSystemContainer(SystemContainer sysContainer)
      Runs through the simulation chain to initialize the SystemContainer and all TerminationInPorts.
    • step

      public void step(Signal signal)
      Incoming signal is output.
      Angegeben von:
      step in Klasse BaseWiringComponent
      Parameter:
      signal - Signal
    • forwardSignaling

      public void forwardSignaling(SignalingMessage sigMess)
      Runs (forward) through the simulation chain and communicates a Signaling message (SigMess). Can be used for all meta communication beyond simulation signal flow. Wire is not allowed to change sigMess.
    • backwardSignaling

      public void backwardSignaling(SignalingMessage sigMess)
      Runs (backward) through the simulation chain and communicates a Signaling message (SigMess). Can be used for all meta communication beyond simulation signal flow. Wire is not allowed to change sigMess.
    • checkConnection

      public void checkConnection()
      Angegeben von:
      checkConnection in Klasse BaseWiringComponent
    • createMeasures

      public void createMeasures()
      Beschreibung aus Klasse kopiert: BaseWiringComponent
      Signaling:
      Angegeben von:
      createMeasures in Klasse BaseWiringComponent
    • connectionDiagnose

      public String connectionDiagnose()
    • getSymbols

      public Symbols getSymbols(SystemImpl outSystem)