org.cyberlab.activity.local.task
Class CreateLicovModelTask
java.lang.Object
org.cyberlab.activity.local.task.AbstractWorkerTask<Unknown,LocalModel<E>>
org.cyberlab.activity.local.task.AbstractCreateModelTask<LICOVModel>
org.cyberlab.activity.local.task.CreateLicovModelTask
public class CreateLicovModelTask
- extends AbstractCreateModelTask<LICOVModel>
Creates a LICOVModel
using two Unknown objects created by using the same feature and descriptor type.
The activity directly using this task must implement a public method threadFinished(int);
The result can be retrieved by calling AbstractCreateModelTask.getModel()
or AsyncTask.get() method.
A different and much better solution is to remove returnModel (the while loop) and threadFinished(int), returning the
LICOVModel
directly from doInBacktround and use the AsyncTask.get() method (see android AsyncTask documentation).
This will return the result from doInBackground.
- Author:
- matsgora
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CreateLicovModelTask
public CreateLicovModelTask(AbstractGeneralActivity<AbstractCreateModelActivity<LICOVModel>> activity,
int uniqueID)
doInBackground
protected LocalModel<LICOVModel> doInBackground(Unknown... arg0)
onPostExecute
protected void onPostExecute(LocalModel<LICOVModel> result)