|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--mascoptDev.networks.Network
|
+--mascoptDev.networks.WDMNetwork
WDM Network class.
| Field Summary | |
String |
mglFile
Name file where is save and write the solution of problem. |
String |
OBJECTIVE_TYPE
String which is read on DiGraph of cable for the objective of networks. |
String |
PROTECTION_TYPE
String which is read on DiGraph of cable for the protection type. |
| Constructor Summary | |
WDMNetwork(DiGraph cables,
DiGraph requests)
Constructs a WDM network. |
|
WDMNetwork(DiGraph cables,
DiGraph requests,
String fileOut)
Constructs a WDM network. |
|
WDMNetwork(String fileIn)
Constructor, initialize the network and the flow system with a file. |
|
WDMNetwork(String fileIn,
String fileOut)
Constructor, initialize the network and the flow system with a file. |
|
| Method Summary | |
void |
addMainPath(Arc r,
DiPath p)
Adds a main path for request r. |
void |
addProtectionPath(Arc j,
Arc r,
DiPath p)
Adds a protection path for request r and failure j. |
void |
clearMainPath(Arc r)
Clear the main path of request r. |
void |
clearProtectionPath(Arc j,
Arc r)
Clear the protection path of failure j and request r. |
DiGraph |
getCableGraph()
Returns the cable graph of the network, as a DiGraph. |
DiPathSet |
getMainPaths(Arc r)
Returns the set of main paths for a request. |
DiPathSet |
getProtectionPaths(Arc j,
Arc r)
Returns the set of protection paths for a request and a failure. |
DiGraph |
getRequestGraph()
Returns the request graph of the network, as a DiGraph. |
void |
removeMainPath(Arc r,
DiPath p)
Remove the path which belongs to the main path of the request r. |
void |
removeProtectionPath(Arc j,
Arc r,
DiPath p)
Remove the path which belongs to the protection path of the failure j and the request r. |
void |
setMainPath(Arc r,
DiPath p)
Setting a main path for request r. |
void |
setMainPath(Arc r,
DiPathSet set)
Setting a main path for request r. |
void |
setProtectionPath(Arc j,
Arc r,
DiPath p)
Setting a protection path for failure j and request r. |
void |
setProtectionPath(Arc j,
Arc r,
DiPathSet set)
Setting a protection path for failure j and request r. |
void |
setRequestArcSet(ArcSet d)
Set the AcrSet of Request Graph. |
void |
writeSolution()
Write the solution and the statistics of problem in the MGL File, for that use a constructor with a String fileOut. |
| Methods inherited from class mascoptDev.networks.Network |
addGraph, getGraph |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public String PROTECTION_TYPE
public String OBJECTIVE_TYPE
public String mglFile
| Constructor Detail |
public WDMNetwork(String fileIn,
String fileOut)
fileIn - the Stringrepresenting data in a file.mgl,
features of this one are the graph of cables is called "graph
Cable" and the graph of requests is called "graph Request".fileOut - the Stringrepresenting the file.mgl where
are writing the solutions and the statistics of problempublic WDMNetwork(String fileIn)
fileIn - the Stringrepresenting data in a file.mgl,
features of this one are the graph of cables is called "graph
Cable" and the graph of requests is called "graph Request".
public WDMNetwork(DiGraph cables,
DiGraph requests,
String fileOut)
cables - the DiGraphrepresenting the
cables of the networkrequests - the DiGraphrepresenting the
requests on the network.fileOut - the Stringrepresenting the file where is
save and write the solution of problem.
public WDMNetwork(DiGraph cables,
DiGraph requests)
cables - the DiGraphrepresenting the
cables of the networkrequests - the DiGraphrepresenting the
requests on the network.| Method Detail |
public DiGraph getRequestGraph()
DiGraph.
public DiGraph getCableGraph()
DiGraph.
public void setRequestArcSet(ArcSet d)
d - is the ArcSetto set.public DiPathSet getMainPaths(Arc r)
r - the Arcrepresenting the
request.
public DiPathSet getProtectionPaths(Arc j,
Arc r)
r - the Arcrepresenting the
request.j - the Arcrepresenting the
failure.
public void addMainPath(Arc r,
DiPath p)
r - the Arcrepresenting the
request.p - the DiPathrepresenting the
path to add.
public void addProtectionPath(Arc j,
Arc r,
DiPath p)
r - the Arcrepresenting the
request.j - the Arcrepresenting the
failure.p - the DiPathrepresenting the
path to add.
public void setMainPath(Arc r,
DiPath p)
r - the Arcrepresenting the
request.p - the DiPathrepresenting the
path to set.
public void setProtectionPath(Arc j,
Arc r,
DiPath p)
r - the Arcrepresenting the
request.j - the Arcrepresenting the
failure.p - the DiPathrepresenting the
path to set.
public void setMainPath(Arc r,
DiPathSet set)
r - the Arcrepresenting the
request.set - the DiPathSetrepresenting
the set of path to set.
public void setProtectionPath(Arc j,
Arc r,
DiPathSet set)
r - the Arcrepresenting the
request.j - the Arcrepresenting the
failure.set - the DiPathrepresenting the
path to set.
public void removeMainPath(Arc r,
DiPath p)
r - the Arcrepresenting the
request.p - the DiPathrepresenting the
path to remove.
public void removeProtectionPath(Arc j,
Arc r,
DiPath p)
r - the Arcrepresenting the
request.j - the Arcrepresenting the
failure.p - the DiPathrepresenting the
path to remove.public void clearMainPath(Arc r)
r - the Arcrepresenting the
request.
public void clearProtectionPath(Arc j,
Arc r)
r - the Arcrepresenting the
request.j - the Arcrepresenting the
failure.public void writeSolution()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||