|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--mascoptDev.networks.Network | +--mascoptCplex.networks.NetworkCplexFlow
The NetworkCplexFlow class ... a multi-flow with capacity. Note that allPathSolution represent the paths solution for all requests of problem.
Field Summary | |
HashMap |
allPathSolution
HashMap representing paths solution for all requests of problem. |
static String |
CAPACITY_STRING_VALUE
String which is read on edges for the capacity. |
ilog.cplex.IloCplex |
cplex
IloCplex which is the Cplex object to solve the problem. |
AddFlowRouting |
flow
AddFlowRouting which is the model flow to Cplex. |
boolean |
integerComputation
Choice of the type of variables. |
ilog.cplex.IloCplex.Status |
status
Status of the problem. |
Constructor Summary | |
NetworkCplexFlow(DiGraph cable,
DiGraph request,
boolean integerCompute)
Constructor for the NetworkCplexObject object. |
Method Summary | |
void |
addPathSolution(Arc r,
DiPath p)
Adds a path for request r. |
void |
clearPathSolution(Arc r)
Clear the path solution of request r. |
DiGraph |
getCableGraph()
Returns the cable graph of the network, as a DiGraph . |
double |
getCapacity(Arc arc)
Returns the capacity of arc, or null if the network doesn't contain this arc. |
DiPathSet |
getPathSolution(Arc r)
Returns solution path of the request, or null if there isn't solution for this request. |
DiGraph |
getRequestGraph()
Returns the request graph of the network, as a DiGraph . |
void |
initFlow()
Initialize the flow of network. |
void |
putCapacity(Arc arc,
double capacity)
Associates the specified capacity with the specified arc in this network. |
void |
removePathSolution(Arc r,
DiPath p)
Remove the path which belongs to the path solution of the request r. |
void |
setPathSolution(Arc request,
DiPath path)
Associates the specified solution path with the specified request in this network. |
void |
setPathSolution(Arc request,
DiPathSet set)
Associates the specified solution path with the specified request in this network. |
void |
setRequestArcSet(ArcSet d)
Set the ArcSet of Request Graph. |
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 AddFlowRouting flow
public ilog.cplex.IloCplex cplex
public static String CAPACITY_STRING_VALUE
public HashMap allPathSolution
public boolean integerComputation
public ilog.cplex.IloCplex.Status status
Constructor Detail |
public NetworkCplexFlow(DiGraph cable, DiGraph request, boolean integerCompute)
cable
- the DiGraph
representing the
cables of the network.request
- the DiGraph
representing
requests on the network.Method Detail |
public DiGraph getRequestGraph()
DiGraph
.
public DiGraph getCableGraph()
DiGraph
.
public void setRequestArcSet(ArcSet d)
d
- is the ArcSet
to set.public void initFlow()
public void putCapacity(Arc arc, double capacity)
arc
- the Arc
representing an arc of
the cables.capacity
- representing the capacity of this arc.public double getCapacity(Arc arc)
arc
- the Arc
representing an arc of
the cables.
public DiPathSet getPathSolution(Arc r)
public void setPathSolution(Arc request, DiPathSet set)
request
- the Arc
representing an request
of the problem.set
- the DiPathSet
representing
the solution path of this request.public void setPathSolution(Arc request, DiPath path)
request
- the Arc
representing an request
of the problem.public void addPathSolution(Arc r, DiPath p)
r
- the Arc
representing the
request.p
- the DiPath
representing the
path to add.public void removePathSolution(Arc r, DiPath p)
r
- the Arc
representing the
request.p
- the DiPath
representing the
path to remove.public void clearPathSolution(Arc r)
r
- the Arc
representing the
request.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |