|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.android.activityminer.logic.configuration.ConfigurationValidator
public class ConfigurationValidator
Static class for parameter validation.
Constructor Summary | |
---|---|
ConfigurationValidator()
|
Method Summary | |
---|---|
static String |
getInvalidWindowSizeMessage(Context context)
Getter for the actual message for invalid windows sizes. |
static long |
getMinimumRecordingTime()
Does calculate the absolute minimum of the recording time. |
static String |
getWindowSizeRangeDescription(Context context)
Does create a cutOut size range description |
static boolean |
validateCountDownTime(long countDownTime)
Test method for valid count-down time configuration. |
static boolean |
validateMaximumRecordingTime(long maximumRecordingTime)
Test method for valid maximum recording time configuration. |
static boolean |
validateOverlapSize(int overlapSize)
Test method for valid overlap size configuration. |
static boolean |
validateRecordingTime(long recordingTime)
Test method for valid recording time configuration. |
static boolean |
validateSampleRate(long sampleRate,
long maxSampleRate)
Test method for a valid sample rate configuration. |
static boolean |
validateWindowSize(long windowSize)
Test method for valid cutOut size configuration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigurationValidator()
Method Detail |
---|
public static final String getInvalidWindowSizeMessage(Context context)
context
- the context
public static String getWindowSizeRangeDescription(Context context)
context
- the context
public static final boolean validateWindowSize(long windowSize)
windowSize
- the cutOut size
public static final boolean validateOverlapSize(int overlapSize)
overlapSize
- the overlap size
public static boolean validateCountDownTime(long countDownTime)
countDownTime
- the count-down time
public static final boolean validateRecordingTime(long recordingTime)
recordingTime
- the recording time
public static final long getMinimumRecordingTime()
public static final boolean validateSampleRate(long sampleRate, long maxSampleRate)
sampleRate
- the sample rate in milliseconds, as the update interval between
two samplesmaxSampleRate
- the maximum sample rate
public static final boolean validateMaximumRecordingTime(long maximumRecordingTime)
maximumRecordingTime
- the recording time
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |