|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LinkLoadStrategy
Define the behavior of a link load computation stategy. Different strategies are shortest path first, basic IGP shortcut, IGP shortcut, etc. Theses strategies of link load computation are implemented using a strategy pattern. Three properties can be used to control the computation :
Creation date: 28-Jun-2005 17:28:54
Method Summary | |
---|---|
double[] |
compute(Domain domain,
TrafficMatrix tm)
Compute the link load of the specified traffic matrix on the domain |
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. |
Method Detail |
---|
double[] compute(Domain domain, TrafficMatrix tm) throws NoRouteToHostException, RoutingException
domain
- the domaintm
- the traffic matrix to route
NoRouteToHostException
- occurs if there is no route from a source to a destination
RoutingException
- occurs if the routing algorithms encounter a errorboolean isECMP()
void setECMP(boolean ECMP)
ECMP
- true if equal-cost multi-path must be activated and false otherwiseboolean isStopOnError()
void setStopOnError(boolean stopOnError)
stopOnError
- false if the computation must continue after a NoRouteToHostException or a RoutingException occurs and true otherwiseSPF getSPFAlgo()
void setSPFAlgo(SPF spf)
spf
- the SPF to use in the link load computationboolean isReuseComputedPath()
void setReuseComputedPath(boolean reuseComputedPath)
reuseComputedPath
- true if the linkLoadCompution must reuse the already computed path and false otherwiseboolean equals(java.lang.Object o)
equals
in class java.lang.Object
int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |