|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object be.ac.ulg.montefiore.run.totem.trafficMatrix.model.impl.LinkLoadStrategyAdapter
public abstract class LinkLoadStrategyAdapter
This adapter can be used by link load strategy implementations to avoid property methods redefinition.
Creation date: 28-Jun-2005 18:00:25
Field Summary | |
---|---|
protected boolean |
ECMP
|
protected boolean |
reuseComputedPath
|
protected SPF |
spf
|
protected boolean |
stopOnError
|
Constructor Summary | |
---|---|
protected |
LinkLoadStrategyAdapter()
Set the default property value : ECMP = false, stopOnError = true, spf = CSPF. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
SPF |
getSPFAlgo()
Get the SPF (Shortest Path First algorithm) property. |
int |
hashCode()
|
boolean |
isECMP()
Get the ECMP (Equal-Cost Multi-Path) property. |
boolean |
isReuseComputedPath()
Get the reuseComputedPath property. |
boolean |
isStopOnError()
Get the StopOnError property. |
void |
setECMP(boolean ECMP)
Set the ECMP (Equal-Cost Multi-Path) property. |
void |
setReuseComputedPath(boolean reuseComputedPath)
Set the reuseComputedPath property |
void |
setSPFAlgo(SPF spf)
Set the SPF (Shortest Path First algorithm) property. |
void |
setStopOnError(boolean stopOnError)
Set the StopOnError property. |
java.lang.String |
toString()
|
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.TmLoadComputer |
---|
compute |
Field Detail |
---|
protected boolean ECMP
protected boolean stopOnError
protected SPF spf
protected boolean reuseComputedPath
Constructor Detail |
---|
protected LinkLoadStrategyAdapter()
Method Detail |
---|
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 boolean isStopOnError()
isStopOnError
in interface LinkLoadStrategy
public void setStopOnError(boolean stopOnError)
setStopOnError
in interface LinkLoadStrategy
stopOnError
- false if the computation must continue after a NoRouteToHostException or a RoutingException occurs and true 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 boolean isReuseComputedPath()
isReuseComputedPath
in interface LinkLoadStrategy
public void setReuseComputedPath(boolean reuseComputedPath)
setReuseComputedPath
in interface LinkLoadStrategy
reuseComputedPath
- true if the linkLoadCompution must reuse the already computed path and false otherwisepublic boolean equals(java.lang.Object o)
equals
in interface LinkLoadStrategy
equals
in class java.lang.Object
public int hashCode()
hashCode
in interface LinkLoadStrategy
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in interface LinkLoadStrategy
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |