be.ac.ulg.montefiore.run.totem.trafficMatrix.model.impl
Class SPFLinkLoadStrategy

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.trafficMatrix.model.impl.AbstractLinkLoadComputer
      extended by be.ac.ulg.montefiore.run.totem.trafficMatrix.model.impl.AbstractLinkLoadStrategy
          extended by be.ac.ulg.montefiore.run.totem.trafficMatrix.model.impl.SPFLinkLoadStrategy
All Implemented Interfaces:
LinkLoadComputer, LinkLoadStrategy

public class SPFLinkLoadStrategy
extends AbstractLinkLoadStrategy

This class implements a link load computation using the SPF algorithms. Only IP load is computed as traffic is not routed on LSPs.

Creation date: 29-Jun-2005 11:49:41

Author:
Fabian Skivee (skivee@run.montefiore.ulg.ac.be), Jean Lepropre (lepropre@run.montefiore.ulg.ac.be)

Field Summary
 
Fields inherited from class be.ac.ulg.montefiore.run.totem.trafficMatrix.model.impl.AbstractLinkLoadStrategy
data, ECMP, spf, tm
 
Fields inherited from class be.ac.ulg.montefiore.run.totem.trafficMatrix.model.impl.AbstractLinkLoadComputer
changeListener, domain
 
Constructor Summary
SPFLinkLoadStrategy(Domain domain, TrafficMatrix tm)
           
 
Method Summary
static void calculateLoads(Domain domain, TrafficMatrix tm, double[] loads, java.util.List<java.util.List<Link>> links, float fraction, int src, int dst)
           
 boolean equals(java.lang.Object o)
          returns true if the LinkLoadComputer uses the same parameters as the object o.
 int hashCode()
           
 void recompute()
          Recomputes the load data.
 
Methods inherited from class be.ac.ulg.montefiore.run.totem.trafficMatrix.model.impl.AbstractLinkLoadStrategy
detachData, getData, getShortName, getSPFAlgo, getTrafficMatrices, isECMP, setECMP, setSPFAlgo, setTm, toString
 
Methods inherited from class be.ac.ulg.montefiore.run.totem.trafficMatrix.model.impl.AbstractLinkLoadComputer
addListener, dataChanged, destroy, getDomain, invalidate, isUpToDate, removeListener, setUptoDate, startListening, stopListening, update
 
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.LinkLoadComputer
addListener, destroy, getDomain, invalidate, isUpToDate, removeListener, startListening, stopListening, update
 

Constructor Detail

SPFLinkLoadStrategy

public SPFLinkLoadStrategy(Domain domain,
                           TrafficMatrix tm)
Method Detail

recompute

public void recompute()
Description copied from interface: LinkLoadComputer
Recomputes the load data.


calculateLoads

public static void calculateLoads(Domain domain,
                                  TrafficMatrix tm,
                                  double[] loads,
                                  java.util.List<java.util.List<Link>> links,
                                  float fraction,
                                  int src,
                                  int dst)
                           throws LinkNotFoundException,
                                  NodeNotFoundException
Throws:
LinkNotFoundException
NodeNotFoundException

equals

public 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
Specified by:
equals in interface LinkLoadStrategy
Overrides:
equals in class AbstractLinkLoadStrategy

hashCode

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


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