be.ac.ulg.montefiore.run.totem.chart.model.collectors
Class LinksLoadDataCollector

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.chart.model.collectors.LinksLoadDataCollector
All Implemented Interfaces:
ChartDataCollector

public class LinksLoadDataCollector
extends java.lang.Object
implements ChartDataCollector

Compute the load of the links of a domain given a traffic matrix. The domain is, by default, the default domain at instantiation time. This can be overriden by a call to setParameters. The traffic matrix used is the one given to collectData or the default one if none is provided to collectData.

Creation date: 20 d�c. 2005

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

Constructor Summary
LinksLoadDataCollector()
           
 
Method Summary
 double[] collectData(java.util.HashMap<java.lang.String,java.lang.String> params)
          return a vector of link load computed with the given trafficMatrix using a SPF strategy.
 java.util.List<ParameterDescriptor> getDataParameters()
          returns a list of parameters that can be given to the collectData method
 java.lang.String getDefaultSeriesName()
          Returns the identifier of the default link load computer as default series name
 java.util.List<ParameterDescriptor> getParameters()
          returns a list of parameters that can be given to the setParameters method
 void setParameters(java.util.HashMap<java.lang.String,java.lang.String> params)
          The parameters are - asId : specify the asId of the domain to use for data collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinksLoadDataCollector

public LinksLoadDataCollector()
Method Detail

setParameters

public void setParameters(java.util.HashMap<java.lang.String,java.lang.String> params)
                   throws ChartParameterException
The parameters are - asId : specify the asId of the domain to use for data collection. - absoluteLoad (default false) : specify if the computed load should be absolute or relative to link bandwidth.

Specified by:
setParameters in interface ChartDataCollector
Parameters:
params -
Throws:
ChartParameterException - if the given domain is not found in the InterDomainManager

collectData

public double[] collectData(java.util.HashMap<java.lang.String,java.lang.String> params)
                     throws ChartParameterException
return a vector of link load computed with the given trafficMatrix using a SPF strategy. The index of a specific link in the returned array is given by domain.getConvertor().getLinkId(linkName);

Specified by:
collectData in interface ChartDataCollector
Parameters:
params - : linkLoadComputerId (optional), id of the LinkLoadComputer object. If this parameter is set, the others are ignored and the load is taken from an existing linkLoadComputer object. tmId (optional), trafficMatrix id. The matrix must be loaded in the TraffixMatrixManager. If ommitted, the default trafficatrix is used. routingAlgo (optional), SPF routing algorihtm. The algorithm must be loaded in the repositoryManager If ommited, default CSPF is used. strategy (optional), the strategy to use. Can be IP for SPFLinkLoadStrategy or BIS for BasicIGPShortcut. If ommited, IP is used. ECMP (optional), Equal cost multi path. Can be true or false for enabled or disabled. If ommited, disabled by default.
Returns:
Throws:
ChartParameterException - if tmId is NaN or the corresponding TrafficMatrix is not loaded, or if the domain is null

getDataParameters

public java.util.List<ParameterDescriptor> getDataParameters()
Description copied from interface: ChartDataCollector
returns a list of parameters that can be given to the collectData method

Specified by:
getDataParameters in interface ChartDataCollector
Returns:

getDefaultSeriesName

public java.lang.String getDefaultSeriesName()
Returns the identifier of the default link load computer as default series name

Specified by:
getDefaultSeriesName in interface ChartDataCollector
Returns:

getParameters

public java.util.List<ParameterDescriptor> getParameters()
Description copied from interface: ChartDataCollector
returns a list of parameters that can be given to the setParameters method

Specified by:
getParameters in interface ChartDataCollector
Returns:


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