Package clickTrainDetector
Class ClickTrainDataBlock<T extends CTDetectionGroupDataUnit>
java.lang.Object
PamguardMVC.PamObservable
PamguardMVC.PamDataBlock<T>
PamguardMVC.superdet.SuperDetDataBlock<T,PamDataUnit>
 
clickTrainDetector.ClickTrainDataBlock<T>
public class ClickTrainDataBlock<T extends CTDetectionGroupDataUnit>
extends SuperDetDataBlock<T,PamDataUnit> 
The click train detector data block. Holds all detected click trains in
 ClickTrainDataUnits which themselves contain a list of detected data units
 within a train.
- Author:
 - Jamie Macaulay
 
- 
Nested Class Summary
Nested classes/interfaces inherited from class PamguardMVC.superdet.SuperDetDataBlock
SuperDetDataBlock.ViewerLoadPolicy - 
Field Summary
Fields inherited from class PamguardMVC.PamDataBlock
ITERATOR_END, MATCH_AFTER, MATCH_BEFORE, MATCH_EXACT, MIX_DONOTHING, MIX_INTODATABASE, MIX_OUTOFDATABASE, naturalLifetime, NOTIFY_NEW_DATA, NOTIFY_UPDATE_DATA, pamDataUnits, parentProcess, POSITION_AFTER, POSITION_BEFORE, REFERENCE_ABSOLUTE, REFERENCE_CURRENT, REQUEST_DATA_LOADED, REQUEST_DATA_PARTIAL_LOAD, REQUEST_EXCEPTION, REQUEST_INTERRUPTED, REQUEST_NO_DATA, REQUEST_SAME_REQUEST, unitsAdded, unitsRemoved, unitsUpdatedFields inherited from class PamguardMVC.PamObservable
masterClockSample, objectChanged, overlayDraw, pamProfiler - 
Constructor Summary
ConstructorsConstructorDescriptionClickTrainDataBlock(ClickTrainControl clickTrainControl, PamProcess parentProcess, String name, int channelMap)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddPamData(T pamDataUnit) Adds a new PamDataUnit to the PamDataBlock.voidaddPamData(T pamDataUnit, Long uid) Adds a new PamDataUnit to the PamDataBlock and force the UID to a specific value.Get the click train control.Get information about species types that may occur within this data block.floatgetTethysDataProvider(TethysControl tethysControl) Gets a data provider for Tethys.booleanloadViewerData(OfflineDataLoadInfo offlineDataLoadInfo, ViewLoadObserver loadObserver) Instruction from the viewer scroll manager to load new data.booleanneedViewerDataLoad(OfflineDataLoadInfo offlineDataLoadInfo) Do we need to reload offline data ? Default behaviour is to reurn true if the time periods of the data load have changed, false otherwise.booleanSaves data in this data block in offline viewer mode.booleanvoidupdatePamData(T pamDataUnit, long updateTimeMillis) update a dataunit.Methods inherited from class PamguardMVC.superdet.SuperDetDataBlock
canSuperDetection, clearOnViewerLoad, dummyClassResolve, findSubDetDataBlock, getLogging, getSubDetectionClass, getSubtableData, getViewerLoadPolicy, makeSubDetectionInfo, reattachAllSubDetections, reattachSubdetections, setSubtableData, setViewerLoadPolicyMethods inherited from class PamguardMVC.PamDataBlock
addDataAnnotationType, addLocalisationContents, addObserver, addObserver, addOfflineDataMap, addOldPamData, autoEffortProvider, autoSetDataBlockMixMode, cancelDataOrder, cancelDataOrder, checkOfflineDataUIDs, clearAll, clearAll, clearChannelIterators, clearDeletedList, copyDataList, createProcessAnnotations, createProcessAnnotations, dispose, dumpBlockContents, dumpBufferStatus, findAnnotation, findAnnotation, findByDatabaseIndex, findDataUnit, findDataUnit, findFirstUnitAfter, findLastUnitBefore, findUnitByUIDandUTC, findUnitsinInterval, getAbsoluteDataUnit, getAnnotationHandler, getARealChannel, getBackgroundManager, getBespokeDataMapGraphic, getBinaryDataSource, getCanLog, getChannelIterator, getChannelIteratorCount, getChannelMap, getChannelsForSequenceMap, getClosestUnitMillis, getClosestUnitMillis, getClosestUnitMillisUsingSeq, getCrossReferenceInformation, getCumulativeGain, getCurrentViewDataEnd, getCurrentViewDataStart, getDataAutomationInfo, getDataBlockXML, getDataCopy, getDataCopy, getDataCopy, getDataCopy, getDataCopyFromEnd, getDataCopyFromStart, getDataGain, getDatagrammedMap, getDatagramProvider, getDataName, getDataSelector, getDataSelector, getDataSelector, getDataUnit, getDataUnitMenuItems, getDataUnitPopupMenu, getDurationRange, getEffortProvider, getFirstRawSourceDataBlock, getFirstUnit, getFirstUnit, getFirstUnitAfter, getFirstViewerUID, getFrequencyRange, getHydrophoneMap, getJSONDataSource, getLastUnit, getLastUnit, getLastUnitMillis, getLastViewerUID, getListIterator, getListIterator, getListIteratorFromEnd, getListIteratorFromStart, getLocalisationAlgorithm, getLocalisationContents, getLoggingName, getLongDataName, getMixedDirection, getMyDataUnits, getNanoTimeCalculator, getNaturalLifetime, getNaturalLifetimeMillis, getNextDataStart, getNextUnit, getNextUnit, getNumOfflineDataMaps, getNumRequiredBeforeLoadTime, getOfflineData, getOfflineDataMap, getOfflineDataMap, getPamConfiguration, getPamSymbolManager, getParentProcess, getPreceedingUnit, getPreceedingUnit, getPreceedingUnit, getPreceedingUnit, getPreceedingUnitFromSeq, getPreceedingUnitFromSeq, getPrevDataEnd, getPrimaryDataMap, getProcessAnnotations, getQuickId, getQuickId2, getRawSourceDataBlock, getRawSourceDataBlock2, getRecordingTrigger, getRecycledUnit, getRecyclingStoreLength, getRemovedItems, getReverseChannelIterator, getSaveRequirements, getSequenceCount, getSequenceIterator, getSequenceMap, getSequenceMapObject, getShouldBinary, getShouldLog, getShouldLog, getSourceDataBlock, getSourceProcess, getSuperDetectionClass, getSynchLock, getTaskDataCopy, getTOADCalculator, getUidHandler, getUIDRepairLogging, getUniqueParentList, getUnitClass, getUnitIndex, getUnitsCount, getUnitsCountFromTime, hasDataRange, isCanClipGenerate, isClearAtStart, isLinkGpsData, isOffline, isRecycling, loadViewerData, masterClockUpdate, noteNewSettings, notifyModelChanged, notifyOfflineObservers, orderOfflineData, orderOfflineData, orderOfflineData, pamStart, pamStop, remove, remove, remove, removedDataUnit, removeOfflineDataMap, removeOldUnitsS, removeOldUnitsT, reset, setAnnotationHandler, setBackgroundManager, setBinaryDataSource, setCanClipGenerate, setChannelMap, setClearAtStart, setCurrentViewDataEnd, setCurrentViewDataStart, setDatagramProvider, setDataName, setDataSelectCreator, setEffortProvider, setJSONDataSource, setLinkGpsData, setLocalisationContents, SetLogging, setMixedDirection, setNanoTimeCalculator, setNaturalLifetime, setNaturalLifetimeMillis, setPamSymbolManager, setParentProcess, setRecordingTrigger, setRecycling, setRecyclingStoreLength, setSampleRate, setSequenceMap, setShouldBinary, setShouldLog, setSynchLock, setUidHandler, sortData, sortOutputMaps, stopTimer, toStringMethods inherited from class PamguardMVC.PamObservable
addInstantObserver, canDraw, canDraw, clearchanged, countObservers, createKeyItem, deleteObserver, deleteObservers, drawDataUnit, findThreadedObserver, getCPUPercent, getCPUPercent, getHoverText, getInstantObservers, getLongestObserver, getMaxThreadJitter, getOverlayDraw, getPamObserver, getPamObservers, getRequiredHistory, isInstantObserver, notifyInstantObservers, notifyNornalObservers, notifyObservers, notifyObservers, setChanged, setOverlayDraw, updateObservers, waitForThreadedObservers 
- 
Constructor Details
- 
ClickTrainDataBlock
public ClickTrainDataBlock(ClickTrainControl clickTrainControl, PamProcess parentProcess, String name, int channelMap)  
 - 
 - 
