|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--SSF.OS.OSPFv2.Dijkstra
Dijkstra's shortest path algorithm. Most of the algorithm is taken from Introduction to Algorithms by Cormen, Leiserson and Rivest.
| Constructor Summary | |
Dijkstra(java.util.Vector lsas,
OSPF o,
AreaData myArea)
Construct a new instance of Dijkstra's algorithm. |
|
| Method Summary | |
java.util.HashMap |
firstStage()
Compute the intra-area routes by building the shortest path tree for the area this Dijkstra belongs to. |
java.util.HashMap |
getSPTree()
Return the current shortest path tree. |
java.util.HashMap |
secondStage()
Compute the intra-area routes to all networks within the area this Dijkstra belongs to. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Dijkstra(java.util.Vector lsas,
OSPF o,
AreaData myArea)
lsas - A Vector holding all LSAs stored in the LS Database.o - A reference to the OSPF session this Dijkstra belogs to.myArea - A reference to the area this Dijkstra belongs to.| Method Detail |
public java.util.HashMap firstStage()
public java.util.HashMap secondStage()
public java.util.HashMap getSPTree()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||