|
||||||||||
| 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.MultiCommodityFlow.MultiCommodityFlow
public class MultiCommodityFlow
This implementation of the multi commodity flow algorithm compute the link load
associated to a Domain and a TraffixMatrix. We use an AMPL model located in
/resources/modelAMPL/mcf-min-maxUtil.mod. This model minimize the utilisation of the
max utilised link. This class can only generate the data file or use the glpsol solver
to compute the link load.
Two preferences are used :
Creation date: 4-Feb-2005
| Constructor Summary | |
|---|---|
MultiCommodityFlow()
|
|
MultiCommodityFlow(java.lang.String dataFile,
java.lang.String resultFile)
Specify a data file and a result file |
|
| Method Summary | |
|---|---|
double[] |
compute(Domain domain,
TrafficMatrix tm)
Compute the link load of the specified traffic matrix on the domain |
double[] |
computeCommodityFlow(Domain domain,
TrafficMatrix tm)
Compute the link utilisation produce by the MCF using glpsol |
void |
createMCFMinMaxUtilDataFile(Domain domain,
TrafficMatrix tm)
Create the data file |
boolean |
equals(java.lang.Object o)
|
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MultiCommodityFlow()
throws java.io.IOException
java.io.IOException
public MultiCommodityFlow(java.lang.String dataFile,
java.lang.String resultFile)
throws java.io.IOException
dataFile - resultFile -
java.io.IOException| Method Detail |
|---|
public double[] computeCommodityFlow(Domain domain,
TrafficMatrix tm)
throws java.io.IOException,
LinkNotFoundException,
NodeNotFoundException
domain - tm -
java.io.IOException
LinkNotFoundException
NodeNotFoundException
public void createMCFMinMaxUtilDataFile(Domain domain,
TrafficMatrix tm)
throws java.io.IOException,
NodeNotFoundException,
LinkNotFoundException
domain - tm -
java.io.IOException
NodeNotFoundException
LinkNotFoundException
public double[] compute(Domain domain,
TrafficMatrix tm)
throws NoRouteToHostException,
RoutingException
TmLoadComputer
compute in interface TmLoadComputerdomain - the domaintm - the traffic matrix to route
NoRouteToHostException - occurs if there is no route from a source to a destination
RoutingException - occurs if the routing algorithms encounter a errorpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||