org.android.activityminer.logic.features.calculators
Class AbstractFFTObservationBasedCalculator<T extends Enum<T> & Dimensions,U>

Package class diagram package AbstractFFTObservationBasedCalculator
java.lang.Object
  extended by org.android.activityminer.logic.features.calculators.AbstractCalculator<T,U>
      extended by org.android.activityminer.logic.features.calculators.AbstractCompositeCalculator<T,U>
          extended by org.android.activityminer.logic.features.calculators.AbstractFFTObservationBasedCalculator<T,U>
Type Parameters:
T - the enumeration type for the dimensions
U - the value type
All Implemented Interfaces:
EventObserver<FFTCalculatorEvent>, Calculator<U>, CompositeCalculator<U>, FFTObservationBasedCalulator<T>
Direct Known Subclasses:
FFTEnergyCalculator, FFTPeakCalculator

public abstract class AbstractFFTObservationBasedCalculator<T extends Enum<T> & Dimensions,U>
extends AbstractCompositeCalculator<T,U>
implements FFTObservationBasedCalulator<T>

Base class for fft observation based calculators.


Field Summary
private  FFTCalculator<T> fftCalculator
          The observed FFT calculator
 
Fields inherited from class org.android.activityminer.logic.features.calculators.AbstractCalculator
dimension, value
 
Constructor Summary
AbstractFFTObservationBasedCalculator(FFTCalculator<T> fftCalculator)
          Constructor
 
Method Summary
 U getCompositeValue()
          Does calculate the composite value.
 FFTCalculator<T> getFFTCalculator()
          Getter for the FFT calculator.
protected  int getFFTComponentCount()
          Getter for the FFT component count
 
Methods inherited from class org.android.activityminer.logic.features.calculators.AbstractCompositeCalculator
getValue, reset
 
Methods inherited from class org.android.activityminer.logic.features.calculators.AbstractCalculator
getDimension
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.unikassel.android.sdcframework.util.facade.EventObserver
onEvent
 
Methods inherited from interface org.android.activityminer.logic.features.calculators.Calculator
getInitialValue
 

Field Detail

fftCalculator

private final FFTCalculator<T extends Enum<T> & Dimensions> fftCalculator
The observed FFT calculator

Constructor Detail

AbstractFFTObservationBasedCalculator

public AbstractFFTObservationBasedCalculator(FFTCalculator<T> fftCalculator)
Constructor

Parameters:
fftCalculator - the observed FFT calcualtor
Method Detail

getCompositeValue

public U getCompositeValue()
Description copied from interface: CompositeCalculator
Does calculate the composite value.

Specified by:
getCompositeValue in interface CompositeCalculator<U>
Returns:
the composite value

getFFTComponentCount

protected final int getFFTComponentCount()
Getter for the FFT component count

Returns:
the FFT component count

getFFTCalculator

public final FFTCalculator<T> getFFTCalculator()
Getter for the FFT calculator.

Returns:
the FFT calculator.