Method Details
- 
saveViewerData
public boolean saveViewerData()Description copied from class:PamDataBlockSaves data in this data block in offline viewer mode.- Overrides:
 saveViewerDatain classPamDataBlock<T extends CTDetectionGroupDataUnit>- Returns:
 - true if data found and saved.
 
 - 
loadViewerData
public boolean loadViewerData(OfflineDataLoadInfo offlineDataLoadInfo, ViewLoadObserver loadObserver) Description copied from class:PamDataBlockInstruction from the viewer scroll manager to load new data.- Overrides:
 loadViewerDatain classPamDataBlock<T extends CTDetectionGroupDataUnit>- Parameters:
 offlineDataLoadInfo- - the load object which contains all info on the data to be loaded.loadObserver- - the load observer. Can be used as a callback for load progress.
 - 
addPamData
Description copied from class:PamDataBlockAdds a new PamDataUnit to the PamDataBlock. When the data unit is added, PamObservers that have subscribed to the block will be notified.
If the data unit already has a UID, it will be left as is.- Overrides:
 addPamDatain classPamDataBlock<T extends CTDetectionGroupDataUnit>- Parameters:
 pamDataUnit- Reference to a PamDataUnit
 - 
addPamData
Description copied from class:PamDataBlockAdds a new PamDataUnit to the PamDataBlock and force the UID to a specific value. This should only be used in very specific circumstances - nromally, programmers should call addPamData(Tunit pamDataUnit) and let PAMGuard handle the UID's.- Overrides:
 addPamDatain classPamDataBlock<T extends CTDetectionGroupDataUnit>- Parameters:
 pamDataUnit- Reference to a PamDataUnituid- Unique identifier for data unit.
 - 
