|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--SSF.OS.ProtocolSession
|
+--gov.nist.antd.ospf_te.PathOptical
Dijkstra's shortest path algorithm. Most of the algorithm is taken from Introduction to Algorithms by Cormen, Leiserson and Rivest.
| Nested Class Summary | |
(package private) class |
PathOptical.Vertex
A node corresponding to a vertex in a graph upon which Dijkstra's algorithm is being run. |
| Field Summary | |
(package private) int |
count
Field count - XXX |
(package private) boolean |
initialized
Field initialized - XXX |
private int |
num_vertices
Total number of vertices in the graph. |
(package private) sOSPF_TE |
ospf
Field ospf - XXX |
private java.util.Vector |
pq
A vector to be used as a priority queue of vertices by distance. |
(package private) int |
rtrid
Field rtrid - XXX |
TERoutingTable |
TEtable
Field TEtable - XXX |
private java.util.Hashtable |
vertices
An table of vertices in the graph upon which Dijkstra's algorithm is being run. |
| Fields inherited from class SSF.OS.ProtocolSession |
name, use |
| Constructor Summary | |
PathOptical()
|
|
| Method Summary | |
boolean |
computed()
Returns true if all information initiated and shortest paths calculated. |
void |
config(com.renesys.raceway.DML.Configuration cfg)
Method config Configuration for Constraint Path Computation |
void |
createDijkstra(java.util.Hashtable G,
java.lang.String s,
int type)
Method createDijkstra XXX |
void |
createDijkstra(java.util.Hashtable G,
java.lang.String s,
int type,
java.util.Vector ctrt)
Constructs a new instance of a Dijkstra's algorithm execution given a graph (where vertices are routers and edges are links) and a source vertex. |
private PathOptical.Vertex |
extractMax()
Extract the node that has the minimum distance from the root. |
private PathOptical.Vertex |
extractMin()
Extract the node that has the minimum distance from the root. |
boolean |
findAllPaths(int index)
Returns the true if all the shortest paths can be found. |
java.util.Vector |
getRoute(int dest)
Method getRoute This routine is to get an explicit route information. |
java.util.Vector |
getRoute(int dest,
java.util.Vector ctrt)
Compute the Constraint shortest path tree using the databases and return path lists. |
double |
getTEweight(java.lang.String nhipref)
Returns the distance from the source to the given vertex. |
void |
init()
Method init |
void |
lsdbcheck()
Method lsdbcheck |
java.lang.String |
nextHop(java.lang.String src,
java.lang.String dest)
Returns the NHI prefix of the next hop given a destination NHI prefix. |
boolean |
push(ProtocolMessage message,
ProtocolSession fromSession)
Method push No action |
private void |
Relax(PathOptical.Vertex src,
PathOptical.Vertex dest,
double weight)
|
| Methods inherited from class SSF.OS.ProtocolSession |
close, closed, debugIdentifier, inGraph, open, opened, pushAfterDelay, pushAfterDelayFailed, setGraph, version |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private int num_vertices
private java.util.Hashtable vertices
private java.util.Vector pq
int rtrid
public TERoutingTable TEtable
int count
sOSPF_TE ospf
boolean initialized
| Constructor Detail |
public PathOptical()
| Method Detail |
public void config(com.renesys.raceway.DML.Configuration cfg)
throws com.renesys.raceway.DML.configException
config in interface com.renesys.raceway.DML.Configurableconfig in class ProtocolSessioncfg - - XXX
com.renesys.raceway.DML.configException
public void init()
throws ProtocolException
init in class ProtocolSessionProtocolExceptionpublic void lsdbcheck()
public boolean push(ProtocolMessage message,
ProtocolSession fromSession)
push in class ProtocolSessionmessage - - XXXfromSession - - XXX
public void createDijkstra(java.util.Hashtable G,
java.lang.String s,
int type,
java.util.Vector ctrt)
public void createDijkstra(java.util.Hashtable G,
java.lang.String s,
int type)
G - - XXXs - - XXXtype - - XXXpublic boolean findAllPaths(int index)
public double getTEweight(java.lang.String nhipref)
nhipref - The NHI prefix address of the router (vertex) to find the
distance to.
public java.lang.String nextHop(java.lang.String src,
java.lang.String dest)
src - The NHI prefix address of the router to find the next hop
from.dest - The NHI prefix address of the router toward which the next
hop is to be determined.private PathOptical.Vertex extractMin()
private PathOptical.Vertex extractMax()
private void Relax(PathOptical.Vertex src,
PathOptical.Vertex dest,
double weight)
public boolean computed()
public java.util.Vector getRoute(int dest,
java.util.Vector ctrt)
public java.util.Vector getRoute(int dest)
dest - - destination IP address
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||