Package clickTrainDetector.offline
Class ClickTrainOfflineTask
Run the click train detector in viewer mode, including the click train classifier.
- Author:
- Jamie Macaulay
-
Constructor Summary
ConstructorsConstructorDescriptionClickTrainOfflineTask(ClickTrainControl clickTrainControl) Constructor for the click train offline processing -
Method Summary
Modifier and TypeMethodDescriptionbooleanCall any task specific settings
use callSettings(Component component) instead wherever possible.voidCalled at the end of the thread which executes this task.voiddeleteOldData(TaskGroupParams taskGroupParams) Gets called at the start of data processing, called oncer per run, i.e.getName()Get the PAMControlled unit associated with a task.booleantask has settings which can be modified.voidCalled when processing of loaded data, or each map point worth of data, is complete.voidnewDataLoad(long startTime, long endTime, OfflineDataMapPoint mapPoint) Called when new data are loaded for offline processing (or once at the start of processing loaded data).voidCalled at the start of the thread which executes this task.booleanprocessDataUnit(PamDataUnit dataUnit) Process a single data unit.Methods inherited from class offlineProcessing.OfflineTask
addAffectedDataBlock, addRequiredDataBlock, addRequiredDataBlock, addRequiredDataBlock, callSettings, canRun, deleteOldOutput, getAffectedBlocksList, getAffectedDataBlock, getDataBlock, getLongName, getNumAffectedDataBlocks, getNumRequiredDataBlocks, getOfflineTaskGroup, getParentControlledUnit, getRequiredDataBlock, getSettingsProviders, getUnitName, getUnitType, isDoRun, setDoRun, setOfflineTaskGroup, setParentDataBlock, whyNot
-
Constructor Details
-
ClickTrainOfflineTask
Constructor for the click train offline processing- Parameters:
clickTrainContol- - the click train control.
-
-
Method Details
-
getName
- Specified by:
getNamein classOfflineTask<PamDataUnit<?,?>> - Returns:
- a name for the task, to be displayed in the dialog.
-
processDataUnit
Description copied from class:OfflineTaskProcess a single data unit.- Specified by:
processDataUnitin classOfflineTask<PamDataUnit<?,?>> - 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.
-
prepareTask
public void prepareTask()Called at the start of the thread which executes this task.- Overrides:
prepareTaskin classOfflineTask<PamDataUnit<?,?>>
-
completeTask
public void completeTask()Called at the end of the thread which executes this task.- Overrides:
completeTaskin classOfflineTask<PamDataUnit<?,?>>
-
newDataLoad
Description copied from class:OfflineTaskCalled when new data are loaded for offline processing (or once at the start of processing loaded data).- Specified by:
newDataLoadin classOfflineTask<PamDataUnit<?,?>> - Parameters:
startTime- start time of loaded dataendTime- end time of loaded data
-
loadedDataComplete
public void loadedDataComplete()Description copied from class:OfflineTaskCalled when processing of loaded data, or each map point worth of data, is complete.- Specified by:
loadedDataCompletein classOfflineTask<PamDataUnit<?,?>>
-
hasSettings
public boolean hasSettings()Description copied from class:OfflineTasktask has settings which can be modified. If this is true, then callSettings(Component component) should do something such as open a dialog or show a menu, or something.- Overrides:
hasSettingsin classOfflineTask<PamDataUnit<?,?>> - Returns:
- true or false
-
callSettings
public boolean callSettings()Description copied from class:OfflineTaskCall any task specific settings
use callSettings(Component component) instead wherever possible.- Overrides:
callSettingsin classOfflineTask<PamDataUnit<?,?>> - Returns:
- true if settings may have changed.
-
deleteOldData
Description copied from class:OfflineTaskGets called at the start of data processing, called oncer per run, i.e. not called again each time more data are loaded.- Overrides:
deleteOldDatain classOfflineTask<PamDataUnit<?,?>> - Parameters:
taskGroupParams-
-
getTaskControlledUnit
Description copied from class:OfflineTaskGet the PAMControlled unit associated with a task.- Overrides:
getTaskControlledUnitin classOfflineTask<PamDataUnit<?,?>> - Returns:
- PAMControlled unit associated with a task.
-