|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.spy.util.SPVertex
public class 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(java.lang.Object o)
Compare this vertex to another vertex. |
int |
getCost()
Get the cost of this vertex. |
SPNode |
getTo()
Get the destination node. |
java.lang.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 java.lang.String toString()
toString in class java.lang.Objectpublic SPNode getTo()
public int getCost()
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||