|
||||||||||
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.features.FeatureVectorExportThread
public class FeatureVectorExportThread
The thread for feature vector export to csv file.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
Thread.State, Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
private Context |
context
The context. |
private Configuration |
currentConfig
The current configuration |
private DBManager |
dbManager
The database manger reference |
private static int |
FEATURE_VECTOR_EXPORT_NOTIFICATION
the notification identifier |
private String |
fileName
The destination file name |
private String |
lastError
The last error message |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
private |
FeatureVectorExportThread(Context context,
DBManager dbManager,
String fileName,
Configuration currentConfig,
Class<? extends Activity> intentReceiver)
Constructor |
Method Summary | |
---|---|
static FeatureVectorExportThread |
create(Context context,
DBManager dbManager,
String fileName,
Configuration currentConfig,
EventObserver<TaskFinishedEvent> finishedObserver,
Class<? extends Activity> intentReceiver)
Does create a feature vector export thread. |
static FeatureVectorExportThread |
createAndRun(Context context,
DBManager dbManager,
String fileName,
Configuration currentConfig,
EventObserver<TaskFinishedEvent> finishedObserver,
Class<? extends Activity> intentReceiver)
Does create and execute a feature vector export 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.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 FEATURE_VECTOR_EXPORT_NOTIFICATION
private final String fileName
private String lastError
private final DBManager dbManager
private final Configuration currentConfig
private final Context context
Constructor Detail |
---|
private FeatureVectorExportThread(Context context, DBManager dbManager, String fileName, Configuration currentConfig, Class<? extends Activity> intentReceiver)
context
- the application contextdbManager
- a reference to the database managerfileName
- the filenamecurrentConfig
- the current configurationintentReceiver
- the intent receiver classMethod Detail |
---|
public final String getErrorNotificationMsg()
ObservableWorkerThreadWithProgressNotification
getErrorNotificationMsg
in class ObservableWorkerThreadWithProgressNotification
public final String getResultNotificationMsg()
ObservableWorkerThreadWithProgressNotification
getResultNotificationMsg
in class ObservableWorkerThreadWithProgressNotification
public final int getNotificationId()
ObservableWorkerThreadWithProgressNotification
getNotificationId
in class ObservableWorkerThreadWithProgressNotification
public final boolean hasSucceeded()
ObservableWorkerThreadWithProgressNotification
hasSucceeded
in class ObservableWorkerThreadWithProgressNotification
protected final void doWork()
doWork
in class AbstractWorkerThread
public static final FeatureVectorExportThread createAndRun(Context context, DBManager dbManager, String fileName, Configuration currentConfig, EventObserver<TaskFinishedEvent> finishedObserver, Class<? extends Activity> intentReceiver)
context
- the context of the callerdbManager
- the database manager to usefileName
- the destination file namecurrentConfig
- the current configurationfinishedObserver
- the finished event observerintentReceiver
- the intent receiver class
public static FeatureVectorExportThread create(Context context, DBManager dbManager, String fileName, Configuration currentConfig, EventObserver<TaskFinishedEvent> finishedObserver, Class<? extends Activity> intentReceiver)
context
- the context of the callerdbManager
- the database manager to usefileName
- the destination file namecurrentConfig
- the current configurationfinishedObserver
- the finished event observerintentReceiver
- the intent receiver class
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |