SMILA (incubation) API documentation

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

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

public class SimpleCountFormula
extends java.lang.Object
implements PerformanceCounterFormula

The Class SimpleCountFormula.


Field Summary
 
Fields inherited from interface org.eclipse.smila.management.performance.PerformanceCounterFormula
AVERAGE_FORMULA, AVERAGE_TIMER_FORMULA, RATE_FORMULA, SIMPLE_COUNT_FORMULA
 
Constructor Summary
SimpleCountFormula()
           
 
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

SimpleCountFormula

public SimpleCountFormula()
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 (incubation) API documentation