|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbe.ac.ulg.montefiore.run.totem.trafficMatrix.model.impl.AbstractLinkLoadComputer
be.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
| Field Summary |
|---|
| Fields inherited from class be.ac.ulg.montefiore.run.totem.trafficMatrix.model.impl.AbstractLinkLoadComputer |
|---|
changeListener, domain |
| Constructor Summary | |
|---|---|
MultiCommodityFlow(Domain domain,
TrafficMatrix tm)
|
|
MultiCommodityFlow(Domain domain,
TrafficMatrix tm,
java.lang.String dataFile,
java.lang.String resultFile)
Specify a data file and a result file |
|
| Method Summary | |
|---|---|
java.lang.String |
createMCFMinMaxUtilDataFile(Domain domain,
TrafficMatrix tm)
Create the data file |
LoadData |
detachData()
Returns the data used by the link load computer and do not use it internally any more. |
boolean |
equals(java.lang.Object o)
returns true if the LinkLoadComputer uses the same parameters as the object o. |
LoadData |
getData()
Returns a view of the data. |
java.lang.String |
getShortName()
Return a string representing the parameters in short. |
java.util.List<TrafficMatrix> |
getTrafficMatrices()
TODO: maybe change this to a set Returns the traffic matrix. |
int |
hashCode()
|
void |
recompute()
Recomputes the load data. |
java.lang.String |
toString()
|
| Methods inherited from class be.ac.ulg.montefiore.run.totem.trafficMatrix.model.impl.AbstractLinkLoadComputer |
|---|
addListener, dataChanged, destroy, getDomain, invalidate, isUpToDate, removeListener, setUptoDate, startListening, stopListening, update |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MultiCommodityFlow(Domain domain,
TrafficMatrix tm)
throws java.io.IOException
java.io.IOException
public MultiCommodityFlow(Domain domain,
TrafficMatrix tm,
java.lang.String dataFile,
java.lang.String resultFile)
throws java.io.IOException
dataFile - resultFile -
java.io.IOException| Method Detail |
|---|
public java.lang.String createMCFMinMaxUtilDataFile(Domain domain,
TrafficMatrix tm)
throws java.io.IOException,
NodeNotFoundException,
LinkNotFoundException
domain - tm -
java.io.IOException
NodeNotFoundException
LinkNotFoundExceptionpublic void recompute()
LinkLoadComputer
public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.List<TrafficMatrix> getTrafficMatrices()
LinkLoadComputer
public java.lang.String getShortName()
LinkLoadComputer
public boolean equals(java.lang.Object o)
LinkLoadComputer
equals in interface LinkLoadComputerequals in class java.lang.Objectpublic int hashCode()
hashCode in interface LinkLoadComputerhashCode in class java.lang.Objectpublic LoadData getData()
LinkLoadComputer
public LoadData detachData()
LinkLoadComputerLinkLoadComputer.recompute().
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||