|
||||||||||
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.TrainingDataDeletionThread
public class TrainingDataDeletionThread
A simple training data deletion thread for batch processing
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
Thread.State, Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
private DBManager |
dbManager
The database manager |
private static int |
FEATURE_DELETION_NOTIFICATION
the feature extraction notification identifier |
private boolean |
succeeded
The success flag. |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
TrainingDataDeletionThread(Context context,
DBManager dbManager,
Class<? extends Activity> intentReceiver)
Constructor |
Method Summary | |
---|---|
protected void |
doCleanUp()
|
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.app.util.ObservableWorkerThreadWithProgressNotification |
---|
broadcastProgress, 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 FEATURE_DELETION_NOTIFICATION
private final DBManager dbManager
private boolean succeeded
Constructor Detail |
---|
public TrainingDataDeletionThread(Context context, DBManager dbManager, Class<? extends Activity> intentReceiver)
context
- the contextdbManager
- the database managerintentReceiver
- the intent receiver classMethod Detail |
---|
public String getErrorNotificationMsg()
ObservableWorkerThreadWithProgressNotification
getErrorNotificationMsg
in class ObservableWorkerThreadWithProgressNotification
public String getResultNotificationMsg()
ObservableWorkerThreadWithProgressNotification
getResultNotificationMsg
in class ObservableWorkerThreadWithProgressNotification
public int getNotificationId()
ObservableWorkerThreadWithProgressNotification
getNotificationId
in class ObservableWorkerThreadWithProgressNotification
public boolean hasSucceeded()
ObservableWorkerThreadWithProgressNotification
hasSucceeded
in class ObservableWorkerThreadWithProgressNotification
protected void doWork()
doWork
in class AbstractWorkerThread
protected void doCleanUp()
doCleanUp
in class ObservableWorkerThreadWithProgressNotification
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |