org.android.activityminer.model.features
Enum FeatureCategory

Package class diagram package FeatureCategory
java.lang.Object
  extended by java.lang.Enum<FeatureCategory>
      extended by org.android.activityminer.model.features.FeatureCategory
All Implemented Interfaces:
Serializable, Comparable<FeatureCategory>

public enum FeatureCategory
extends Enum<FeatureCategory>

Feature categories based on the data source (e.g. location data or accelerometer data)


Enum Constant Summary
AccelerometerFeature
          Accelerometer data based features
LocationFeature
          Location data based features
 
Method Summary
static FeatureCategory getCategory(FeatureTypes featureType)
          Getter for the category of a specific feature type
static boolean isLocationFeature(FeatureTypes featureType)
          Test method if a feature is a location feature
static FeatureCategory valueOf(String name)
          Returns the enum constant of this type with the specified name.
static FeatureCategory[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

AccelerometerFeature

public static final FeatureCategory AccelerometerFeature
Accelerometer data based features


LocationFeature

public static final FeatureCategory LocationFeature
Location data based features

Method Detail

values

public static FeatureCategory[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (FeatureCategory c : FeatureCategory.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static FeatureCategory valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getCategory

public static final FeatureCategory getCategory(FeatureTypes featureType)
Getter for the category of a specific feature type

Parameters:
featureType - the feature type to get the category for
Returns:
the feature category for the given type

isLocationFeature

public static final boolean isLocationFeature(FeatureTypes featureType)
Test method if a feature is a location feature

Parameters:
featureType - the feature type to test
Returns:
true if the feature is location data based