be.ac.ulg.montefiore.run.totem.trafficMatrix.model.impl
Class SPFLinkLoadStrategy
java.lang.Object
be.ac.ulg.montefiore.run.totem.trafficMatrix.model.impl.AbstractLinkLoadComputer
be.ac.ulg.montefiore.run.totem.trafficMatrix.model.impl.AbstractLinkLoadStrategy
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)
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.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 |
SPFLinkLoadStrategy
public SPFLinkLoadStrategy(Domain domain,
TrafficMatrix tm)
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.