|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.spy.util.SPVertex
A weighted connection to a SPNode.
ShortestPathFinder| Field Summary | |
static int |
DEFAULT_COST
|
| Constructor Summary | |
SPVertex(SPNode to)
Get an instance of SPVertex linking the two nodes with the default cost. |
|
SPVertex(SPNode to,
int cost)
Get an instance of SPVertex. |
|
| Method Summary | |
int |
compareTo(Object o)
Compare this vertex to another vertex. |
int |
getCost()
Get the cost of this vertex. |
SPNode |
getTo()
Get the destination node. |
String |
toString()
String me. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int DEFAULT_COST
| Constructor Detail |
public SPVertex(SPNode to,
int cost)
to - the destination nodecost - the costpublic SPVertex(SPNode to)
to - the destination node| Method Detail |
public String toString()
public SPNode getTo()
public int getCost()
public int compareTo(Object o)
compareTo in interface Comparable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||