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

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

public class LinksReservedBWDataCollector
extends java.lang.Object
implements ChartDataCollector

Get the links reserved bandwidth of a domain.

Creation date: 1 d�c. 2005

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

Constructor Summary
LinksReservedBWDataCollector()
           
 
Method Summary
 double[] collectData(java.util.HashMap<java.lang.String,java.lang.String> params)
          return a vector of link resevrved bandwidth at the moment of the call.
 java.util.List<ParameterDescriptor> getDataParameters()
          returns a list of parameters that can be given to the collectData method
 java.lang.String getDefaultSeriesName()
          Returns the default name of the next series to add to the chart
 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

LinksReservedBWDataCollector

public LinksReservedBWDataCollector()
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 resevrved bandwidth at the moment of the call. 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 - no parameters are used.
Returns:
Throws:
ChartParameterException - is never thrown

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:

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()
Description copied from interface: ChartDataCollector
Returns the default name of the next series to add to the chart

Specified by:
getDefaultSeriesName in interface ChartDataCollector
Returns:


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