be.ac.ulg.montefiore.run.totem.repository.optDivideTM
Class OptDivideTMLinkLoadStrategy

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.trafficMatrix.model.impl.LinkLoadStrategyAdapter
      extended by be.ac.ulg.montefiore.run.totem.repository.optDivideTM.OptDivideTMLinkLoadStrategy
All Implemented Interfaces:
LinkLoadStrategy

public class OptDivideTMLinkLoadStrategy
extends LinkLoadStrategyAdapter

Creation date: 18/01/2007

Author:
Gaƫl Monfort (monfort@run.montefiore.ulg.ac.be)

Field Summary
 
Fields inherited from class be.ac.ulg.montefiore.run.totem.trafficMatrix.model.impl.LinkLoadStrategyAdapter
ECMP, reuseComputedPath, spf, stopOnError
 
Constructor Summary
OptDivideTMLinkLoadStrategy()
           
 
Method Summary
 double[] compute(Domain domain, TrafficMatrix tm)
          Compute the link load of the specified traffic matrix on the domain
 double computeOptimumApproximation()
           
 boolean equals(java.lang.Object o)
           
 void establishFullmeshes(Domain domain, TrafficMatrix tm)
           
 int hashCode()
           
 void setN(int N)
           
 void setObjectiveFunction(java.lang.String objectiveFunction)
           
 void setObjectiveFunction(TEObjectiveFunction objectiveFunction)
           
 void setSPFAlgo(SPF spf)
          Set the SPF (Shortest Path First algorithm) property.
 void setVerbose(boolean verbose)
           
 java.lang.String toString()
           
 
Methods inherited from class be.ac.ulg.montefiore.run.totem.trafficMatrix.model.impl.LinkLoadStrategyAdapter
getSPFAlgo, isECMP, isReuseComputedPath, isStopOnError, setECMP, setReuseComputedPath, setStopOnError
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OptDivideTMLinkLoadStrategy

public OptDivideTMLinkLoadStrategy()
Method Detail

setSPFAlgo

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

Specified by:
setSPFAlgo in interface LinkLoadStrategy
Overrides:
setSPFAlgo in class LinkLoadStrategyAdapter
Parameters:
spf - the SPF to use in the link load computation

compute

public double[] compute(Domain domain,
                        TrafficMatrix tm)
                 throws NoRouteToHostException,
                        RoutingException
Compute the link load of the specified traffic matrix on the domain

Parameters:
domain - the domain
tm - the traffic matrix to route
Returns:
the load of each link as an array of double
Throws:
NoRouteToHostException - occurs if there is no route from a source to a destination
RoutingException - occurs if the routing algorithms encounter a error

establishFullmeshes

public void establishFullmeshes(Domain domain,
                                TrafficMatrix tm)
                         throws NoRouteToHostException,
                                RoutingException
Throws:
NoRouteToHostException
RoutingException

computeOptimumApproximation

public double computeOptimumApproximation()

setObjectiveFunction

public void setObjectiveFunction(java.lang.String objectiveFunction)
                          throws ObjectiveFunctionException
Throws:
ObjectiveFunctionException

setObjectiveFunction

public void setObjectiveFunction(TEObjectiveFunction objectiveFunction)

setN

public void setN(int N)

setVerbose

public void setVerbose(boolean verbose)

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in interface LinkLoadStrategy
Overrides:
equals in class LinkLoadStrategyAdapter

hashCode

public int hashCode()
Specified by:
hashCode in interface LinkLoadStrategy
Overrides:
hashCode in class LinkLoadStrategyAdapter

toString

public java.lang.String toString()
Overrides:
toString in class LinkLoadStrategyAdapter


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