edu.virginia.cs.mng.hypercast.DT
Class DT_AddressPair

java.lang.Object
  |
  +--edu.virginia.cs.mng.hypercast.DT.DT_AddressPair

public final class DT_AddressPair
extends java.lang.Object
implements I_AddressPair

A physical & logical address pair for the Delaunay triangulation. It is immutable.


Field Summary
private  DT_LogicalAddress LA
           
private  I_PhysicalAddress PA
           
 
Constructor Summary
(package private) DT_AddressPair(I_PhysicalAddress pa, DT_LogicalAddress la)
           
 
Method Summary
 DT_LogicalAddress getDTLogicalAddress()
          Same as getLogicalAddress(), except the returned object type does not need to be coerced to type DT_LogicalAddress.
 I_LogicalAddress getLogicalAddress()
          return the logical address
 I_PhysicalAddress getPhysicalAddress()
          return the physical address
 java.lang.String toString()
          Returns "PA:" + PA.toString() + " LA:" + LA.toString()
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

PA

private I_PhysicalAddress PA

LA

private DT_LogicalAddress LA
Constructor Detail

DT_AddressPair

DT_AddressPair(I_PhysicalAddress pa,
               DT_LogicalAddress la)
Method Detail

getPhysicalAddress

public I_PhysicalAddress getPhysicalAddress()
return the physical address
Specified by:
getPhysicalAddress in interface I_AddressPair

getLogicalAddress

public I_LogicalAddress getLogicalAddress()
return the logical address
Specified by:
getLogicalAddress in interface I_AddressPair

getDTLogicalAddress

public DT_LogicalAddress getDTLogicalAddress()
Same as getLogicalAddress(), except the returned object type does not need to be coerced to type DT_LogicalAddress.

toString

public java.lang.String toString()
Returns "PA:" + PA.toString() + " LA:" + LA.toString()
Overrides:
toString in class java.lang.Object