Class NetworkInterface


  • public class NetworkInterface
    extends Object
    Router' s network interface. Is used for representation of physical interface of router (Container / VM). Contains only most necessary informations about physical interface.
    • Constructor Detail

      • NetworkInterface

        public NetworkInterface​(String name,
                                String ip)
      • NetworkInterface

        public NetworkInterface​(String ip)
      • NetworkInterface

        public NetworkInterface​(String name,
                                String ip,
                                Integer mask)
        Instantiates a new TopologyNetwork interface.
        Parameters:
        name - the network name
        ip - the ip address
        mask - the mask
      • NetworkInterface

        public NetworkInterface()
        Instantiates a new TopologyNetwork interface.
    • Method Detail

      • getName

        public String getName()
        Gets name.
        Returns:
        the name
      • setName

        public void setName​(String name)
        Sets name.
        Parameters:
        name - the name
      • getIp

        public String getIp()
        Gets ip.
        Returns:
        the ip
      • setIp

        public void setIp​(String ip)
        Sets ip.
        Parameters:
        ip - the ip
      • getMask

        public Integer getMask()
        Gets mask.
        Returns:
        the mask
      • setMask

        public void setMask​(Integer mask)
        Sets mask.
        Parameters:
        mask - the mask