Klasse Wire


public class Wire extends WiringComponent
Wire for all signal types. Can be used as multiplex wire with multiple output. Connection: Implements connectWire.
  • Konstruktordetails

    • Wire

      public Wire()
    • Wire

      public Wire(String name)
      Parameter:
      name - name of this Wire
    • Wire

      public Wire(String name, String longName)
  • Methodendetails

    • getImplementation

      public WireImpl getImplementation()
      Setzt außer Kraft:
      getImplementation in Klasse WiringComponent
    • set

      public void set(Params<?,?> params)
    • setParamsSet

      public void setParamsSet(ParamsSet paramsSet)
    • connect

      public void connect(System fromSys, System 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(System fromSys, int fromPortIdNumber, System 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 Wire connect(System toSys)
      Connects an additional output of the MuxWire to a system input. Must be called nOut-1 times to connect all outputs.
      Parameter:
      toSys - input 0 is taken.
    • addSymbol

      public Symbol addSymbol(int xPosition, int yPosition)
      Setzt außer Kraft:
      addSymbol in Klasse WiringComponent
    • setSymbol

      public void setSymbol(CanvasFactory symbol)
      Setzt außer Kraft:
      setSymbol in Klasse WiringComponent