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

All Superinterfaces:
LinkLoadComputer
All Known Implementing Classes:
AbstractLinkLoadStrategy, BasicIGPShortcutStrategy, IGPShortcutStrategy, OverlayStrategy, SPFLinkLoadStrategy

public interface LinkLoadStrategy
extends LinkLoadComputer

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)
          returns true if the LinkLoadComputer uses the same parameters as the object o.
 SPF getSPFAlgo()
          Get the SPF (Shortest Path First algorithm) property.
 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 the traffic matrix to use with computation
 java.lang.String toString()
           
 
Methods inherited from interface be.ac.ulg.montefiore.run.totem.trafficMatrix.model.LinkLoadComputer
addListener, destroy, detachData, getData, getDomain, getShortName, getTrafficMatrices, invalidate, isUpToDate, recompute, removeListener, startListening, stopListening, update
 

Method Detail

setTm

void setTm(TrafficMatrix tm)
Sets the traffic matrix to use with computation

Parameters:
tm -

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

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

equals

boolean equals(java.lang.Object o)
Description copied from interface: LinkLoadComputer
returns true if the LinkLoadComputer uses the same parameters as the object o. (the computed data at a given moment are equivalent)

Specified by:
equals in interface LinkLoadComputer
Overrides:
equals in class java.lang.Object

hashCode

int hashCode()
Specified by:
hashCode in interface LinkLoadComputer
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.