public class NodeStatus extends java.lang.Object implements java.lang.Comparable<NodeStatus>
Modifier and Type | Method and Description |
---|---|
int |
compareTo(NodeStatus other)
Return a negative number, 0, or a positive number depending on
whether this is closer to, at the same ditance, or farther from the Orb.
|
boolean |
equals(java.lang.Object ob)
Return true if ob is an instance of NodeStatus and has the same id as this one.
|
int |
getDistanceToTarget()
Return the distance to the orb from the Node that corresponds to
this NodeStatus.
|
long |
getId()
Return the Id of the Node that corresponds to this NodeStatus.
|
int |
hashCode()
Return a hashcode for this, based solely on its id.
|
public long getId()
public int getDistanceToTarget()
public int compareTo(NodeStatus other)
compareTo
in interface java.lang.Comparable<NodeStatus>
public boolean equals(java.lang.Object ob)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object