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

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

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

Implementation of a minimum feature.


Field Summary
private  MinimumCalculator<T> calculator
          The calculator providing the minimum.
 
Fields inherited from class org.android.activityminer.logic.features.AbstractFeature
featureType
 
Constructor Summary
MinimumFeature(FeatureTypes featureType, MinimumCalculator<T> calculator)
          Constructor
 
Method Summary
 MinimumCalculator<T> getCalculator()
          Getter for the calculator
 Double getFeatureValue()
          Getter for the feature value
 
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

calculator

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

Constructor Detail

MinimumFeature

public MinimumFeature(FeatureTypes featureType,
                      MinimumCalculator<T> calculator)
Constructor

Parameters:
featureType - the feature type
calculator - 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

getCalculator

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

Returns:
the calculator