Package matchedTemplateClassifer.offline
Class MTClassifierOfflineTask
java.lang.Object
offlineProcessing.OfflineTask<PamDataUnit<?,?>>
matchedTemplateClassifer.offline.MTClassifierOfflineTask
Offline task for reclassifying clicks.
- Author:
- Jamie Macaulay
-
Constructor Summary
ConstructorDescriptionMTClassifierOfflineTask
(MTClassifierControl mtClassifierControl) Constructor for the click train offline processing -
Method Summary
Modifier and TypeMethodDescriptionboolean
Call any task specific settingsboolean
canRun()
can the task be run ? This will generally be true, but may be false if the task is dependent on some other module which may not be present.void
Called at the end of the thread which executes this task.getName()
boolean
task has settings which can be calledvoid
Called when processing of loaded data, or each map point worth of data, is complete.void
newDataLoad
(long startTime, long endTime, OfflineDataMapPoint mapPoint) Called when new data are loaded for offline processing (or once at the start of processing loaded data).void
Called at the start of the thread which executes this task.boolean
processDataUnit
(PamDataUnit dataUnit) Process a single data unit.Methods inherited from class offlineProcessing.OfflineTask
addAffectedDataBlock, addRequiredDataBlock, addRequiredDataBlock, addRequiredDataBlock, deleteOldData, deleteOldOutput, getAffectedBlocksList, getAffectedDataBlock, getDataBlock, getLongName, getNumAffectedDataBlocks, getNumRequiredDataBlocks, getOfflineTaskGroup, getRequiredDataBlock, getTaskControlledUnit, getUnitName, getUnitType, isDoRun, setDoRun, setOfflineTaskGroup, setParentDataBlock
-
Constructor Details
-
MTClassifierOfflineTask
Constructor for the click train offline processing- Parameters:
clickTrainContol
- - the click train control.
-
-
Method Details
-
getName
- Specified by:
getName
in classOfflineTask<PamDataUnit<?,
?>> - Returns:
- a name for the task, to be displayed in the dialog.
-
processDataUnit
Description copied from class:OfflineTask
Process a single data unit.- Specified by:
processDataUnit
in 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:
prepareTask
in classOfflineTask<PamDataUnit<?,
?>>
-
completeTask
public void completeTask()Called at the end of the thread which executes this task.- Overrides:
completeTask
in classOfflineTask<PamDataUnit<?,
?>>
-
newDataLoad
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 classOfflineTask<PamDataUnit<?,
?>> - Parameters:
startTime
- start time of loaded dataendTime
- 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 classOfflineTask<PamDataUnit<?,
?>>
-
hasSettings
public boolean hasSettings()task has settings which can be called- Overrides:
hasSettings
in classOfflineTask<PamDataUnit<?,
?>> - Returns:
- true or false
-
callSettings
public boolean callSettings()Description copied from class:OfflineTask
Call any task specific settings- Overrides:
callSettings
in classOfflineTask<PamDataUnit<?,
?>> - Returns:
- true if settings may have changed.
-
canRun
public boolean canRun()can the task be run ? This will generally be true, but may be false if the task is dependent on some other module which may not be present.- Overrides:
canRun
in classOfflineTask<PamDataUnit<?,
?>> - Returns:
- true if it's possible to run the task.
-