org.android.activityminer.app.service
Enum ServiceState

Package class diagram package ServiceState
java.lang.Object
  extended by java.lang.Enum<ServiceState>
      extended by org.android.activityminer.app.service.ServiceState
All Implemented Interfaces:
Parcelable, Serializable, Comparable<ServiceState>

public enum ServiceState
extends Enum<ServiceState>
implements Parcelable


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
 
Enum Constant Summary
BatchMode
          The service is busy in batch mode.
BusyExportingDatabase
          The service is busy exporting the database.
BusyExportingModelFile
          The service is busy exporting a model file.
BusyExportingRecordingData
          The service is busy exporting the raw recording data.
BusyExportingTrainingData
          The service is busy exporting the extracted training data (feature vectors).
BusyExtractingFeatures
          The service is busy extracting features.
BusyImportingDatabase
          The service is busy exporting the database.
BusyUpdatingRawData
          The service is busy with raw data updates.
BusyWithEvaluation
          The service is busy with evaluation
BusyWithFeatureSelection
          The service is busy with feature selection
BusyWithModelCreation
          The service is busy with model creation.
Idle
          The service is idle.
 
Field Summary
static Parcelable.Creator<ServiceState> CREATOR
          The Parcelable creator.
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Method Summary
 int describeContents()
           
static Comparator<ServiceState> getComparator()
          Does create a comparator for feature types.
static boolean isDBAccessState(ServiceState state)
          Test method for training data access
static boolean isObservableState(ServiceState state)
          Test method for observable service states
static ServiceState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ServiceState[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 void writeToParcel(Parcel dest, int flags)
           
 
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

Idle

public static final ServiceState Idle
The service is idle.


BusyUpdatingRawData

public static final ServiceState BusyUpdatingRawData
The service is busy with raw data updates.


BusyExtractingFeatures

public static final ServiceState BusyExtractingFeatures
The service is busy extracting features.


BusyWithEvaluation

public static final ServiceState BusyWithEvaluation
The service is busy with evaluation


BusyWithFeatureSelection

public static final ServiceState BusyWithFeatureSelection
The service is busy with feature selection


BusyWithModelCreation

public static final ServiceState BusyWithModelCreation
The service is busy with model creation.


BusyExportingTrainingData

public static final ServiceState BusyExportingTrainingData
The service is busy exporting the extracted training data (feature vectors).


BusyExportingRecordingData

public static final ServiceState BusyExportingRecordingData
The service is busy exporting the raw recording data.


BusyExportingDatabase

public static final ServiceState BusyExportingDatabase
The service is busy exporting the database.


BusyImportingDatabase

public static final ServiceState BusyImportingDatabase
The service is busy exporting the database.


BusyExportingModelFile

public static final ServiceState BusyExportingModelFile
The service is busy exporting a model file.


BatchMode

public static final ServiceState BatchMode
The service is busy in batch mode.

Field Detail

CREATOR

public static final Parcelable.Creator<ServiceState> CREATOR
The Parcelable creator.

Method Detail

values

public static ServiceState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ServiceState c : ServiceState.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ServiceState valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getComparator

public static final Comparator<ServiceState> getComparator()
Does create a comparator for feature types.

Returns:
a comparator for feature types

isDBAccessState

public static final boolean isDBAccessState(ServiceState state)
Test method for training data access

Parameters:
state - the state to test
Returns:
true if in this state training data must be accessed

isObservableState

public static final boolean isObservableState(ServiceState state)
Test method for observable service states

Parameters:
state - the state to test
Returns:
true if in this state training data must be accessed

describeContents

public final int describeContents()
Specified by:
describeContents in interface Parcelable

writeToParcel

public final void writeToParcel(Parcel dest,
                                int flags)
Specified by:
writeToParcel in interface Parcelable