Class InternetKnoten

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Gateway, Host, Vermittlungsrechner

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

    • InternetKnoten

      public InternetKnoten()
  • Method Details

    • getMaxLayerOfOperation

      public int getMaxLayerOfOperation()
    • setMaxLayerOfOperation

      public void setMaxLayerOfOperation(int maxLayerOfOperation)
    • 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
    • getNetzwerkInterfaceByMac

      public NetzwerkInterface getNetzwerkInterfaceByMac(String mac)
      Gibt das NetzwerkInterface zurueck, dass die angegebene mac Adresse hat. Falls kein Interface diese Mac-Adresse besitzt, wird null zurueckgegeben.
      Parameters:
      mac -
      Returns:
    • removeNic

      public void removeNic(NetzwerkInterface nic)
    • getNetzwerkInterfaceByIp

      public NetzwerkInterface getNetzwerkInterfaceByIp(String ip)
      Gibt die Netzwerkkarte mit der entsprechenden IP zurueck
      Parameters:
      mac -
      Returns:
    • getNetzwerkInterfaces

      public List<NetzwerkInterface> getNetzwerkInterfaces()
    • setNetzwerkInterfaces

      public void setNetzwerkInterfaces(List<NetzwerkInterface> netzwerkInterfaces)
    • holeAnzahlAnschluesse

      public int holeAnzahlAnschluesse()
    • hinzuAnschluss

      public void hinzuAnschluss()
    • setzeAnzahlAnschluesse

      public void setzeAnzahlAnschluesse(int anzahlAnschluesse)