org.cyberlab.activity.local.task
Class LicovMatchTask

java.lang.Object
  extended by 
      extended by org.cyberlab.activity.local.task.AbstractWorkerTask<LocalModel<?>,java.util.ArrayList<LocalMatch<E>>>
          extended by org.cyberlab.activity.local.task.AbstractMatchTask<LICOVMatch>
              extended by org.cyberlab.activity.local.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

Field Summary
 
Fields inherited from class org.cyberlab.activity.local.task.AbstractMatchTask
matches, unknown
 
Fields inherited from class org.cyberlab.activity.local.task.AbstractWorkerTask
mActivity, threadId
 
Constructor Summary
LicovMatchTask(AbstractGeneralActivity<?> activity, int uniqueID, Unknown obj)
           
 
Method Summary
protected  java.util.ArrayList<LocalMatch<LICOVMatch>> doInBackground(LocalModel<?>... arg0)
           
protected  void onPostExecute(java.util.ArrayList<LocalMatch<LICOVMatch>> result)
           
 
Methods inherited from class org.cyberlab.activity.local.task.AbstractMatchTask
getMatches
 
Methods inherited from class org.cyberlab.activity.local.task.AbstractWorkerTask
attach, detach, getId, onProgressUpdate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LicovMatchTask

public LicovMatchTask(AbstractGeneralActivity<?> activity,
                      int uniqueID,
                      Unknown obj)
Method Detail

doInBackground

protected java.util.ArrayList<LocalMatch<LICOVMatch>> doInBackground(LocalModel<?>... arg0)

onPostExecute

protected void onPostExecute(java.util.ArrayList<LocalMatch<LICOVMatch>> result)