Class LokalerKnoten

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Modem, Switch

public abstract class LokalerKnoten extends Knoten
See Also:
  • Constructor Details

    • LokalerKnoten

      public LokalerKnoten()
  • Method Details

    • holeFreienPort

      public Port holeFreienPort()
      Specified by:
      holeFreienPort in class Knoten
    • defineConnectedPorts

      protected List<Port> defineConnectedPorts()
      Specified by:
      defineConnectedPorts in class Knoten
    • hasPort

      protected boolean hasPort(Port portToLookup)
      Check whether this given port is one of the node's ports.
      Specified by:
      hasPort in class Knoten
    • getErstenAnschluss

      public Port getErstenAnschluss()
    • getAnschluesse

      public LinkedList<Port> getAnschluesse()
    • setAnschluesse

      public void setAnschluesse(LinkedList<Port> anschluesse)
    • holeAnzahlAnschluesse

      public int holeAnzahlAnschluesse()
    • setzeAnzahlAnschluesse

      public void setzeAnzahlAnschluesse(int anzahlAnschluesse)