be.ac.ulg.montefiore.run.totem.chart.model.collectors
Interface ChartDataCollector

All Known Implementing Classes:
LinksLoadDataCollector, LinksReservedBWDataCollector

public interface ChartDataCollector

Collect and compute some data to use with a chart.

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

Creation date: 20 d�c. 2005


Method Summary
 double[] collectData(java.util.HashMap<java.lang.String,java.lang.String> params)
          Collect the data and return it in a double vector.
 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)
          Set additional (implementation dependant) parameter of the collector.
 

Method Detail

setParameters

void setParameters(java.util.HashMap<java.lang.String,java.lang.String> params)
                   throws ChartParameterException
Set additional (implementation dependant) parameter of the collector.

Parameters:
params -
Throws:
ChartParameterException - if one of the parameters is invalid or malformed.

collectData

double[] collectData(java.util.HashMap<java.lang.String,java.lang.String> params)
                     throws ChartParameterException
Collect the data and return it in a double vector.

Parameters:
params - Parameters for computing the data to be collected
Returns:
Throws:
ChartParameterException - if one of the parameters is invalid or malformed.

getParameters

java.util.List<ParameterDescriptor> getParameters()
returns a list of parameters that can be given to the setParameters method

Returns:

getDataParameters

java.util.List<ParameterDescriptor> getDataParameters()
returns a list of parameters that can be given to the collectData method

Returns:

getDefaultSeriesName

java.lang.String getDefaultSeriesName()
Returns the default name of the next series to add to the chart

Returns:


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