|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.upb.swtpra05.group03.shuttle.Dijkstra
Class which implements the dijkstra algorithm
| Field Summary | |
(package private) static java.util.logging.Logger |
log
No comment provided by developer, please add a comment to improve documentation. |
private java.util.Collection |
nodes
The nodes to process the dijkstra algorithm on as DijkstraNodes |
private java.util.Vector |
orderedNodes
Collection which holds the nodes in order of their stretch value |
| Constructor Summary | |
protected |
Dijkstra(java.util.Collection nds)
Constructor for class Dijkstra |
| Method Summary | |
protected java.util.HashMap |
getAllShortestPaths()
Returns a collection which contains a spanning tree for any and routed by any node of nodes which represent the shorest paths in the graph |
protected java.util.Vector |
getShortestPaths(DijkstraNode start,
DijkstraEdge dontUse)
Gets a spanning tree for the start node which represent the shortest paths from start to any other node |
private void |
relax(DijkstraNode u,
DijkstraNode v,
long w,
int indexOfPredecessor)
The relax method of the dijkstra algorithm |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
static final java.util.logging.Logger log
private final java.util.Collection nodes
private final java.util.Vector orderedNodes
| Constructor Detail |
protected Dijkstra(java.util.Collection nds)
nds - The nodes to process as DijkstraNodes| Method Detail |
protected java.util.HashMap getAllShortestPaths()
protected java.util.Vector getShortestPaths(DijkstraNode start,
DijkstraEdge dontUse)
start - The start nodedontUse - Edges the algorithm shouldn't use
private void relax(DijkstraNode u,
DijkstraNode v,
long w,
int indexOfPredecessor)
u - The source node from which to relaxv - The destination node to relaxw - The edge weight from u to vindexOfPredecessor - Description of the Parameter
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||