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

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

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

Implementation of a maximum feature.


Field Summary
private  MaximumCalculator<T> calculator
          The calculator providing the maximum.
 
Fields inherited from class org.android.activityminer.logic.features.AbstractFeature
featureType
 
Constructor Summary
MaximumFeature(FeatureTypes featureType, MaximumCalculator<T> calculator)
          Constructor
 
Method Summary
 MaximumCalculator<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 MaximumCalculator<T extends Enum<T> & Dimensions> calculator
The calculator providing the maximum.

Constructor Detail

MaximumFeature

public MaximumFeature(FeatureTypes featureType,
                      MaximumCalculator<T> calculator)
Constructor

Parameters:
featureType - the feature type
calculator - the calculator providing the maximum.
Method Detail

getFeatureValue

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

Returns:
the feature value

getCalculator

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

Returns:
the calculator