org.android.activityminer.logic.features
Class RangeFeature<T extends Enum<T> & Dimensions>

Package class diagram package RangeFeature
java.lang.Object
  extended by org.android.activityminer.logic.features.AbstractFeature
      extended by org.android.activityminer.logic.features.RangeFeature<T>
Type Parameters:
T - the enumeration type for the dimensions
All Implemented Interfaces:
Feature

public final class RangeFeature<T extends Enum<T> & Dimensions>
extends AbstractFeature

Implementation of a range feature (difference between maximum and minimum ).


Field Summary
private  MaximumCalculator<T> maxCalculator
          The calculator providing the maximum.
private  MinimumCalculator<T> minCalculator
          The calculator providing the minimum.
 
Fields inherited from class org.android.activityminer.logic.features.AbstractFeature
featureType
 
Constructor Summary
RangeFeature(FeatureTypes featureType, MaximumCalculator<T> maxCalculator, MinimumCalculator<T> minCalculator)
          Constructor
 
Method Summary
 Double getFeatureValue()
          Getter for the feature value
 MaximumCalculator<T> getMaxCalculator()
          Getter for the maximum calculator
 MinimumCalculator<T> getMinCalculator()
          Getter for the minimum calculator
 
Methods inherited from class org.android.activityminer.logic.features.AbstractFeature
getFeatureType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

maxCalculator

private final MaximumCalculator<T extends Enum<T> & Dimensions> maxCalculator
The calculator providing the maximum.


minCalculator

private final MinimumCalculator<T extends Enum<T> & Dimensions> minCalculator
The calculator providing the minimum.

Constructor Detail

RangeFeature

public RangeFeature(FeatureTypes featureType,
                    MaximumCalculator<T> maxCalculator,
                    MinimumCalculator<T> minCalculator)
Constructor

Parameters:
featureType - the feature type
maxCalculator - the calculator providing the maximum
minCalculator - the calculator providing the minimum
Method Detail

getFeatureValue

public final Double getFeatureValue()
Description copied from interface: Feature
Getter for the feature value

Returns:
the feature value

getMaxCalculator

public final MaximumCalculator<T> getMaxCalculator()
Getter for the maximum calculator

Returns:
the maximum calculator

getMinCalculator

public final MinimumCalculator<T> getMinCalculator()
Getter for the minimum calculator

Returns:
the minimum calculator