Package tethys.tasks
Class TethysTask
java.lang.Object
offlineProcessing.OfflineTask
tethys.tasks.TethysTask
- Direct Known Subclasses:
ExportCalibrationTask
,ExportDataBlockTask
,ExportDeploymentsTask
Base class for offline tasks in Tethys. These probably won't be made available
as tasks in Tethys, but will be picked up by the batch processor which can then
execute them across multiple datasets.
These will have to be set up with their own complete sets of parameters, i.e. all the information that was normally going into the export Wizards, so that they can be fully automated from the batch processor.
- Author:
- dg50
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTethysTask
(TethysControl tethysControl, TethysTaskManager tethysTaskManager, PamDataBlock parentDataBlock) -
Method Summary
Methods inherited from class offlineProcessing.OfflineTask
addAffectedDataBlock, addRequiredDataBlock, addRequiredDataBlock, addRequiredDataBlock, callSettings, callSettings, completeTask, deleteOldData, deleteOldOutput, getAffectedBlocksList, getAffectedDataBlock, getDataBlock, getLongName, getName, getNumAffectedDataBlocks, getNumRequiredDataBlocks, getOfflineTaskGroup, getParentControlledUnit, getRequiredDataBlock, getSettingsProviders, getTaskControlledUnit, getUnitName, getUnitType, hasSettings, isDoRun, loadedDataComplete, newDataLoad, prepareTask, processDataUnit, setDoRun, setOfflineTaskGroup, setParentDataBlock
-
Field Details
-
Constructor Details
-
TethysTask
public TethysTask(TethysControl tethysControl, TethysTaskManager tethysTaskManager, PamDataBlock parentDataBlock)
-
-
Method Details
-
canRun
public boolean canRun()Check the Tethys server, reset the whyNot flag to null, return false is server not OK. Expect to override / extend in concrete export tasks.- Overrides:
canRun
in classOfflineTask
- Returns:
- true if it's possible to run the task.
-
whyNot
Description copied from class:OfflineTask
If a task can't run, try to return a string to say why not.- Overrides:
whyNot
in classOfflineTask
- Returns:
- text reason as to why task can't run (such as missing data).
-
getTethysControl
- Returns:
- the tethysControl
-
getTethysTaskManager
- Returns:
- the tethysTaskManager
-