org.android.activityminer.logic.features
Class FeatureFactoryForAccSensorObservations

Package class diagram package FeatureFactoryForAccSensorObservations
java.lang.Object
  extended by org.android.activityminer.logic.features.AbstractFeatureFactory<AccSensorObservationDimensions>
      extended by org.android.activityminer.logic.features.FeatureFactoryForAccSensorObservations

public final class FeatureFactoryForAccSensorObservations
extends AbstractFeatureFactory<AccSensorObservationDimensions>

Feature factory implementation for accelerometer sensor observations


Field Summary
private static FeatureFactoryForAccSensorObservations instance
          The singleton
 
Constructor Summary
private FeatureFactoryForAccSensorObservations(Context context)
          Constructor
 
Method Summary
 AccSensorObservationDimensions getDimensionForId(int id)
          Getter for the dimension type of an unique dimension identifier
static AbstractFeatureFactory<AccSensorObservationDimensions> getInstance(Context context)
          Getter for the global singleton instance
protected  boolean isValid(FeatureTypes featureType)
          Test method if a feature type is valid for the known dimensions
 
Methods inherited from class org.android.activityminer.logic.features.AbstractFeatureFactory
create, newPreparationCalculator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

private static FeatureFactoryForAccSensorObservations instance
The singleton

Constructor Detail

FeatureFactoryForAccSensorObservations

private FeatureFactoryForAccSensorObservations(Context context)
Constructor

Parameters:
context - the context
Method Detail

getInstance

public static final AbstractFeatureFactory<AccSensorObservationDimensions> getInstance(Context context)
Getter for the global singleton instance

Parameters:
context - the context
Returns:
the global singleton instance

isValid

protected final boolean isValid(FeatureTypes featureType)
Description copied from class: AbstractFeatureFactory
Test method if a feature type is valid for the known dimensions

Overrides:
isValid in class AbstractFeatureFactory<AccSensorObservationDimensions>
Parameters:
featureType - the feature type
Returns:
true if feature type is valid for the known dimensions, false otherwise

getDimensionForId

public final AccSensorObservationDimensions getDimensionForId(int id)
Description copied from class: AbstractFeatureFactory
Getter for the dimension type of an unique dimension identifier

Specified by:
getDimensionForId in class AbstractFeatureFactory<AccSensorObservationDimensions>
Parameters:
id - the dimension identifier
Returns:
the dimension type
See Also:
DimensionIds