|
||||||||||
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.trafficMatrix.model.impl.PureMPLSCosLinkLoadComputer
public class PureMPLSCosLinkLoadComputer
TODO: warning or error if 2 matrices are routed for different classes. This LinkLoadComputer computes MPLS load by routing some traffic matrices, each associated with a class of service. An element (src, dst) of the traffic matrix is routed on a primary lsp if the lsp path is from src to dst and that it accepts the associated cos (bandwidth reservation is not taken into account).
Creation date: 24/01/2008
Nested Class Summary | |
---|---|
static class |
PureMPLSCosLinkLoadComputer.LOAD_BALANCING_OPTION
|
Field Summary |
---|
Fields inherited from class be.ac.ulg.montefiore.run.totem.trafficMatrix.model.impl.AbstractLinkLoadComputer |
---|
changeListener, domain |
Constructor Summary | |
---|---|
PureMPLSCosLinkLoadComputer(Domain domain)
|
Method Summary | |
---|---|
void |
addTrafficMatrix(TrafficMatrix tm,
java.lang.String cos)
Add a traffic matrix to be routed with the given class of service. |
void |
destroy()
Destroy the linkLoadComputer: remove all listeners, invalidate the data and stop listening to events. |
LoadData |
detachData()
Returns the data used by the link load computer and do not use it internally any more. |
boolean |
equals(java.lang.Object obj)
returns true if the LinkLoadComputer uses the same parameters as the object o. |
CosMPLSLoadData |
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. |
void |
recompute()
Recomputes the traffic for all given traffic matrices. |
void |
startListening()
add the change listener to the domain, and to the currently used traffic matrices |
void |
stopListening()
Remove the listener from the domain and from the currently used traffic matrices |
java.lang.String |
toString()
|
Methods inherited from class be.ac.ulg.montefiore.run.totem.trafficMatrix.model.impl.AbstractLinkLoadComputer |
---|
addListener, dataChanged, getDomain, invalidate, isUpToDate, removeListener, setUptoDate, update |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface be.ac.ulg.montefiore.run.totem.trafficMatrix.model.LinkLoadComputer |
---|
hashCode |
Constructor Detail |
---|
public PureMPLSCosLinkLoadComputer(Domain domain)
Method Detail |
---|
public void addTrafficMatrix(TrafficMatrix tm, java.lang.String cos)
tm
- cos
- public void startListening()
AbstractLinkLoadComputer
startListening
in interface LinkLoadComputer
startListening
in class AbstractLinkLoadComputer
public void stopListening()
AbstractLinkLoadComputer
stopListening
in interface LinkLoadComputer
stopListening
in class AbstractLinkLoadComputer
public void recompute()
public java.util.List<TrafficMatrix> getTrafficMatrices()
LinkLoadComputer
public java.lang.String getShortName()
LinkLoadComputer
public CosMPLSLoadData getData()
LinkLoadComputer
public LoadData detachData()
LinkLoadComputer
LinkLoadComputer.recompute()
.
public java.lang.String toString()
toString
in class java.lang.Object
public void destroy()
AbstractLinkLoadComputer
destroy
in interface LinkLoadComputer
destroy
in class AbstractLinkLoadComputer
public boolean equals(java.lang.Object obj)
LinkLoadComputer
equals
in interface LinkLoadComputer
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |