Package detectiongrouplocaliser
Class DetectionGroupDataBlock
java.lang.Object
PamguardMVC.PamObservable
PamguardMVC.PamDataBlock<Tunit>
PamguardMVC.superdet.SuperDetDataBlock<DetectionGroupDataUnit,PamDataUnit>
detectiongrouplocaliser.DetectionGroupDataBlock
-
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, NOTIFY_NEW_DATA, NOTIFY_UPDATE_DATA, 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
-
Constructor Summary
ConstructorDescriptionDetectionGroupDataBlock
(String dataName, DetectionGroupProcess detectionGroupProcess) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPamData
(DetectionGroupDataUnit pamDataUnit) Adds a new PamDataUnit to the PamDataBlock.void
addPamData
(DetectionGroupDataUnit pamDataUnit, Long uid) Adds a new PamDataUnit to the PamDataBlock and force the UID to a specific value.boolean
canSuperDetection
(PamDataBlock subDataBlock) Return whether this type of super detection can hold the passed sub detection data.void
clearAll()
Clears all PamDataUnits from memoryboolean
needViewerDataLoad
(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.boolean
Saves data in this data block in offline viewer mode.void
updatePamData
(DetectionGroupDataUnit pamDataUnit, long updateTimeMillis) update a dataunit.Methods inherited from class PamguardMVC.superdet.SuperDetDataBlock
clearOnViewerLoad, dummyClassResolve, findSubDetDataBlock, getLogging, getSubDetectionClass, getSubtableData, getViewerLoadPolicy, makeSubDetectionInfo, reattachSubdetections, setSubtableData, setViewerLoadPolicy
Methods inherited from class PamguardMVC.PamDataBlock
addDataAnnotationType, addLocalisationContents, addObserver, addObserver, addOfflineDataMap, addOldPamData, autoEffortProvider, autoSetDataBlockMixMode, cancelDataOrder, cancelDataOrder, checkOfflineDataUIDs, clearChannelIterators, clearDeletedList, copyDataList, createProcessAnnotations, createProcessAnnotations, dispose, dumpBlockContents, dumpBufferStatus, findAnnotation, findAnnotation, findByDatabaseIndex, findDataUnit, findDataUnit, findFirstUnitAfter, findLastUnitBefore, findUnitByUIDandUTC, findUnitsinInterval, getAnnotationHandler, getARealChannel, getBackgroundManager, getBespokeDataMapGraphic, getBinaryDataSource, getCanLog, getChannelIterator, getChannelIteratorCount, getChannelMap, getChannelsForSequenceMap, getClosestUnitMillis, getClosestUnitMillis, getClosestUnitMillisUsingSeq, getCrossReferenceInformation, getCumulativeGain, getCurrentViewDataEnd, getCurrentViewDataStart, getDataAutomationInfo, getDatablockSpeciesManager, getDataBlockXML, getDataCopy, getDataCopy, getDataCopy, getDataCopy, getDataCopyFromEnd, getDataCopyFromStart, getDataGain, getDatagrammedMap, getDatagramProvider, getDataName, getDataSelectCreator, 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, getPamSymbolManager, getParentProcess, getPreceedingUnit, getPreceedingUnit, getPreceedingUnit, getPreceedingUnit, getPreceedingUnitFromSeq, getPreceedingUnitFromSeq, getPrevDataEnd, getPrimaryDataMap, getProcessAnnotations, getQuickId, getQuickId2, getRawSourceDataBlock, getRawSourceDataBlock2, getRecordingTrigger, getRecycledUnit, getRecyclingStoreLength, getRemovedItems, getReverseChannelIterator, getSampleRate, getSaveRequirements, getSequenceCount, getSequenceIterator, getSequenceMap, getSequenceMapObject, getShouldBinary, getShouldLog, getShouldLog, getSourceDataBlock, getSourceProcess, getSuperDetectionClass, getSynchLock, getTethysDataProvider, getTOADCalculator, getUidHandler, getUIDRepairLogging, getUniqueParentList, getUnitClass, getUnitIndex, getUnitsCount, getUnitsCountFromTime, hasDataRange, isCanClipGenerate, isClearAtStart, isLinkGpsData, isOffline, isRecycling, loadViewerData, loadViewerData, masterClockUpdate, noteNewSettings, notifyModelChanged, orderOfflineData, orderOfflineData, orderOfflineData, pamStart, pamStop, remove, remove, remove, removeOfflineDataMap, reset, setAnnotationHandler, setBackgroundManager, setBinaryDataSource, setCanClipGenerate, setChannelMap, setClearAtStart, setDatagramProvider, setDataName, setDataSelectCreator, setJSONDataSource, setLinkGpsData, setLocalisationContents, SetLogging, setMixedDirection, setNanoTimeCalculator, setNaturalLifetime, setNaturalLifetimeMillis, setPamSymbolManager, setParentProcess, setRecordingTrigger, setRecycling, setRecyclingStoreLength, setSampleRate, setSequenceMap, setShouldBinary, setShouldLog, setSynchLock, setUidHandler, shouldNotify, sortData, sortOutputMaps, stopTimer, toString
Methods inherited from class PamguardMVC.PamObservable
addInstantObserver, canDraw, canDraw, clearchanged, countObservers, createKeyItem, deleteObserver, deleteObservers, drawDataUnit, findThreadedObserver, getCPUPercent, getCPUPercent, getHoverText, getLongestObserver, getMaxThreadJitter, getOverlayDraw, getPamObserver, getRequiredHistory, isInstantObserver, notifyInstantObservers, notifyNornalObservers, notifyObservers, notifyObservers, setChanged, setOverlayDraw, updateObservers, waitForThreadedObservers
-
Constructor Details
-
DetectionGroupDataBlock
-
-
Method Details
-
saveViewerData
public boolean saveViewerData()Description copied from class:PamDataBlock
Saves data in this data block in offline viewer mode.- Overrides:
saveViewerData
in classPamDataBlock<DetectionGroupDataUnit>
- Returns:
- true if data found and saved.
-
addPamData
Description copied from class:PamDataBlock
Adds 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:
addPamData
in classPamDataBlock<DetectionGroupDataUnit>
- Parameters:
pamDataUnit
- Reference to a PamDataUnit
-
addPamData
Description copied from class:PamDataBlock
Adds 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:
addPamData
in classPamDataBlock<DetectionGroupDataUnit>
- Parameters:
pamDataUnit
- Reference to a PamDataUnituid
- Unique identifier for data unit.
-
updatePamData
Description copied from class:PamDataBlock
update a dataunit. Does little except flag that the data unit is updated (so it will get saved), and sends notifications to other modules.- Overrides:
updatePamData
in classPamDataBlock<DetectionGroupDataUnit>
-
needViewerDataLoad
Description copied from class:PamDataBlock
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.- Overrides:
needViewerDataLoad
in classPamDataBlock<DetectionGroupDataUnit>
- Returns:
- true if we need to reload offline data.
-
clearAll
public void clearAll()Description copied from class:PamDataBlock
Clears all PamDataUnits from memoryIn viewer mode, data are also re-saved.
- Overrides:
clearAll
in classPamDataBlock<DetectionGroupDataUnit>
-
canSuperDetection
Description copied from class:SuperDetDataBlock
Return whether this type of super detection can hold the passed sub detection data. Default is based on class compatibility, but some super det datablocks should override this if they only manage one stream of data.- Overrides:
canSuperDetection
in classSuperDetDataBlock<DetectionGroupDataUnit,
PamDataUnit> - Parameters:
subDataBlock
- Sub detection data block- Returns:
- true if this data can hold those sub data.
-