org.ow2.clif.analyze.lib.graph
Class StatisticDataImpl

java.lang.Object
  extended by org.ow2.clif.analyze.lib.graph.StatisticDataImpl
All Implemented Interfaces:
org.objectweb.fractal.api.control.BindingController, StatisticDataControl

public class StatisticDataImpl
extends java.lang.Object
implements org.objectweb.fractal.api.control.BindingController, StatisticDataControl

Author:
Olivier Liu

Field Summary
 
Fields inherited from interface org.ow2.clif.analyze.api.graph.virtualdata.StatisticDataControl
STATISTIC_DATA_CONTROL
 
Constructor Summary
StatisticDataImpl()
          Instantiates a new chart engine impl.
StatisticDataImpl(java.lang.String testName, java.lang.String bladeId, java.lang.String eventType, java.lang.String field, StatOnLongs stolDate, StatOnLongs stol, java.util.List<FieldFilterAndOp> ffo, java.lang.String logicalOp, java.lang.String bladeIdAlias, int datasetType, int timeIntervalStart, int timeIntervalEnd)
           
 
Method Summary
 void bindFc(java.lang.String clientItfName, java.lang.Object serverItf)
           
 java.util.Map<java.lang.Integer,java.lang.Integer> frequency(double[] values)
          Get frequencies in a map that contains value for key and frequency for number of occurencies
 java.lang.String getBladeId()
           
 java.lang.String getBladeIdAlias()
           
 int getDatasetType()
           
 java.lang.String getEventType()
           
 java.util.List<FieldFilterAndOp> getFfo()
           
 java.lang.String getField()
           
 StatisticDataImpl getInstance()
          Gets the single instance of FilterDataImpl.
 java.lang.String getLogicalOp()
           
 double getMaximum()
          Get maximum
 double getMean()
          Get mean
 double getMedian()
          Get median
 double getMinimum()
          Get minimum
 java.lang.Object[][] getMovingMaximum(int timeWindow, int step)
          Get moving maximum according to time window and the step given
 java.lang.Object[][] getMovingMeans(int timeWindow, int step)
          Get moving mean according to time window and the step given
 java.lang.Object[][] getMovingMinimum(int timeWindow, int step)
          Get moving minimum according to time window and the step given
 java.lang.Object[][] getMovingStandardDeviations(int timeWindow, int step)
          Get moving standard deviation according to time window and the step given
 java.lang.Object[][] getMovingThroughput(int timeWindow, int step)
          Get moving throughput according to time window and the step given
 double getNumberOfValues()
          Number of values
 double getStdDvt()
          Get standard deviation
 StatOnLongs getStol()
           
 StatOnLongs getStolDate()
           
 int getStolSize()
           
 java.lang.String getTestName()
           
 double getThroughput()
          Get throughput
 int gettimeIntervalEnd()
           
 int gettimeIntervalStart()
           
 java.lang.String[] listFc()
           
 java.lang.Object lookupFc(java.lang.String clientItfName)
           
 double[] quantiles(int n, double[] values)
          Get quantiles
 double[] rawDataFrequency(LongStatistics ls, int n)
           
 void setMaximum()
          Set maximum
 void setMean()
          Set mean
 void setMedian()
          Set median
 void setMinimum()
          Set minimum
 void setStdDvt()
          Set standard deviation
 void setStol(StatOnLongs stol)
           
 void setStolDate(StatOnLongs stolDate)
           
 void settimeIntervalEnd(int timeIntervalEnd)
           
 void settimeIntervalStart(int timeIntervalStart)
           
 void unbindFc(java.lang.String clientItfName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatisticDataImpl

public StatisticDataImpl()
Instantiates a new chart engine impl.


StatisticDataImpl

public StatisticDataImpl(java.lang.String testName,
                         java.lang.String bladeId,
                         java.lang.String eventType,
                         java.lang.String field,
                         StatOnLongs stolDate,
                         StatOnLongs stol,
                         java.util.List<FieldFilterAndOp> ffo,
                         java.lang.String logicalOp,
                         java.lang.String bladeIdAlias,
                         int datasetType,
                         int timeIntervalStart,
                         int timeIntervalEnd)
Method Detail

getInstance

public StatisticDataImpl getInstance()
Gets the single instance of FilterDataImpl.

Returns:
single instance of FilterDataImpl

bindFc

public void bindFc(java.lang.String clientItfName,
                   java.lang.Object serverItf)
            throws org.objectweb.fractal.api.NoSuchInterfaceException,
                   org.objectweb.fractal.api.control.IllegalBindingException,
                   org.objectweb.fractal.api.control.IllegalLifeCycleException
Specified by:
bindFc in interface org.objectweb.fractal.api.control.BindingController
Throws:
org.objectweb.fractal.api.NoSuchInterfaceException
org.objectweb.fractal.api.control.IllegalBindingException
org.objectweb.fractal.api.control.IllegalLifeCycleException

listFc

public java.lang.String[] listFc()
Specified by:
listFc in interface org.objectweb.fractal.api.control.BindingController

lookupFc

public java.lang.Object lookupFc(java.lang.String clientItfName)
                          throws org.objectweb.fractal.api.NoSuchInterfaceException
Specified by:
lookupFc in interface org.objectweb.fractal.api.control.BindingController
Throws:
org.objectweb.fractal.api.NoSuchInterfaceException

unbindFc

public void unbindFc(java.lang.String clientItfName)
              throws org.objectweb.fractal.api.NoSuchInterfaceException,
                     org.objectweb.fractal.api.control.IllegalBindingException,
                     org.objectweb.fractal.api.control.IllegalLifeCycleException
Specified by:
unbindFc in interface org.objectweb.fractal.api.control.BindingController
Throws:
org.objectweb.fractal.api.NoSuchInterfaceException
org.objectweb.fractal.api.control.IllegalBindingException
org.objectweb.fractal.api.control.IllegalLifeCycleException

getThroughput

public double getThroughput()
Get throughput

Returns:
throughput

getNumberOfValues

public double getNumberOfValues()
Number of values

Returns:
number of values for this

getMinimum

public double getMinimum()
Get minimum

Returns:
minimum

getMaximum

public double getMaximum()
Get maximum

Returns:
maximum

getMedian

public double getMedian()
Get median

Returns:
median

getMean

public double getMean()
Get mean

Returns:
mean

getStdDvt

public double getStdDvt()
Get standard deviation

Returns:
standard deviation

setMinimum

public void setMinimum()
Set minimum


setMaximum

public void setMaximum()
Set maximum


setMedian

public void setMedian()
Set median


setMean

public void setMean()
Set mean


setStdDvt

public void setStdDvt()
Set standard deviation


getMovingMinimum

public java.lang.Object[][] getMovingMinimum(int timeWindow,
                                             int step)
Get moving minimum according to time window and the step given

Parameters:
timeWindow -
step -
Returns:
moving minimum

getMovingMaximum

public java.lang.Object[][] getMovingMaximum(int timeWindow,
                                             int step)
Get moving maximum according to time window and the step given

Parameters:
timeWindow -
step -
Returns:
moving maximum

getMovingMeans

public java.lang.Object[][] getMovingMeans(int timeWindow,
                                           int step)
Get moving mean according to time window and the step given

Parameters:
timeWindow -
step -
Returns:
moving mean

getMovingStandardDeviations

public java.lang.Object[][] getMovingStandardDeviations(int timeWindow,
                                                        int step)
Get moving standard deviation according to time window and the step given

Returns:
moving standard deviation

getMovingThroughput

public java.lang.Object[][] getMovingThroughput(int timeWindow,
                                                int step)
Get moving throughput according to time window and the step given

Parameters:
timeWindow -
step -
Returns:
moving throughput

frequency

public java.util.Map<java.lang.Integer,java.lang.Integer> frequency(double[] values)
Get frequencies in a map that contains value for key and frequency for number of occurencies

Parameters:
values -
Returns:
frequencies for this values

rawDataFrequency

public double[] rawDataFrequency(LongStatistics ls,
                                 int n)
Parameters:
ls - LongStatistics
n - the number of slices
Returns:
value for each slice

quantiles

public double[] quantiles(int n,
                          double[] values)
Get quantiles

Parameters:
n -
values -
Returns:
array that contains the quantiles

getTestName

public java.lang.String getTestName()

getBladeId

public java.lang.String getBladeId()

getEventType

public java.lang.String getEventType()

getField

public java.lang.String getField()

getStolSize

public int getStolSize()

getStolDate

public StatOnLongs getStolDate()

setStolDate

public void setStolDate(StatOnLongs stolDate)

getStol

public StatOnLongs getStol()

setStol

public void setStol(StatOnLongs stol)

getBladeIdAlias

public java.lang.String getBladeIdAlias()

getDatasetType

public int getDatasetType()

getFfo

public java.util.List<FieldFilterAndOp> getFfo()

getLogicalOp

public java.lang.String getLogicalOp()

settimeIntervalStart

public void settimeIntervalStart(int timeIntervalStart)

gettimeIntervalStart

public int gettimeIntervalStart()

settimeIntervalEnd

public void settimeIntervalEnd(int timeIntervalEnd)

gettimeIntervalEnd

public int gettimeIntervalEnd()