|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--mascoptLib.algos.abstractalgos.PathGenerator
Computes main or disjoint paths for a set of request using Dijkstra.
This class computes paths for requests. The requests are contained in a Graph given to the constructor. In option, for each request (an edge of this request graph), the shortest path is computed with Dijkstra. Then, for each edge of this path, we compute an other shortest path on the original Graph without this edge. We obtain a set of path for each request which contains disjoints paths.
Constructor Summary | |
PathGenerator(mascoptLib.abstractGraph.AbstractGraph g,
mascoptLib.abstractGraph.AbstractGraph requests)
Constructs a path generator on a graph for some requests. |
Method Summary | |
void |
computeDisjointPathsForGeneratedPaths(boolean protection)
We can add some paths generated when removing each edge of the main path. |
HashMap |
getPaths()
Returns paths calculated in a HashMap. |
HashSet |
getPathsForThisEdge(mascoptLib.abstractGraph.AbstractEdge z)
Returns paths for a request z. |
void |
run()
Run the generation of paths. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PathGenerator(mascoptLib.abstractGraph.AbstractGraph g, mascoptLib.abstractGraph.AbstractGraph requests)
g
- the graphrequests
- the requests for which we want pathsMethod Detail |
public void run()
public HashMap getPaths()
public HashSet getPathsForThisEdge(mascoptLib.abstractGraph.AbstractEdge z)
z
- the request
public void computeDisjointPathsForGeneratedPaths(boolean protection)
protection
- true if you want to generate edge-disjoint paths.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |