Package tethys.tasks
Class ExportDataBlockTask
java.lang.Object
offlineProcessing.OfflineTask
tethys.tasks.TethysTask
tethys.tasks.ExportDataBlockTask
- All Implemented Interfaces:
 DetectionExportObserver
- 
Field Summary
Fields inherited from class tethys.tasks.TethysTask
whyNot - 
Constructor Summary
ConstructorsConstructorDescriptionExportDataBlockTask(TethysControl tethysControl, TethysTaskManager tethysTaskManager, PamDataBlock parentDataBlock)  - 
Method Summary
Modifier and TypeMethodDescriptionbooleancallSettings(Component component, Point point) Call any task specific settings.booleancanRun()Check the Tethys server, reset the whyNot flag to null, return false is server not OK.protected voidexportOptions(Component component, Point point) getName()booleantask has settings which can be modified.protected voidvoidCalled 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).booleanprocessDataUnit(PamDataUnit dataUnit) Process a single data unit.voidrunEntireTask(OfflineTaskGroup.TaskGroupWorker taskGroupWorker, ExportDatablockGroup exportDatablockGroup) Called back from modified offlinetaskgroup which will let the detectionshander do all the data load / management in it's own wayvoidupdate(DetectionExportProgress progress) Update message and state of exportwhyNot()If a task can't run, try to return a string to say why not.Methods inherited from class tethys.tasks.TethysTask
getTethysControl, getTethysTaskManagerMethods inherited from class offlineProcessing.OfflineTask
addAffectedDataBlock, addRequiredDataBlock, addRequiredDataBlock, addRequiredDataBlock, callSettings, completeTask, deleteOldData, deleteOldOutput, getAffectedBlocksList, getAffectedDataBlock, getDataBlock, getLongName, getNumAffectedDataBlocks, getNumRequiredDataBlocks, getOfflineTaskGroup, getParentControlledUnit, getRequiredDataBlock, getTaskControlledUnit, getUnitName, getUnitType, isDoRun, prepareTask, setDoRun, setOfflineTaskGroup, setParentDataBlock 
- 
Constructor Details
- 
ExportDataBlockTask
public ExportDataBlockTask(TethysControl tethysControl, TethysTaskManager tethysTaskManager, PamDataBlock parentDataBlock)  
 - 
 - 
Method Details
- 
getName
- Specified by:
 getNamein classOfflineTask- 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- 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:OfflineTaskCalled when new data are loaded for offline processing (or once at the start of processing loaded data).- Specified by:
 newDataLoadin classOfflineTask- 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
 - 
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- Returns:
 - true or false
 
 - 
callSettings
Description copied from class:OfflineTaskCall 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:
 callSettingsin classOfflineTask- Parameters:
 component- button or whatever called the settings.- Returns:
 
 - 
exportOptions
 - 
itisCodes
 - 
canRun
public boolean canRun()Description copied from class:TethysTaskCheck the Tethys server, reset the whyNot flag to null, return false is server not OK. Expect to override / extend in concrete export tasks.- Overrides:
 canRunin classTethysTask- Returns:
 - true if it's possible to run the task.
 
 - 
whyNot
Description copied from class:OfflineTaskIf a task can't run, try to return a string to say why not.- Overrides:
 whyNotin classTethysTask- Returns:
 - text reason as to why task can't run (such as missing data).
 
 - 
runEntireTask
public void runEntireTask(OfflineTaskGroup.TaskGroupWorker taskGroupWorker, ExportDatablockGroup exportDatablockGroup) Called back from modified offlinetaskgroup which will let the detectionshander do all the data load / management in it's own way- Parameters:
 taskGroupWorker-exportDatablockGroup-
 - 
update
Description copied from interface:DetectionExportObserverUpdate message and state of export- Specified by:
 updatein interfaceDetectionExportObserver- Parameters:
 progress-
 - 
getSettingsProviders
- Overrides:
 getSettingsProvidersin classOfflineTask
 
 -