updatePamData
Description copied from class:PamDataBlockupdate a dataunit. Does little except flag that the data unit is updated (so it will get saved), and sends notifications to other modules.- Overrides:
 updatePamDatain classPamDataBlock<T extends CTDetectionGroupDataUnit>- Parameters:
 pamDataUnit-updateTimeMillis-
 - 
getSampleRate
public float getSampleRate()- Overrides:
 getSampleRatein classPamDataBlock<T extends CTDetectionGroupDataUnit>- Returns:
 - The sample rate of the data contained in the block
 
 - 
needViewerDataLoad
Description copied from class:PamDataBlockDo we need to reload offline data ? Default behaviour is to reurn true if the time periods of the data load have changed, false otherwise.- Overrides:
 needViewerDataLoadin classPamDataBlock<T extends CTDetectionGroupDataUnit>- Parameters:
 offlineDataLoadInfo-- Returns:
 - true if we need to reload offline data.
 
 - 
shouldNotify
public boolean shouldNotify()- Overrides:
 shouldNotifyin classPamDataBlock<T extends CTDetectionGroupDataUnit>
 - 
getClickTrainControl
Get the click train control.- Returns:
 - the click train control.
 
 - 
getDataSelectCreator
- Overrides:
 getDataSelectCreatorin classPamDataBlock<T extends CTDetectionGroupDataUnit>- Returns:
 - an object that can create data selectors to sub select data from within this type of data block.
 
 - 
getDatablockSpeciesManager
Description copied from class:PamDataBlockGet information about species types that may occur within this data block. Primarily for conversion into Tethys compatible data, but may prove to have other uses.- Overrides:
 getDatablockSpeciesManagerin classPamDataBlock<T extends CTDetectionGroupDataUnit>- Returns:
 - Types of species information available within this datablock.
 
 - 
getTethysDataProvider
Description copied from class:PamDataBlockGets a data provider for Tethys. These will probably need to be bespoke, but for now will autogenerate based on the SQLLogging information.- Overrides:
 getTethysDataProviderin classPamDataBlock<T extends CTDetectionGroupDataUnit>- Returns:
 - the tethysDataProvider
 
 
 -