|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--edu.virginia.cs.mng.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
| Field Summary | |
private int |
Age
The age of the protocol node (in HeartBeats). |
private HC_LogicalAddress |
LA
The logical address of the protocol node |
private I_PhysicalAddress |
PA
The physical address of the protocol node |
private HC_Node |
parent
The HC_Node that created this object. |
| Constructor Summary | |
(package private) |
HC_AddressPair(HC_Node hcnode,
HC_AddressPair addrpair,
boolean ishroot)
Constructs a HC_AddressPair from a HC_AddressPair and a boolean flag. |
(package private) |
HC_AddressPair(HC_Node hcnode,
HC_LogicalAddress laddr,
I_PhysicalAddress paddr,
boolean ishroot)
Constructs HC_AddressPair from a HC_LogicalAddress, I_PhysicalAddress. |
| Method Summary | |
boolean |
age()
Ages a AddressPair entry and returns true if the AddressPair is still "alive". |
int |
getAge()
Gets the age of the node |
I_LogicalAddress |
getLogicalAddress()
Gets a copy of the internal HC_LogicalAddress object, or null if the object is null. |
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 |
|
| Field Detail |
private I_PhysicalAddress PA
private HC_LogicalAddress LA
private int Age
setAge or
resetAge.private HC_Node parent
| Constructor Detail |
HC_AddressPair(HC_Node hcnode,
HC_LogicalAddress laddr,
I_PhysicalAddress paddr,
boolean ishroot)
laddr - a HC_LogicalAddress objectpaddr - an I_PhysicalAddress objectishroot - a flag indicating if the HC_AddressPair represents an HRoot
HC_AddressPair(HC_Node hcnode,
HC_AddressPair addrpair,
boolean ishroot)
addrpair - HC_AddressPair objectishroot - a flag indicating if the HC_AddressPair represents an HRoot| Method Detail |
public boolean age()
public void resetAge()
public void setAge(int age)
age - the new agepublic int getAge()
public I_LogicalAddress getLogicalAddress()
public I_PhysicalAddress getPhysicalAddress()
public java.lang.String toString()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||