com.aelitis.azureus.core.dht.netcoords
Interface DHTNetworkPosition

All Known Subinterfaces:
VivaldiPosition
All Known Implementing Classes:
VivaldiPositionImpl

public interface DHTNetworkPosition


Field Summary
static byte POSITION_TYPE_NONE
           
static byte POSITION_TYPE_VIVALDI_V1
           
static byte POSITION_TYPE_VIVALDI_V2
           
 
Method Summary
 float estimateRTT(DHTNetworkPosition other)
           
 double[] getLocation()
           
 byte getPositionType()
           
 int getSerialisedSize()
          number of bytes on wire
 boolean isValid()
           
 void serialise(java.io.DataOutputStream os)
           
 void update(byte[] other_id, DHTNetworkPosition other, float rtt)
           
 

Field Detail

POSITION_TYPE_NONE

static final byte POSITION_TYPE_NONE
See Also:
Constant Field Values

POSITION_TYPE_VIVALDI_V1

static final byte POSITION_TYPE_VIVALDI_V1
See Also:
Constant Field Values

POSITION_TYPE_VIVALDI_V2

static final byte POSITION_TYPE_VIVALDI_V2
See Also:
Constant Field Values
Method Detail

getPositionType

byte getPositionType()

getSerialisedSize

int getSerialisedSize()
number of bytes on wire

Returns:

estimateRTT

float estimateRTT(DHTNetworkPosition other)
Parameters:
other -
Returns:
Float.NaN if no value available

update

void update(byte[] other_id,
            DHTNetworkPosition other,
            float rtt)

isValid

boolean isValid()

getLocation

double[] getLocation()

serialise

void serialise(java.io.DataOutputStream os)
               throws java.io.IOException
Throws:
java.io.IOException