be.ac.ulg.montefiore.run.totem.trafficMatrix.model
Interface LinkLoadStrategy

All Superinterfaces:
TmLoadComputer
All Known Implementing Classes:
BasicIGPShortcutStrategy, IGPShortcutStrategy, LinkLoadStrategyAdapter, OverlayStrategy, SPFLinkLoadStrategy

public interface LinkLoadStrategy
extends TmLoadComputer

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

Author:
Fabian Skivee (skivee@run.montefiore.ulg.ac.be)

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 interface be.ac.ulg.montefiore.run.totem.trafficMatrix.model.TmLoadComputer
compute
 

Method Detail

isECMP

boolean isECMP()
Get the ECMP (Equal-Cost Multi-Path) property. By default : false

Returns:
true if equal-cost multi-path is activated and false otherwise

setECMP

void setECMP(boolean ECMP)
Set the ECMP (Equal-Cost Multi-Path) property.

Parameters:
ECMP - true if equal-cost multi-path must be activated and false otherwise

isStopOnError

boolean isStopOnError()
Get the StopOnError property. The property StopOnError is false if the computation must continue after a NoRouteToHostException or a RoutingException occurs and true otherwise. By default : true.

Returns:
false if the computation must continue after a NoRouteToHostException or a RoutingException occurs and true otherwise.

setStopOnError

void setStopOnError(boolean stopOnError)
Set the StopOnError property. The property StopOnError is false if the computation must continue after a NoRouteToHostException or a RoutingException occurs and true otherwise.

Parameters:
stopOnError - false if the computation must continue after a NoRouteToHostException or a RoutingException occurs and true otherwise

getSPFAlgo

SPF getSPFAlgo()
Get the SPF (Shortest Path First algorithm) property. The SPF is the routing algorithm used to compute the link load. By default : dijkstra SPF implemented by the class CSPF.

Returns:
the SPF

setSPFAlgo

void setSPFAlgo(SPF spf)
Set the SPF (Shortest Path First algorithm) property. The SPF is the routing algorithm used to compute the link load.

Parameters:
spf - the SPF to use in the link load computation

isReuseComputedPath

boolean isReuseComputedPath()
Get the reuseComputedPath property. This property is true if the linkLoadCompution must reuse the already computed path. This can be used to speed up the computation if the previous computed paths are already good. This must be used with care. By default : false;

Returns:
true if the linkLoadCompution must reuse the already computed path and false otherwise

setReuseComputedPath

void setReuseComputedPath(boolean reuseComputedPath)
Set the reuseComputedPath property

Parameters:
reuseComputedPath - true if the linkLoadCompution must reuse the already computed path and false otherwise

equals

boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.