|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SPNode<T extends SPNode<T>>
A Node for a shortest path graph. This is essentially an object that weighted connections to other objects.
ShortestPathFinder| Method Summary | |
|---|---|
void |
addNextHop(SPNode<T> n,
SPVertex<T> v)
Add a vertex to the next hop database to take you to a particular location. |
void |
clearNextHops()
Clear out the next hop map. |
boolean |
equals(Object o)
Object.equals must be overridden to return results consistent to compareTo(other). |
SortedSet<SPVertex<T>> |
getConnections()
Get all of the connections to other nodes. |
SPVertex<T> |
getNextHop(SPNode<T> n)
Get the next hop to take you to the given node. |
Map<SPNode<T>,SPVertex<T>> |
getNextHops()
Get the mapping of SPNode -> SPVertex hops for this SPNode. |
int |
hashCode()
Object.hashCode must be overridden to return a consistent hashCode. |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Method Detail |
|---|
SortedSet<SPVertex<T>> getConnections()
SPVertex objects.Map<SPNode<T>,SPVertex<T>> getNextHops()
void clearNextHops()
ShortestPathFinder.
SPVertex<T> getNextHop(SPNode<T> n)
n - the node you want to get to
void addNextHop(SPNode<T> n,
SPVertex<T> v)
ShortestPathFinder.
n - the destination nodev - the vertex that will take you thereint hashCode()
one.compareTo(other) == one.equals(other) == true
must return the same hashCode.
hashCode in class Objectboolean equals(Object o)
equals in class Objecto - the object to which to compare
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||