Class IfService


  • public class IfService
    extends Object
    This class holds the managed node/ip/service information for valid outage nodes.
    Author:
    Jacinta Remedios
    • Constructor Detail

      • IfService

        public IfService()
        Default Constructor.
      • IfService

        public IfService​(int node,
                         String ip,
                         int service,
                         String name,
                         String svcname)
        Constructor that initialises the nodeid, ipaddr, service.
        Parameters:
        node - a int.
        ip - a String object.
        service - a int.
        name - a String object.
        svcname - a String object.
    • Method Detail

      • setNodeID

        public void setNodeID​(int id)
        Sets the node id.
        Parameters:
        id - Node id to be set
      • getNodeName

        public String getNodeName()
        Return node name
        Returns:
        a String object.
      • setServiceName

        public void setServiceName​(String name)
        Sets the Service name.
        Parameters:
        name - Service name
      • getServiceName

        public String getServiceName()
        Return service name
        Returns:
        a String object.
      • setNodeName

        public void setNodeName​(String name)
        Sets the node name.
        Parameters:
        name - Node name to be set
      • getNodeID

        public int getNodeID()
        Returns the Node id
        Returns:
        node id.
      • setIpaddr

        public void setIpaddr​(String ip)
        Sets the ipaddr.
        Parameters:
        ip - ipaddress to be set
      • getIpaddr

        public String getIpaddr()
        This method returns the ipaddress.
        Returns:
        Returns the ipaddress.
      • setServiceId

        public void setServiceId​(int service)
        This method sets the service.
        Parameters:
        service - Service id to be set.
      • getServiceId

        public int getServiceId()
        This returns the service id.
        Returns:
        a int.