SMILA 1.0 API documentation

org.eclipse.smila.management.performance.formula
Class RateFormula

java.lang.Object
  extended by org.eclipse.smila.management.performance.formula.RateFormula
All Implemented Interfaces:
PerformanceCounterFormula

public class RateFormula
extends java.lang.Object
implements PerformanceCounterFormula

The Class RateFormula.


Field Summary
 
Fields inherited from interface org.eclipse.smila.management.performance.PerformanceCounterFormula
AVERAGE_FORMULA, AVERAGE_TIMER_FORMULA, RATE_FORMULA, SIMPLE_COUNT_FORMULA
 
Constructor Summary
RateFormula()
           
 
Method Summary
 double calculateValue(PerformanceSample sample1, PerformanceSample sample2)
          Calculates next counter value by two samples.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RateFormula

public RateFormula()
Method Detail

calculateValue

public double calculateValue(PerformanceSample sample1,
                             PerformanceSample sample2)
Calculates next counter value by two samples.

Specified by:
calculateValue in interface PerformanceCounterFormula
Parameters:
sample1 - sample1
sample2 - sample2
Returns:
next counter value

SMILA 1.0 API documentation