Package tethys.tasks
Class ExportDeploymentsTask
java.lang.Object
offlineProcessing.OfflineTask
tethys.tasks.TethysTask
tethys.tasks.ExportDeploymentsTask
-
Field Summary
Fields inherited from class tethys.tasks.TethysTask
whyNot
-
Constructor Summary
ConstructorsConstructorDescriptionExportDeploymentsTask
(TethysControl tethysControl, TethysTaskManager tethysTaskManager, PamDataBlock parentDataBlock) -
Method Summary
Modifier and TypeMethodDescriptionboolean
callSettings
(Component component, Point point) Call any task specific settings.boolean
canRun()
Check the Tethys server, reset the whyNot flag to null, return false is server not OK.void
Called at the end of the thread which executes this task.protected void
deploymentInformation
(Component component, Point point) getName()
boolean
task has settings which can be modified.void
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).boolean
processDataUnit
(PamDataUnit dataUnit) Process a single data unit.protected void
recordingGaps
(Component component, Point point) Methods inherited from class tethys.tasks.TethysTask
getTethysControl, getTethysTaskManager, whyNot
Methods inherited from class offlineProcessing.OfflineTask
addAffectedDataBlock, addRequiredDataBlock, addRequiredDataBlock, addRequiredDataBlock, callSettings, deleteOldData, deleteOldOutput, getAffectedBlocksList, getAffectedDataBlock, getDataBlock, getLongName, getNumAffectedDataBlocks, getNumRequiredDataBlocks, getOfflineTaskGroup, getParentControlledUnit, getRequiredDataBlock, getTaskControlledUnit, getUnitName, getUnitType, isDoRun, prepareTask, setDoRun, setOfflineTaskGroup, setParentDataBlock
-
Constructor Details
-
ExportDeploymentsTask
public ExportDeploymentsTask(TethysControl tethysControl, TethysTaskManager tethysTaskManager, PamDataBlock parentDataBlock)
-
-
Method Details
-
getName
- Specified by:
getName
in classOfflineTask
- 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
- 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
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
- 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
-
canRun
public boolean canRun()Description copied from class:TethysTask
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 classTethysTask
- Returns:
- true if it's possible to run the task.
-
hasSettings
public boolean hasSettings()Description copied from class:OfflineTask
task 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:
hasSettings
in classOfflineTask
- Returns:
- true or false
-
callSettings
Description copied from class:OfflineTask
Call any task specific settings. This replaces the older function callSettings() which is now deprecated. Passes a reference to an awt component so that it's location can be used to open a popup dialog, etc, for more complex systems with many options.- Overrides:
callSettings
in classOfflineTask
- Parameters:
component
- button or whatever called the settings.- Returns:
-
deploymentInformation
-
recordingGaps
-
completeTask
public void completeTask()Description copied from class:OfflineTask
Called at the end of the thread which executes this task.- Overrides:
completeTask
in classOfflineTask
-
getSettingsProviders
- Overrides:
getSettingsProviders
in classOfflineTask
-