|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--mascoptLib.algos.abstractalgos.PathGenerator | +--mascoptLib.algos.abstractalgos.PathBreadthFirstSearch
Computes main or disjoint paths for a set of request using Breadth First Search.
This class computes paths for requests. The requests are contained in a Graph given to the constructor.
Field Summary | |
int |
maxLength
Maximum length in number of hops |
int |
numberOfPaths
The number of paht to compute for each request. |
Constructor Summary | |
PathBreadthFirstSearch(mascoptLib.abstractGraph.AbstractGraph g,
mascoptLib.abstractGraph.AbstractGraph requests)
Constructs a path generator on a graph for some requests. |
Method Summary | |
void |
run()
Run the computation of paths |
Methods inherited from class mascoptLib.algos.abstractalgos.PathGenerator |
computeDisjointPathsForGeneratedPaths, getPaths, getPathsForThisEdge |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public int numberOfPaths
public int maxLength
Constructor Detail |
public PathBreadthFirstSearch(mascoptLib.abstractGraph.AbstractGraph g, mascoptLib.abstractGraph.AbstractGraph requests)
g
- the graphrequests
- the requests for which we want pathsMethod Detail |
public void run()
run
in class PathGenerator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |