Class CTClassifierOfflineTask

java.lang.Object
offlineProcessing.OfflineTask<CTDataUnit>
clickTrainDetector.offline.CTClassifierOfflineTask

public class CTClassifierOfflineTask extends OfflineTask<CTDataUnit>
Runs only the click train classifier on the data (does not recalculate click trains)
Author:
Jamie Macaulay
  • Constructor Details

    • CTClassifierOfflineTask

      public CTClassifierOfflineTask(ClickTrainControl clickTrainControl)
      Constructor for the click train offline processing
      Parameters:
      clickTrainContol - - the click train control.
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in class OfflineTask<CTDataUnit>
      Returns:
      a name for the task, to be displayed in the dialog.
    • hasSettings

      public boolean hasSettings()
      Description copied from class: OfflineTask
      task has settings which can be called
      Overrides:
      hasSettings in class OfflineTask<CTDataUnit>
      Returns:
      true or false
    • callSettings

      public boolean callSettings()
      Description copied from class: OfflineTask
      Call any task specific settings
      Overrides:
      callSettings in class OfflineTask<CTDataUnit>
      Returns:
      true if settings may have changed.
    • prepareTask

      public void prepareTask()
      Called at the start of the thread which executes this task.
      Overrides:
      prepareTask in class OfflineTask<CTDataUnit>
    • processDataUnit

      public boolean processDataUnit(CTDataUnit dataUnit)
      Description copied from class: OfflineTask
      Process a single data unit.
      Specified by:
      processDataUnit in class OfflineTask<CTDataUnit>
      Returns:
      true if the data unit has changed in some way so that it will need re-writing to it's binary file or database.
    • newDataLoad

      public void newDataLoad(long startTime, long endTime, OfflineDataMapPoint mapPoint)
      Description copied from class: OfflineTask
      Called when new data are loaded for offline processing (or once at the start of processing loaded data).
      Specified by:
      newDataLoad in class OfflineTask<CTDataUnit>
      Parameters:
      startTime - start time of loaded data
      endTime - end time of loaded data
    • loadedDataComplete

      public void loadedDataComplete()
      Description copied from class: OfflineTask
      Called when processing of loaded data, or each map point worth of data, is complete.
      Specified by:
      loadedDataComplete in class OfflineTask<CTDataUnit>
    • deleteOldData

      public void deleteOldData(TaskGroupParams taskGroupParams)
      Description copied from class: OfflineTask
      Gets called at the start of data processing, called oncer per run, i.e. not called again each time more data are loaded.
      Overrides:
      deleteOldData in class OfflineTask<CTDataUnit>