Package clickDetector.offlineFuncs
Class ClickWaveTask
Updates click waveform from raw audio data. 
 This can be used to update the raw click waveform if, for example 
 an unsuitable pre-filter was used. 
 
For example, useful for situations where there are large annotated data sets were re-analysing clicks will destroy annotation UID reference in database.
This is highly experimental and not for general release. For this to work the must have been analysed from raw sound files. Those exact same files must be loaded as offline files in viewer mode. This will then, hopefully, extract the correct raw chunks of raw data.
- Author:
 - Jamie Macaulay
 
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassObserve the success of the data load - 
Constructor Summary
ConstructorsConstructorDescriptionClickWaveTask(ClickControl clickControl) Constructor for the click wave task. - 
Method Summary
Modifier and TypeMethodDescriptionbooleancanRun()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 modified.voidCalled 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(ClickDetection click) Process a single data unit.Methods inherited from class offlineProcessing.OfflineTask
addAffectedDataBlock, addRequiredDataBlock, addRequiredDataBlock, addRequiredDataBlock, callSettings, callSettings, deleteOldData, deleteOldOutput, getAffectedBlocksList, getAffectedDataBlock, getDataBlock, getLongName, getNumAffectedDataBlocks, getNumRequiredDataBlocks, getOfflineTaskGroup, getParentControlledUnit, getRequiredDataBlock, getSettingsProviders, getTaskControlledUnit, getUnitName, getUnitType, isDoRun, setDoRun, setOfflineTaskGroup, setParentDataBlock, whyNot 
- 
Constructor Details
- 
ClickWaveTask
Constructor for the click wave task.- Parameters:
 clickControl- - click control.
 
 - 
 - 
Method Details
- 
getName
- Specified by:
 getNamein classOfflineTask<ClickDetection>- Returns:
 - a name for the task, to be displayed in the dialog.
 
 - 
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<ClickDetection>- Parameters:
 startTime- start time of loaded dataendTime- end time of loaded data
 - 
prepareTask
public void prepareTask()Description copied from class:OfflineTaskCalled at the start of the thread which executes this task.- Overrides:
 prepareTaskin classOfflineTask<ClickDetection>
 - 
processDataUnit
Description copied from class:OfflineTaskProcess a single data unit.- Specified by:
 processDataUnitin classOfflineTask<ClickDetection>- 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.
 
 - 
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<ClickDetection>
 - 
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<ClickDetection>- Returns:
 - true or false
 
 - 
completeTask
public void completeTask()Description copied from class:OfflineTaskCalled at the end of the thread which executes this task.- Overrides:
 completeTaskin classOfflineTask<ClickDetection>
 - 
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<ClickDetection>- Returns:
 - true if it's possible to run the task.
 
 
 -