Package export.swing
Class ExportTask
- Direct Known Subclasses:
 ClickEventExportTask
Export data to a file type.
- Author:
 - Jamie Macaulay
 
- 
Constructor Summary
ConstructorsConstructorDescriptionExportTask(PamDataBlock<PamDataUnit<?, ?>> parentDataBlock, PamExporterManager exporter)  - 
Method Summary
Modifier and TypeMethodDescriptionbooleanCall any task specific settingsbooleancanExport(int exportSelection) Set whether the task can export based on the current selectionbooleancanRun()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.voidCalled at the end of the thread which executes this task.getName()booleantask has settings which can be calledvoidCalled 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).voidCalled at the start of the thread which executes this task.booleanprocessDataUnit(PamDataUnit<?, ?> dataUnit) Process a single data unit.Methods inherited from class offlineProcessing.OfflineTask
addAffectedDataBlock, addRequiredDataBlock, addRequiredDataBlock, addRequiredDataBlock, callSettings, deleteOldData, deleteOldOutput, getAffectedBlocksList, getAffectedDataBlock, getDataBlock, getLongName, getNumAffectedDataBlocks, getNumRequiredDataBlocks, getOfflineTaskGroup, getParentControlledUnit, getRequiredDataBlock, getSettingsProviders, getTaskControlledUnit, getUnitName, getUnitType, isDoRun, setDoRun, setOfflineTaskGroup, setParentDataBlock, whyNot 
- 
Constructor Details
- 
ExportTask
 
 - 
 - 
Method Details
- 
prepareTask
public void prepareTask()Called at the start of the thread which executes this task.- Overrides:
 prepareTaskin classOfflineTask<PamDataUnit<?,?>> 
 - 
getName
- Specified by:
 getNamein classOfflineTask<PamDataUnit<?,?>> - 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<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
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<PamDataUnit<?,?>> - 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<PamDataUnit<?,?>> 
 - 
completeTask
public void completeTask()Called at the end of the thread which executes this task.- Overrides:
 completeTaskin classOfflineTask<PamDataUnit<?,?>> 
 - 
hasSettings
public boolean hasSettings()task has settings which can be called- Overrides:
 hasSettingsin classOfflineTask<PamDataUnit<?,?>> - Returns:
 - true or false
 
 - 
callSettings
public boolean callSettings()Call any task specific settings- Overrides:
 callSettingsin classOfflineTask<PamDataUnit<?,?>> - Returns:
 - true if settings may have changed.
 
 - 
canExport
public boolean canExport(int exportSelection) Set whether the task can export based on the current selection- Parameters:
 exportSelection- - the index of the selected exporter
 - 
canRun
public boolean canRun()Description copied from class:OfflineTaskcan 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:
 canRunin classOfflineTask<PamDataUnit<?,?>> - Returns:
 - true if it's possible to run the task.
 
 
 -