|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--mascoptCplex.algos.abstractalgos.BaroniRouting
Routes some request on a network. This algorithm is based on a Cplex Model of Baroni. It can also route protection paths in the network.
| Field Summary | |
static String |
FLOW_ALLOCATED
The string wich is used to store the number of lambdas on a path. |
boolean |
integerComputation_
Computes the flow in integer |
double |
nbFTotal
The total number of fibers |
String |
SIZEREQUESTSTRING
The string identifying the size of the request in the file. |
int |
stretchFactor
Additive stretch factor |
int |
W
Number of wavelenghts per fiber. |
| Constructor Summary | |
BaroniRouting(AbstractGraph g,
DiGraph requests)
Constructs the BaroniRouting object. |
|
| Method Summary | |
Vector |
getPathForRequest(AbstractEdge z)
Return a primary path of a request. |
HashMap |
getPaths()
Return all primary paths of requests. |
HashMap |
getProtectionForRequest(AbstractEdge z)
Return protection paths of a request. |
boolean |
hasRoutes()
Return true if a feasible solution have been found |
boolean |
hasSolution()
Says if a solution exists for the current problem |
boolean |
pathsCalculusMethod(String method)
Choose the path determination method. |
void |
printStatistics()
Statistics. |
void |
route()
Launch the routing computation. |
void |
setProtection(boolean protection)
Sets the protection mode |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static String FLOW_ALLOCATED
public int W
public String SIZEREQUESTSTRING
public boolean integerComputation_
public int stretchFactor
public double nbFTotal
| Constructor Detail |
public BaroniRouting(AbstractGraph g,
DiGraph requests)
g - the graph used for the routing| Method Detail |
public boolean pathsCalculusMethod(String method)
method - the string designing the method
public void setProtection(boolean protection)
protection - true if activatedpublic void route()
public boolean hasRoutes()
public HashMap getPaths()
public Vector getPathForRequest(AbstractEdge z)
z - the request to consider
public HashMap getProtectionForRequest(AbstractEdge z)
z - the request to consider
public void printStatistics()
public boolean hasSolution()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||