-
Constructor Summary
Constructors
-
Method Summary
boolean
Call any task specific settings
boolean
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.
boolean
task has settings which can be called
void
Called when processing of loaded data, or each map point worth of data,
is complete.
void
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
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
-
-
Method Details
-
-
processDataUnit
public boolean processDataUnit(PamDataUnit<?,?> dataUnit)
Process a single data unit.
- Specified by:
processDataUnit
in class OfflineTask<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.
-
-
-
newDataLoad
Called when new data are loaded for offline processing
(or once at the start of processing loaded data).
- Specified by:
newDataLoad
in class OfflineTask<PamDataUnit<?,?>>
- Parameters:
startTime
- start time of loaded data
endTime
- end time of loaded data
-
loadedDataComplete
public void loadedDataComplete()
Called when processing of loaded data, or each map point worth of data,
is complete.
- Specified by:
loadedDataComplete
in class OfflineTask<PamDataUnit<?,?>>
-
-
callSettings
public boolean callSettings()
Call any task specific settings
- Overrides:
callSettings
in class OfflineTask<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 class OfflineTask<PamDataUnit<?,?>>
- Returns:
- true if it's possible to run the task.