|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--hypercast.HC.HC_AddressPair
This class encapsulates the functions of the Logical-Physical Address pair. * It provides both physical and logical address for a hypercube overlay node. We also include the concept of age of the variable so that we can use this same class in the Neigborhood View
Method Summary | |
boolean |
age()
Ages a AddressPair entry and returns true if the AddressPair is still "alive". |
boolean |
equals(java.lang.Object o)
|
int |
getAge()
Gets the age of the node |
hypercast.I_LogicalAddress |
getLogicalAddress()
Gets a copy of the internal HC_LogicalAddress object, or null if the object is null. |
hypercast.I_PhysicalAddress |
getPhysicalAddress()
Gets a copy of the internal I_PhysicalAddress object, or null if the object is null. |
void |
resetAge()
Resets Age to MaxAge + MaxMissingNeighbor. |
void |
setAge(int age)
Sets Age to the new age. |
java.lang.String |
toString()
Gets the string format of the HC_AddressPair object return string format: nnn.nnn.nnn.nnn/nnnn:LA repeate |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public boolean age()
public void resetAge()
public void setAge(int age)
age
- the new agepublic int getAge()
public hypercast.I_LogicalAddress getLogicalAddress()
getLogicalAddress
in interface I_AddressPair
public hypercast.I_PhysicalAddress getPhysicalAddress()
getPhysicalAddress
in interface I_AddressPair
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |