Package whistlesAndMoans
Class ConnectedRegionDataBlock
java.lang.Object
PamguardMVC.PamObservable
PamguardMVC.PamDataBlock<Tunit>
PamguardMVC.AcousticDataBlock<T>
whistlesAndMoans.AbstractWhistleDataBlock<ConnectedRegionDataUnit>
whistlesAndMoans.ConnectedRegionDataBlock
- All Implemented Interfaces:
AlarmDataSource
,FFTDataHolderBlock
,GroupedDataSource
public class ConnectedRegionDataBlock
extends AbstractWhistleDataBlock<ConnectedRegionDataUnit>
implements AlarmDataSource, GroupedDataSource, FFTDataHolderBlock
-
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
ConstructorDescriptionConnectedRegionDataBlock
(String dataName, WhistleMoanControl whistleMoanControl, WhistleToneConnectProcess parentProcess, int channelMap) -
Method Summary
Modifier and TypeMethodDescriptionGet an alarmCounterProvider which can then generate any number of alarm counters for a datablock.Get the level of automation employed by the generation of these data.Get information about species types that may occur within this data block.double[]
Get the nominal range of durations of sounds that might be detected by this detector (if applicable).int[]
Return the fft parameters in the following format: int[0] = fft length int[1] = fft hopgetTethysDataProvider
(TethysControl tethysControl) Gets a data provider for Tethys.Methods inherited from class whistlesAndMoans.AbstractWhistleDataBlock
binsToHz, binsToSeconds, getFftHop, getFftLength, setFftHop, setFftLength
Methods inherited from class PamguardMVC.AcousticDataBlock
getChannelListManager, getDataBlockXML, getParentSourceData, notifyModelChanged
Methods inherited from class PamguardMVC.PamDataBlock
addDataAnnotationType, addLocalisationContents, addObserver, addObserver, addOfflineDataMap, addOldPamData, addPamData, addPamData, autoEffortProvider, autoSetDataBlockMixMode, cancelDataOrder, cancelDataOrder, checkOfflineDataUIDs, clearAll, clearChannelIterators, clearDeletedList, clearOnViewerLoad, 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, getDataCopy, getDataCopy, getDataCopy, getDataCopy, getDataCopyFromEnd, getDataCopyFromStart, getDataGain, getDatagrammedMap, getDatagramProvider, getDataName, getDataSelector, getDataSelector, getDataSelector, getDataUnit, getDataUnitMenuItems, getDataUnitPopupMenu, getEffortProvider, getFirstRawSourceDataBlock, getFirstUnit, getFirstUnit, getFirstUnitAfter, getFirstViewerUID, getFrequencyRange, getHydrophoneMap, getJSONDataSource, getLastUnit, getLastUnit, getLastUnitMillis, getLastViewerUID, getListIterator, getListIterator, getListIteratorFromEnd, getListIteratorFromStart, getLocalisationAlgorithm, getLocalisationContents, getLogging, getLoggingName, getLongDataName, getMixedDirection, getMyDataUnits, getNanoTimeCalculator, getNaturalLifetime, getNaturalLifetimeMillis, getNextDataStart, getNextUnit, getNextUnit, getNumOfflineDataMaps, getNumRequiredBeforeLoadTime, getOfflineData, getOfflineDataMap, getOfflineDataMap, getPamSymbolManager, 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, getUidHandler, getUIDRepairLogging, getUniqueParentList, getUnitClass, getUnitIndex, getUnitsCount, getUnitsCountFromTime, hasDataRange, isCanClipGenerate, isClearAtStart, isLinkGpsData, isOffline, isRecycling, loadViewerData, loadViewerData, masterClockUpdate, needViewerDataLoad, noteNewSettings, orderOfflineData, orderOfflineData, orderOfflineData, pamStart, pamStop, remove, remove, remove, removeOfflineDataMap, reset, saveViewerData, 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, updatePamData
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
-
ConnectedRegionDataBlock
public ConnectedRegionDataBlock(String dataName, WhistleMoanControl whistleMoanControl, WhistleToneConnectProcess parentProcess, int channelMap)
-
-
Method Details
-
getParentProcess
- Overrides:
getParentProcess
in classPamDataBlock<ConnectedRegionDataUnit>
- Returns:
- Returns the parentProcess.
-
getAlarmCounterProvider
Description copied from interface:AlarmDataSource
Get an alarmCounterProvider which can then generate any number of alarm counters for a datablock.- Specified by:
getAlarmCounterProvider
in interfaceAlarmDataSource
- Returns:
- alarm Counter provider for that control. This more complicated system enables multiple alarms to be hung off the same data block.
-
getDataSelectCreator
- Overrides:
getDataSelectCreator
in classPamDataBlock<ConnectedRegionDataUnit>
- Returns:
- an object that can create data selectors to sub select data from within this type of data block.
-
getGroupSourceParameters
- Specified by:
getGroupSourceParameters
in interfaceGroupedDataSource
- Returns:
- the current group source parameters for this data source.
-
getTOADCalculator
- Overrides:
getTOADCalculator
in classPamDataBlock<ConnectedRegionDataUnit>
- Returns:
- A calculator for Time of Arrival Difference Calculations
-
getDurationRange
public double[] getDurationRange()Description copied from class:PamDataBlock
Get the nominal range of durations of sounds that might be detected by this detector (if applicable). This is pretty crude, but will give an indication of which detectors might work with which types of sound.
can return null, 0 and Double.Infinity are also acceptable values.- Overrides:
getDurationRange
in classPamDataBlock<ConnectedRegionDataUnit>
- Returns:
- duration range in seconds of sounds this detector can sensibly detect
-
getFFTparams
public int[] getFFTparams()Description copied from interface:FFTDataHolderBlock
Return the fft parameters in the following format:- int[0] = fft length
- int[1] = fft hop
- Specified by:
getFFTparams
in interfaceFFTDataHolderBlock
- Returns:
- fft length and hop, respectively, in an int array
-
getDatablockSpeciesManager
Description copied from class:PamDataBlock
Get 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:
getDatablockSpeciesManager
in classPamDataBlock<ConnectedRegionDataUnit>
- Returns:
- Types of species information available within this datablock.
-
getTethysDataProvider
Description copied from class:PamDataBlock
Gets a data provider for Tethys. These will probably need to be bespoke, but for now will autogenerate based on the SQLLogging information.- Overrides:
getTethysDataProvider
in classPamDataBlock<ConnectedRegionDataUnit>
- Returns:
- the tethysDataProvider
-
getDataAutomationInfo
Description copied from class:PamDataBlock
Get the level of automation employed by the generation of these data. Should ideally be completed for everything providing data to Tethys.- Overrides:
getDataAutomationInfo
in classPamDataBlock<ConnectedRegionDataUnit>
- Returns:
- level of automation for this data block.
-