|
||||||||||
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.AbstractLinkLoadStrategy
public abstract class AbstractLinkLoadStrategy
This adapter can be used by link load strategy implementations to avoid
property methods redefinition. It uses HybridLoadData
.
Creation date: 28-Jun-2005 18:00:25
Field Summary | |
---|---|
protected SettableHybridLoadData |
data
|
protected boolean |
ECMP
|
protected SPF |
spf
|
protected TrafficMatrix |
tm
|
Fields inherited from class be.ac.ulg.montefiore.run.totem.trafficMatrix.model.impl.AbstractLinkLoadComputer |
---|
changeListener, domain |
Constructor Summary | |
---|---|
protected |
AbstractLinkLoadStrategy(Domain domain,
TrafficMatrix tm)
Creates a linkLoadStrategy object to compute load on the given domain from the given traffic matrix. |
protected |
AbstractLinkLoadStrategy(Domain domain,
TrafficMatrix tm,
LinkLoadComputerInvalidator changeListener)
Creates a linkLoadStrategy object to compute load on the given domain from the given traffic matrix. |
Method Summary | |
---|---|
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. |
HybridLoadData |
getData()
Returns hybrid data |
java.lang.String |
getShortName()
Return a string representing the parameters in short. |
SPF |
getSPFAlgo()
Get the SPF (Shortest Path First algorithm) property. |
java.util.List<TrafficMatrix> |
getTrafficMatrices()
TODO: maybe change this to a set Returns the traffic matrix. |
int |
hashCode()
|
boolean |
isECMP()
Get the ECMP (Equal-Cost Multi-Path) property. |
void |
setECMP(boolean ECMP)
Set the ECMP (Equal-Cost Multi-Path) property. |
void |
setSPFAlgo(SPF spf)
Set the SPF (Shortest Path First algorithm) property. |
void |
setTm(TrafficMatrix tm)
Sets a new traffic matrix to calculate load. |
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 |
Methods inherited from interface be.ac.ulg.montefiore.run.totem.trafficMatrix.model.LinkLoadComputer |
---|
addListener, destroy, getDomain, invalidate, isUpToDate, recompute, removeListener, startListening, stopListening, update |
Field Detail |
---|
protected boolean ECMP
protected SPF spf
protected TrafficMatrix tm
protected SettableHybridLoadData data
Constructor Detail |
---|
protected AbstractLinkLoadStrategy(Domain domain, TrafficMatrix tm)
LinkLoadComputerInvalidator
(LinkLoadStrategyInvalidator
).
domain
- tm
- protected AbstractLinkLoadStrategy(Domain domain, TrafficMatrix tm, LinkLoadComputerInvalidator changeListener)
LinkLoadComputerInvalidator
as invalidator.
domain
- tm
- changeListener
- Method Detail |
---|
public void setTm(TrafficMatrix tm)
setTm
in interface LinkLoadStrategy
tm
- public LoadData detachData()
LinkLoadComputer
LinkLoadComputer.recompute()
.
detachData
in interface LinkLoadComputer
public HybridLoadData getData()
getData
in interface LinkLoadComputer
public boolean isECMP()
isECMP
in interface LinkLoadStrategy
public void setECMP(boolean ECMP)
setECMP
in interface LinkLoadStrategy
ECMP
- true if equal-cost multi-path must be activated and false otherwisepublic SPF getSPFAlgo()
getSPFAlgo
in interface LinkLoadStrategy
public void setSPFAlgo(SPF spf)
setSPFAlgo
in interface LinkLoadStrategy
spf
- the SPF to use in the link load computationpublic java.lang.String getShortName()
LinkLoadComputer
getShortName
in interface LinkLoadComputer
public java.util.List<TrafficMatrix> getTrafficMatrices()
LinkLoadComputer
getTrafficMatrices
in interface LinkLoadComputer
public java.lang.String toString()
toString
in interface LinkLoadStrategy
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
LinkLoadComputer
equals
in interface LinkLoadComputer
equals
in interface LinkLoadStrategy
equals
in class java.lang.Object
public int hashCode()
hashCode
in interface LinkLoadComputer
hashCode
in interface LinkLoadStrategy
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |