org.android.activityminer.logic.configuration
Interface SharedPreferenceChangeObserver

Package class diagram package SharedPreferenceChangeObserver
All Known Subinterfaces:
SharedPreferenceChangeNotificationReceiver
All Known Implementing Classes:
AbstractRecordingActivity, ActivityMiner, ActivityMinerPreferencesActivity, EvaluationActivity, EvaluationPreferencesActivity, FilterPreferencesActivity, FilterTestActivity, GenericRecordingActivityForSensorObservations, GlobalSharedPreferenceObserver, KNNPreferencesActivity, ManagerActivity, RecordingActivityForAccelerometerSensorObservations, RecordingActivityForSensorObservations, RecordingPreferencesActivity, ServiceBasedActivity, SharedPreferenceChangeAwareActivity, SharedPreferenceChangeAwarePreferenceActivity

public interface SharedPreferenceChangeObserver

Interface for shared preference change observers.


Method Summary
 void onBetaPreferenceChange(double beta)
          The handler for beta value preference changes.
 void onBWCutOffPreferenceChanged(double cutOff)
          The handler for Butterworth filter cut-off frequency preference changes.
 void onBWFilterOrderPreferenceChanged(int order)
          The handler for Butterworth filter order changes.
 void onClassSelectionChange(Long[] selectedClasses)
          The handler for changes of the class selection.
 void onCountDownTimeChange(long countDownTime)
          The handler for count-down time parameter changes.
 void onCrossValidationParameterKChange(int parameterK)
          The handler for changes of the parameter k for cross validation.
 void onDefaultRecordingTimeChange(long defaultRecordingTime)
          The handler for default recording time parameter changes.
 void onEvaluationAccuracyThresholdChanged(int threshold)
          The handler for changes of the parameter k for cross validation.
 void onFeatureSelection(FeatureTypes featureType, boolean isSelected)
          The handler for feature selection state changes.
 void onGravitationCutOffPreferenceChanged(double cutOff)
          The handler for gravitation filter cut-off frequency preference changes.
 void onKNNClassifierParameterKChange(int parameterK)
          The handler for changes of the parameter k for the nearest neighbor classifier (knn).
 void onKNNClassifierParameterNormalizeChange(boolean normalize)
          The handler for changes of the parameter normalize for the nearest neighbor classifier (knn).
 void onLimitViolation(String message, String key)
          Does notify for a limit violation by a user preference change.
 void onLocationDataUsageFlagChange(boolean locationDataUsageFlag)
          The handler for changes of location data usage flag
 void onMaximumRecordingTimeChange(int maximumRecordingTime)
          The handler for maximum recording time parameter changes.
 void onMaximumSampleRateChange(long maxSampleRate)
          The handler for maximum sample rate changes.
 void onMinCutOffPreferenceChanged(double minCutOff)
          The handler for minimum cut-off frequency preference changes.
 void onOverlapSizeChange(int overlapSize)
          The handler for cutOut overlap size parameter changes.
 void onOwnLinAccImplementationUsageFlagChange(boolean useInternalLinAccImpl)
          The handler for changes of the internal linear acceleration implementation usage flag.
 void onSampleRateChange(long sampleRate)
          The handler for sample rate changes.
 void onSelectedAccFilterChanged(FilterTypes filterType)
          The handler for filter type changes.
 void onSelectedClassifierChange(ClassifierTypes classifierType)
          The handler for changes of the selected classifier.
 void onWindowSizeChange(long windowSize)
          The handler for cutOut size parameter changes.
 

Method Detail

onSelectedAccFilterChanged

void onSelectedAccFilterChanged(FilterTypes filterType)
The handler for filter type changes.

Parameters:
filterType - the filterType

onGravitationCutOffPreferenceChanged

void onGravitationCutOffPreferenceChanged(double cutOff)
The handler for gravitation filter cut-off frequency preference changes.

Parameters:
cutOff - the new cut-off frequency value

onBWCutOffPreferenceChanged

void onBWCutOffPreferenceChanged(double cutOff)
The handler for Butterworth filter cut-off frequency preference changes.

Parameters:
cutOff - the new cut-off frequency value

onBWFilterOrderPreferenceChanged

void onBWFilterOrderPreferenceChanged(int order)
The handler for Butterworth filter order changes.

Parameters:
order - the new filter order

onMinCutOffPreferenceChanged

void onMinCutOffPreferenceChanged(double minCutOff)
The handler for minimum cut-off frequency preference changes.

Parameters:
minCutOff - the new minimum cut-off frequency value

onBetaPreferenceChange

void onBetaPreferenceChange(double beta)
The handler for beta value preference changes.

Parameters:
beta - the new beta value

onFeatureSelection

void onFeatureSelection(FeatureTypes featureType,
                        boolean isSelected)
The handler for feature selection state changes.

Parameters:
featureType - the feature type identifier
isSelected - the selection state

onOverlapSizeChange

void onOverlapSizeChange(int overlapSize)
The handler for cutOut overlap size parameter changes.

Parameters:
overlapSize - the new overlap size

onWindowSizeChange

void onWindowSizeChange(long windowSize)
The handler for cutOut size parameter changes.

Parameters:
windowSize - the new cutOut size

onCountDownTimeChange

void onCountDownTimeChange(long countDownTime)
The handler for count-down time parameter changes.

Parameters:
countDownTime - the new count-down time size

onDefaultRecordingTimeChange

void onDefaultRecordingTimeChange(long defaultRecordingTime)
The handler for default recording time parameter changes.

Parameters:
defaultRecordingTime - the new default recording time in seconds

onMaximumRecordingTimeChange

void onMaximumRecordingTimeChange(int maximumRecordingTime)
The handler for maximum recording time parameter changes.

Parameters:
maximumRecordingTime - the new default maximum time in seconds

onSampleRateChange

void onSampleRateChange(long sampleRate)
The handler for sample rate changes.

Parameters:
sampleRate - the new sample rate as the milliseconds between two samples

onMaximumSampleRateChange

void onMaximumSampleRateChange(long maxSampleRate)
The handler for maximum sample rate changes.

Parameters:
maxSampleRate - the new maximum sample rate as the milliseconds between two samples

onCrossValidationParameterKChange

void onCrossValidationParameterKChange(int parameterK)
The handler for changes of the parameter k for cross validation.

Parameters:
parameterK - the new parameter k for cross validation

onEvaluationAccuracyThresholdChanged

void onEvaluationAccuracyThresholdChanged(int threshold)
The handler for changes of the parameter k for cross validation.

Parameters:
threshold - the accuracy threshold for evaluation

onKNNClassifierParameterNormalizeChange

void onKNNClassifierParameterNormalizeChange(boolean normalize)
The handler for changes of the parameter normalize for the nearest neighbor classifier (knn).

Parameters:
normalize - the new normalize flag value

onKNNClassifierParameterKChange

void onKNNClassifierParameterKChange(int parameterK)
The handler for changes of the parameter k for the nearest neighbor classifier (knn).

Parameters:
parameterK - the new parameter value

onSelectedClassifierChange

void onSelectedClassifierChange(ClassifierTypes classifierType)
The handler for changes of the selected classifier.

Parameters:
classifierType - the type of the new selected classifier

onClassSelectionChange

void onClassSelectionChange(Long[] selectedClasses)
The handler for changes of the class selection.

Parameters:
selectedClasses - the actual class selection

onLocationDataUsageFlagChange

void onLocationDataUsageFlagChange(boolean locationDataUsageFlag)
The handler for changes of location data usage flag

Parameters:
locationDataUsageFlag - the new location data usage flag

onLimitViolation

void onLimitViolation(String message,
                      String key)
Does notify for a limit violation by a user preference change.

Parameters:
message - the violation message
key - the shared preference key, which value have been reset due to limit violation

onOwnLinAccImplementationUsageFlagChange

void onOwnLinAccImplementationUsageFlagChange(boolean useInternalLinAccImpl)
The handler for changes of the internal linear acceleration implementation usage flag.

Parameters:
useInternalLinAccImpl - the internal linear acceleration implementation usage flag