Klasse Port

java.lang.Object
de.labAlive.core.port.Port
Bekannte direkte Unterklassen:
InPort, OutPort

public abstract class Port extends Object
Abstract class for a port. A port belongs to a sysrem and represents an input or output. descendant class must implement step();
  • Felddetails

  • Konstruktordetails

    • Port

      public Port(int port, SystemImpl owner)
      Parameter:
      owner - system to which this port belongs to
      name - name of the port
  • Methodendetails

    • connectWire

      public void connectWire(WireImpl wire)
      Connects wire to this port.
      Parameter:
      wire - wire connected to system output
    • step

      public abstract void step(Signal sig)
    • getWire

      public WireImpl getWire()
    • getOwner

      public SystemImpl getOwner()
    • isConnected

      public boolean isConnected()
    • getPort

      public int getPort()
    • checkConnection

      public void checkConnection()