|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbe.ac.ulg.montefiore.run.totem.repository.allDistinctRoutes.AllDistinctRoutes
public class AllDistinctRoutes
AllDistinctsRoutes can be used to compute all distincts route, load or save them to a file and give easy acces to computed routes. This class use ComputeAllDistinctPath to compute all distinct route on a SimplifiedDomain. We use a deep first search algorithm to explore all the distinct path. The maxDepth parameter is used to limit the maximum length of a path. All the computed path contains no loop. This algorithm can be used to design more intelligent TE methods.
Creation date: 1-Jan-2004
| Field Summary | |
|---|---|
protected SimplifiedDomain |
domain
|
protected int |
maxDepth
|
protected java.util.List<SimplifiedPath>[][] |
routes
|
| Constructor Summary | |
|---|---|
AllDistinctRoutes()
|
|
| Method Summary | |
|---|---|
void |
computeAllDistinctRoute(SimplifiedDomain domain,
int maxDepth)
Compute all the distinct routes on a given SimplifiedDomain. |
void |
computeAllDistinctRoute(SimplifiedDomain domain,
int maxDepth,
int nbPath,
boolean verbose)
|
java.util.List<SimplifiedPath> |
getAllDistinctRoutes(int srcNodeId,
int dstNodeId)
Get all the disctinct routes from a source to a destination |
int |
getMaxDepth()
Get the maximum path length |
void |
loadAllDistinctRoute(SimplifiedDomain domain,
java.lang.String fileName)
Load all distinct routes from a file |
void |
saveAllDistinctRoute(java.lang.String fileName)
Save all distinct routes to a file |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected SimplifiedDomain domain
protected java.util.List<SimplifiedPath>[][] routes
protected int maxDepth
| Constructor Detail |
|---|
public AllDistinctRoutes()
| Method Detail |
|---|
public void loadAllDistinctRoute(SimplifiedDomain domain,
java.lang.String fileName)
throws java.io.IOException,
AllDistinctRoutesException
domain - fileName -
java.io.IOException
AllDistinctRoutesException
public void saveAllDistinctRoute(java.lang.String fileName)
throws java.io.IOException,
AllDistinctRoutesException
fileName -
java.io.IOException
AllDistinctRoutesException
public void computeAllDistinctRoute(SimplifiedDomain domain,
int maxDepth)
throws LinkNotFoundException,
NodeNotFoundException
domain - maxDepth -
LinkNotFoundException
NodeNotFoundException
public void computeAllDistinctRoute(SimplifiedDomain domain,
int maxDepth,
int nbPath,
boolean verbose)
throws LinkNotFoundException,
NodeNotFoundException
LinkNotFoundException
NodeNotFoundExceptionpublic int getMaxDepth()
public java.util.List<SimplifiedPath> getAllDistinctRoutes(int srcNodeId,
int dstNodeId)
throws AllDistinctRoutesException
srcNodeId - dstNodeId -
AllDistinctRoutesException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||