public class NodeStatus extends java.lang.Object implements java.lang.Comparable<NodeStatus>
Modifier and Type | Method and Description |
---|---|
int |
compareTo(NodeStatus other)
Return neg or pos number depending on whether this's distance is < or >
other's distance.
|
boolean |
equals(java.lang.Object ob)
Return true iff ob is a NodeStaus and it 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() |
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