FileDocCategorySizeDatePackage
MotionStatsAggregator.javaAPI DocAndroid 5.1 API1434Thu Mar 12 22:22:48 GMT 2015android.bordeaux.services

MotionStatsAggregator

public class MotionStatsAggregator extends Aggregator

Fields Summary
final String
TAG
public static final String
CURRENT_MOTION
Constructors Summary
Methods Summary
public java.util.MapgetFeatureValue(java.lang.String featureName)

        HashMap<String,String> m = new HashMap<String,String>();
        if (featureName.equals(CURRENT_MOTION))
            m.put(CURRENT_MOTION,"Running"); //TODO maybe use clustering for user motion
        else
            Log.e(TAG, "There is no motion feature called " + featureName);
        return (Map) m;
    
public java.lang.String[]getListOfFeatures()

      
        String [] list = new String[1];
        list[0] = CURRENT_MOTION;
        return list;