|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bankframe.services.notification.Node
This class encapsulates a nodes attributes. This class is made mutable via the getters/setters defined.
Field Summary | |
static java.lang.String |
DP_NAME
|
static java.lang.String |
ID_KEY
|
static java.lang.String |
IP_KEY
|
static java.lang.String |
PORT_KEY
|
Constructor Summary | |
Node()
Default constructor |
|
Node(DataPacket thisPacket)
This constructor is a convenient constructor allowing for the creation of a Node directly from a datapacket |
|
Node(java.lang.String ID,
java.lang.String IP,
java.lang.String PORT)
Constructor |
Method Summary | |
java.lang.String |
getID()
This getter returns the ID attribute |
java.lang.String |
getIP()
This getter returns the IP attribute |
java.lang.String |
getPORT()
This getter returns the PORT attribute |
void |
setID(java.lang.String ID)
This method sets the ID attribute |
void |
setIP(java.lang.String IP)
This method sets the IP attribute |
void |
setPORT(java.lang.String PORT)
This method sets the PORT attribute |
DataPacket |
toDataPacket()
Returns a datapacket representation of the node class |
java.lang.String |
toString()
This method overwrites the behaviour of the java.lang.Object.toString() to return a String representation of the atttributes of the node class |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String ID_KEY
public static final java.lang.String IP_KEY
public static final java.lang.String PORT_KEY
public static final java.lang.String DP_NAME
Constructor Detail |
public Node()
public Node(java.lang.String ID, java.lang.String IP, java.lang.String PORT)
public Node(DataPacket thisPacket)
Method Detail |
public java.lang.String getID()
public java.lang.String getIP()
public java.lang.String getPORT()
public void setID(java.lang.String ID)
public void setIP(java.lang.String IP)
public void setPORT(java.lang.String PORT)
public java.lang.String toString()
public DataPacket toDataPacket()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |