|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectjava.lang.Thread
de.unikassel.android.sdcframework.util.AbstractWorkerThread
org.android.activityminer.app.util.ObservableWorkerThreadWithProgressNotification
org.android.activityminer.logic.util.AbstractLinearAccelerationUpdateThread<T>
org.android.activityminer.logic.util.LinearAccelerationUpdateThread<T>
T - the enumeration type for the dimensionspublic class LinearAccelerationUpdateThread<T extends Enum<T> & Dimensions>
The thread to update the linear acceleration values in the raw recorded data by the own linear accelerator source filter implementation.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
Thread.State, Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
private DBManager |
dbManager
The database manger reference |
private String |
lastError
The last error message |
private static int |
LINEAR_ACC_UPDATE_NOTIFICATION
Rhe notification identifier |
| Fields inherited from class org.android.activityminer.logic.util.AbstractLinearAccelerationUpdateThread |
|---|
context, isUseOwnLinAcc |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
private |
LinearAccelerationUpdateThread(Context context,
DBManager dbManager,
RuntimeConfiguration config,
AbstractFeatureFactory<T> factory,
Class<? extends Activity> intentReceiver)
Constructor |
| Method Summary | |
|---|---|
static ObservableWorkerThreadWithProgressNotification |
create(Context context,
DBManager dbManager,
RuntimeConfiguration config,
EventObserver<TaskFinishedEvent> finishedObserver,
Class<? extends Activity> intentReceiver)
Does create a linear acceleration update thread |
static ObservableWorkerThreadWithProgressNotification |
createAndRun(Context context,
DBManager dbManager,
RuntimeConfiguration config,
EventObserver<TaskFinishedEvent> finishedObserver,
Class<? extends Activity> intentReceiver)
Does create and start a linear acceleration update thread |
protected void |
doWork()
|
String |
getErrorNotificationMsg()
Getter for the error notification message |
int |
getNotificationId()
Getter for the notification identifier |
String |
getResultNotificationMsg()
Getter for the result notification message |
boolean |
hasSucceeded()
Test method for success in case of termination |
| Methods inherited from class org.android.activityminer.logic.util.AbstractLinearAccelerationUpdateThread |
|---|
updateLinearAccelerations |
| Methods inherited from class org.android.activityminer.app.util.ObservableWorkerThreadWithProgressNotification |
|---|
broadcastProgress, doCleanUp, getApplicationContext, getFinalResult, getMaxProgress, getNotification, getTaskTitle, hasObservers, incrementAndNotifyProgress, incrementAndNotifyProgress, notify, notifyProgress, notifyProgress, registerEventObserver, removeAllObservers, setMaxProgress, unregisterEventObserver |
| Methods inherited from class de.unikassel.android.sdcframework.util.AbstractWorkerThread |
|---|
doTerminate, hasTerminated, isLogging, isWorking, logMessage, run, setLogging, start, startWork, stopWork |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final int LINEAR_ACC_UPDATE_NOTIFICATION
private String lastError
private final DBManager dbManager
| Constructor Detail |
|---|
private LinearAccelerationUpdateThread(Context context,
DBManager dbManager,
RuntimeConfiguration config,
AbstractFeatureFactory<T> factory,
Class<? extends Activity> intentReceiver)
context - the application contextdbManager - a reference to the database managerconfig - the current runtime configurationfactory - the feature factory to determine dimension entry positionsintentReceiver - the intent receiver class| Method Detail |
|---|
public final String getErrorNotificationMsg()
ObservableWorkerThreadWithProgressNotification
getErrorNotificationMsg in class ObservableWorkerThreadWithProgressNotificationpublic final String getResultNotificationMsg()
ObservableWorkerThreadWithProgressNotification
getResultNotificationMsg in class ObservableWorkerThreadWithProgressNotificationpublic final int getNotificationId()
ObservableWorkerThreadWithProgressNotification
getNotificationId in class ObservableWorkerThreadWithProgressNotificationpublic final boolean hasSucceeded()
ObservableWorkerThreadWithProgressNotification
hasSucceeded in class ObservableWorkerThreadWithProgressNotificationprotected final void doWork()
doWork in class AbstractWorkerThread
public static final ObservableWorkerThreadWithProgressNotification createAndRun(Context context,
DBManager dbManager,
RuntimeConfiguration config,
EventObserver<TaskFinishedEvent> finishedObserver,
Class<? extends Activity> intentReceiver)
context - the context of the callerdbManager - the database manager to useconfig - the configuration to usefinishedObserver - the finished event observerintentReceiver - the intent receiver class
public static ObservableWorkerThreadWithProgressNotification create(Context context,
DBManager dbManager,
RuntimeConfiguration config,
EventObserver<TaskFinishedEvent> finishedObserver,
Class<? extends Activity> intentReceiver)
context - the context of the callerdbManager - the database manager to useconfig - the configuration to usefinishedObserver - the finished event observerintentReceiver - the intent receiver class
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||