Class MockInterface


  • public class MockInterface
    extends MockContainer<MockNode,​MockService>

    MockInterface class.

    Version:
    $Id: $
    Author:
    brozow TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates
    • Constructor Detail

      • MockInterface

        public MockInterface​(MockNode node,
                             java.lang.String ipAddr)

        Constructor for MockInterface.

        Parameters:
        node - a MockNode object.
        ipAddr - a String object.
    • Method Detail

      • addService

        public MockService addService​(java.lang.String svcName,
                                      int serviceId)

        addService

        Parameters:
        svcName - a String object.
        serviceId - a int.
        Returns:
        a MockService object.
      • getId

        public int getId()

        getIpAddr

        Returns:
        a String object.
      • getIpAddr

        public java.lang.String getIpAddr()

        getIpAddr

        Returns:
        a String object.
      • getNodeId

        public int getNodeId()

        getNodeId

        Returns:
        a int.
      • getNodeLabel

        public java.lang.String getNodeLabel()

        getNodeLabel

        Returns:
        a String object.
      • getService

        public MockService getService​(java.lang.String svcName)

        getService

        Parameters:
        svcName - a String object.
        Returns:
        a MockService object.
      • getServices

        public java.util.List<MockService> getServices()

        getServices

        Returns:
        a List object.
      • removeService

        public void removeService​(MockService svc)

        removeService

        Parameters:
        svc - a MockService object.
      • toString

        public java.lang.String toString()

        toString

        Overrides:
        toString in class java.lang.Object
        Returns:
        a String object.
      • setIfAlias

        public void setIfAlias​(java.lang.String ifAlias)

        setIfAlias

        Parameters:
        ifAlias - a String object.
      • getIfAlias

        public java.lang.String getIfAlias()

        getIfAlias

        Returns:
        Returns the ifAlias.
      • getAddress

        public java.net.InetAddress getAddress()

        getAddress

        Returns:
        a InetAddress object.
      • getIfIndex

        public int getIfIndex()

        getIfIndex

        Returns:
        a int.
      • setIfIndex

        public void setIfIndex​(int ifIndex)

        setIfIndex

        Parameters:
        ifIndex -