|
||||||||||
| 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.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 LinkLoadStrategypublic void setECMP(boolean ECMP)
setECMP in interface LinkLoadStrategyECMP - true if equal-cost multi-path must be activated and false otherwisepublic boolean isStopOnError()
isStopOnError in interface LinkLoadStrategypublic void setStopOnError(boolean stopOnError)
setStopOnError in interface LinkLoadStrategystopOnError - false if the computation must continue after a NoRouteToHostException or a RoutingException occurs and true otherwisepublic SPF getSPFAlgo()
getSPFAlgo in interface LinkLoadStrategypublic void setSPFAlgo(SPF spf)
setSPFAlgo in interface LinkLoadStrategyspf - the SPF to use in the link load computationpublic boolean isReuseComputedPath()
isReuseComputedPath in interface LinkLoadStrategypublic void setReuseComputedPath(boolean reuseComputedPath)
setReuseComputedPath in interface LinkLoadStrategyreuseComputedPath - true if the linkLoadCompution must reuse the already computed path and false otherwisepublic boolean equals(java.lang.Object o)
equals in interface LinkLoadStrategyequals in class java.lang.Objectpublic int hashCode()
hashCode in interface LinkLoadStrategyhashCode in class java.lang.Objectpublic java.lang.String toString()
toString in interface LinkLoadStrategytoString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||