public class IfService extends Object
Constructor and Description |
---|
IfService()
Default Constructor.
|
IfService(int node,
String ip,
int service,
String name,
String svcname)
Constructor that initialises the nodeid, ipaddr, service.
|
Modifier and Type | Method and Description |
---|---|
String |
getIpaddr()
This method returns the ipaddress.
|
int |
getNodeID()
Returns the Node id
|
String |
getNodeName()
Return node name
|
int |
getServiceId()
This returns the service id.
|
String |
getServiceName()
Return service name
|
void |
setIpaddr(String ip)
Sets the ipaddr.
|
void |
setNodeID(int id)
Sets the node id.
|
void |
setNodeName(String name)
Sets the node name.
|
void |
setServiceId(int service)
This method sets the service.
|
void |
setServiceName(String name)
Sets the Service name.
|
String |
toString()
toString method
|
public void setNodeID(int id)
id
- Node id to be setpublic void setServiceName(String name)
name
- Service namepublic void setNodeName(String name)
name
- Node name to be setpublic int getNodeID()
public void setIpaddr(String ip)
ip
- ipaddress to be setpublic String getIpaddr()
public void setServiceId(int service)
service
- Service id to be set.public int getServiceId()
Copyright © 2021. All rights reserved.