tapestry.api
Class TapestryNeighborInfo

java.lang.Object
  |
  +--tapestry.api.TapestryNeighborInfo

public class TapestryNeighborInfo
extends Object

A (NodeId, Guid, Latency) tuple. rtt_ms is only an estimate (obviously), and may not be filled in at all; e.g. it will be equal to Double.MAX_VALUE if we don't have an estimate for it yet. If so, and you want a better estimate, use Patchwork.

Version:
$Id: TapestryNeighborInfo.java,v 1.1.1.1 2004/03/26 19:57:05 hweather Exp $
Author:
Sean C. Rhea

Field Summary
 SecureHash guid
           
 int level
           
 NodeId node_id
           
 double rtt_ms
           
 
Constructor Summary
TapestryNeighborInfo(NodeId n, SecureHash g, int l)
           
TapestryNeighborInfo(NodeId n, SecureHash g, int l, double r)
           
 
Method Summary
 boolean equals(Object rhs)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

node_id

public NodeId node_id

guid

public SecureHash guid

level

public int level

rtt_ms

public double rtt_ms
Constructor Detail

TapestryNeighborInfo

public TapestryNeighborInfo(NodeId n,
                            SecureHash g,
                            int l,
                            double r)

TapestryNeighborInfo

public TapestryNeighborInfo(NodeId n,
                            SecureHash g,
                            int l)
Method Detail

equals

public boolean equals(Object rhs)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object