|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--hypercast.DT.DT_Point | +--hypercast.DT.DT_LogicalAddress
A logical address on the Delaunay triangulation. It extends DT_Point. It is immutable.
Field Summary | |
static int |
ADDRESS_ARRAY_SIZE
|
Constructor Summary | |
DT_LogicalAddress(byte[] array,
int offset)
Reads coordinates from a byte array. |
|
DT_LogicalAddress(hypercast.DT.DT_LogicalAddress dtla)
|
|
DT_LogicalAddress(hypercast.INETv4OnePort a)
Creates coordinate such that if 2 nodes are on the same network, they have close coordinates. |
|
DT_LogicalAddress(int xx,
int yy)
constructor with the coodinates pair |
|
DT_LogicalAddress(java.lang.String s)
Reads coordinates from string in format "\d+,\d+". |
Method Summary | |
boolean |
equals(hypercast.I_Address a)
Check if the given address is equal to this address. |
int |
getSize()
Returns the size of byte[] used to store address. |
boolean |
greaterThan(hypercast.I_Address a)
Implements method of I_Address interface. |
byte[] |
toByteArray()
Converts the object into a byte array for transfer in a message. |
Methods inherited from class hypercast.DT.DT_Point |
angleRelative, angleToHorizon, distance, equals, findCenterOfCircle, getX, getY, greaterThan, hashCode, isInCircle, isInOrOnCircle, isOnCircle, toString |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface hypercast.I_Address |
equals, hashCode |
Field Detail |
public static final int ADDRESS_ARRAY_SIZE
Constructor Detail |
public DT_LogicalAddress(int xx, int yy)
public DT_LogicalAddress(hypercast.DT.DT_LogicalAddress dtla)
public DT_LogicalAddress(byte[] array, int offset)
public DT_LogicalAddress(java.lang.String s)
public DT_LogicalAddress(hypercast.INETv4OnePort a)
Method Detail |
public boolean greaterThan(hypercast.I_Address a)
greaterThan
in interface I_Address
public boolean equals(hypercast.I_Address a)
public int getSize()
getSize
in interface I_Address
public byte[] toByteArray()
toByteArray
in interface I_Address
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |