|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.android.activityminer.model.configuration.Configuration
public final class Configuration
Representation of the current configuration values for the activity recognizer application.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface android.os.Parcelable |
---|
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T> |
Field Summary | |
---|---|
private long |
countDownTime
The count-down time. |
static Parcelable.Creator<Configuration> |
CREATOR
The Parcelable creator. |
private long |
defaultRecordingTime
The minimum recording time. |
private int |
evalAccuracyThreshold
The threshold in percent (0-100) to limit the evaluation result set size. |
private int |
maximumRecordingTime
The maximum recording time. |
private long |
maxSampleRate
The sample rate maximum in milliseconds. |
private int |
parameterKForCrossValidation
The parameter k for the k-fold cross-validation. |
private int |
parameterKForKNN
The parameter k for the k-nearest-neighbor classifier. |
private boolean |
parameterNormalizeForKNN
The attribute normalization flag for the k-nearest-neighbor classifier. |
private RuntimeConfiguration |
runtimeConfiguration
The runtime configuration |
private SortedSet<Long> |
selectedClasses
The selected classes. |
Fields inherited from interface android.os.Parcelable |
---|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE |
Constructor Summary | |
---|---|
Configuration()
Constructor |
|
Configuration(Configuration config)
Copy-Constructor |
|
Configuration(long[] selectedClasses)
Constructor |
|
Configuration(Parcel source)
Constructor |
Method Summary | |
---|---|
boolean |
addClassLabel(Long classLabelId)
Does add an activity label to the selected class set. |
int |
describeContents()
|
long |
getCountDownTime()
Getter for the countDownTime |
long |
getDefaultRecordingTime()
Getter for the default recording time in seconds. |
int |
getEvalAccuracyThreshold()
Getter for the evaluation threshold value (0-100%). |
int |
getMaximumRecordingTime()
|
long |
getMaximumSampleRate()
Getter for the maximum sample rate in milliseconds. |
int |
getParameterKForCrossValidation()
Getter for the parameter k for the k-fold cross-validation. |
int |
getParameterKForKNN()
Getter for the parameter k for the k-nearest-neighbor classifier. |
boolean |
getParameterNormalizeForKNN()
Getter for the parameterNormalizeForKNN |
RuntimeConfiguration |
getRuntimeConfiguration()
Getter for the runtime configuration |
int |
getSelectedClassCount()
Getter for the count of selected classes |
long[] |
getSelectedClasses()
Getter for the selected features. |
Set<Long> |
getSelectedClassesSet()
Getter for the set of selected classes. |
boolean |
removeClassLabel(Long classLabelId)
Does remove an activity label from the selected class set. |
void |
setCountDownTime(long countDownTime)
Setter for the countDownTime |
void |
setDefaultRecordingTime(long defaultRecordingTime)
Setter for the default recording time in seconds. |
void |
setEvalAccuracyThreshold(int evalAccuracyThreshold)
Setter for the evalAccuracyThreshold |
void |
setMaximumRecordingTime(int maximumRecordingTime)
Setter for the maximum recording time in seconds. |
void |
setMaximumSampleRate(long maxSampleRate)
Setter for the sample rate maximum in milliseconds. |
void |
setParameterKForCrossValidation(int parameterK)
Setter for the parameter k for the k-fold cross-validation. |
void |
setParameterKForKNN(int parameterKForKNN)
Setter for the parameter k for the k-nearest-neighbor classifier. |
void |
setParameterNormalizeForKNN(boolean parameterNormalizeForKNN)
Setter for the parameterNormalizeForKNN |
void |
setRuntimeConfiguration(RuntimeConfiguration runtimeConfiguration)
Setter for the runtime configuration |
String |
toXML()
|
void |
updateSelectedClasses(long[] selectedClasses)
Method to update the selected classes |
void |
updateSelectedClasses(Long[] selectedClasses)
Method to update the selected classes |
void |
writeToParcel(Parcel dest,
int flags)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private RuntimeConfiguration runtimeConfiguration
private long maxSampleRate
private final SortedSet<Long> selectedClasses
private long countDownTime
private long defaultRecordingTime
private int maximumRecordingTime
private int parameterKForCrossValidation
private int evalAccuracyThreshold
private int parameterKForKNN
private boolean parameterNormalizeForKNN
public static final Parcelable.Creator<Configuration> CREATOR
Constructor Detail |
---|
public Configuration()
public Configuration(long[] selectedClasses)
selectedClasses
- the set with selected classespublic Configuration(Configuration config)
config
- the configuration to copy frompublic Configuration(Parcel source)
source
- the parcel to create fromMethod Detail |
---|
public final void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable
public final RuntimeConfiguration getRuntimeConfiguration()
public final void setRuntimeConfiguration(RuntimeConfiguration runtimeConfiguration)
runtimeConfiguration
- the runtime configuration to setpublic final boolean addClassLabel(Long classLabelId)
classLabelId
- the activity label identifier to add
public final boolean removeClassLabel(Long classLabelId)
classLabelId
- the activity class identifier to remove
public void updateSelectedClasses(Long[] selectedClasses)
selectedClasses
- the new selection of activity label identifierspublic void updateSelectedClasses(long[] selectedClasses)
selectedClasses
- the new selection of activity label identifierspublic final long[] getSelectedClasses()
public final Set<Long> getSelectedClassesSet()
public final long getCountDownTime()
public final void setCountDownTime(long countDownTime)
countDownTime
- the countDownTime to setpublic final void setDefaultRecordingTime(long defaultRecordingTime)
defaultRecordingTime
- the default recording timepublic final long getDefaultRecordingTime()
public final void setMaximumRecordingTime(int maximumRecordingTime)
maximumRecordingTime
- the maximum recording timepublic final int getMaximumRecordingTime()
public final int getParameterKForCrossValidation()
public final void setParameterKForCrossValidation(int parameterK)
parameterK
- the parameter k to setpublic int getEvalAccuracyThreshold()
public void setEvalAccuracyThreshold(int evalAccuracyThreshold)
evalAccuracyThreshold
- the evalAccuracyThreshold to setpublic final int getParameterKForKNN()
public final void setParameterKForKNN(int parameterKForKNN)
parameterKForKNN
- the parameter k to setpublic boolean getParameterNormalizeForKNN()
public void setParameterNormalizeForKNN(boolean parameterNormalizeForKNN)
parameterNormalizeForKNN
- the parameterNormalizeForKNN to setpublic final int getSelectedClassCount()
public final long getMaximumSampleRate()
public final void setMaximumSampleRate(long maxSampleRate)
maxSampleRate
- the sample rate maximumpublic final String toXML() throws Exception
toXML
in interface SerializableData
Exception
public final int describeContents()
describeContents
in interface Parcelable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |