|
||||||||||
| 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 LinkLoadStrategytm - public LoadData detachData()
LinkLoadComputerLinkLoadComputer.recompute().
detachData in interface LinkLoadComputerpublic HybridLoadData getData()
getData in interface LinkLoadComputerpublic boolean isECMP()
isECMP in interface LinkLoadStrategypublic void setECMP(boolean ECMP)
setECMP in interface LinkLoadStrategyECMP - true if equal-cost multi-path must be activated and false otherwisepublic SPF getSPFAlgo()
getSPFAlgo in interface LinkLoadStrategypublic void setSPFAlgo(SPF spf)
setSPFAlgo in interface LinkLoadStrategyspf - the SPF to use in the link load computationpublic java.lang.String getShortName()
LinkLoadComputer
getShortName in interface LinkLoadComputerpublic java.util.List<TrafficMatrix> getTrafficMatrices()
LinkLoadComputer
getTrafficMatrices in interface LinkLoadComputerpublic java.lang.String toString()
toString in interface LinkLoadStrategytoString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
LinkLoadComputer
equals in interface LinkLoadComputerequals in interface LinkLoadStrategyequals in class java.lang.Objectpublic int hashCode()
hashCode in interface LinkLoadComputerhashCode in interface LinkLoadStrategyhashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||