|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<FrequencyTypes>
org.android.activityminer.model.configuration.FrequencyTypes
public enum FrequencyTypes
Frequency types for the runtime configuration.
Enum Constant Summary | |
---|---|
FASTEST
The maximum sample frequency (100Hz) |
|
LOW
The low sample frequency (16,6Hz) |
|
LOWEST
The lowest sample frequency (5Hz) |
|
MODERATE
The moderate sample frequency (25Hz) |
|
NORMAL
The normal sample frequency (50Hz) |
Method Summary | |
---|---|
static double |
getFrequency(FrequencyTypes fType)
Getter for the frequency in Hz. |
static FrequencyTypes |
getFrequencyForSampleRate(long sampleRate)
Getter for the closest upper frequency for a given sample rate. |
static List<FrequencyTypes> |
getKnownFrequencies(long maxSampleRate)
Getter for the known frequencies for a given maximum sample rate. |
static double |
getNyquistFrequency(FrequencyTypes fType)
|
static long |
getOverSamplingRate(FrequencyTypes fType)
Getter for the over sampling rate (delta between two samples) in milliseconds. |
static long |
getSampleRate(FrequencyTypes fType)
Getter for the sample rate (delta between two samples) in milliseconds. |
static FrequencyTypes |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static FrequencyTypes[] |
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 |
---|
public static final FrequencyTypes FASTEST
public static final FrequencyTypes NORMAL
public static final FrequencyTypes MODERATE
public static final FrequencyTypes LOW
public static final FrequencyTypes LOWEST
Method Detail |
---|
public static FrequencyTypes[] values()
for (FrequencyTypes c : FrequencyTypes.values()) System.out.println(c);
public static FrequencyTypes valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static final List<FrequencyTypes> getKnownFrequencies(long maxSampleRate)
maxSampleRate
- the maximum sample rate
public static final FrequencyTypes getFrequencyForSampleRate(long sampleRate)
sampleRate
- the sample rate
public static final long getSampleRate(FrequencyTypes fType)
fType
- the frequency type
public static final long getOverSamplingRate(FrequencyTypes fType)
fType
- the frequency type
public static final double getFrequency(FrequencyTypes fType)
fType
- the frequency type
public static double getNyquistFrequency(FrequencyTypes fType)
fType
- the frequency type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |