org.cyberlab.local.activity.task
Class LicovMatchTask
java.lang.Object
org.cyberlab.local.activity.task.AbstractWorkerTask<LocalModel<?>,java.util.ArrayList<LocalMatch<E>>>
org.cyberlab.local.activity.task.AbstractMatchTask<LICOVMatch>
org.cyberlab.local.activity.task.LicovMatchTask
public class LicovMatchTask
- extends AbstractMatchTask<LICOVMatch>
Performs LICOV matching on an Unknown
object and a list of LICOVModel
.
This task can be decoupled/recoupled from an Activity (ex. rotation change) by using the TaskManager.
The activity directly using this task must implement a public method threadFinished(int);
The result can be retrieved by calling AbstractMatchTask.getMatches()
or AsyncTask.get() method.
A different and much better solution is to remove returnMatches (the while loop) and on on threadFinished(int), returning the
ArrayList> directly from doInBacktround and use AsyncTask.get() method (see android AsyncTask documentation).
This will return the result from doInBackground.
- Author:
- Mats-Gøran Karlsen
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LicovMatchTask
public LicovMatchTask(AbstractGeneralActivity<?> activity,
int uniqueID,
Unknown obj)
doInBackground
protected java.util.ArrayList<LocalMatch<LICOVMatch>> doInBackground(LocalModel<?>... arg0)
onPostExecute
protected void onPostExecute(java.util.ArrayList<LocalMatch<LICOVMatch>> result)