Package whistlesAndMoans
Class AbstractWhistleDataUnit
- All Implemented Interfaces:
Comparable<PamDataUnit>
,PamDetection
,AcousticDataUnit
,WhistleContour
- Direct Known Subclasses:
ConnectedRegionDataUnit
,DelphinIDUtils.WhistleContourMAT
,RWEDataUnit
,ShapeDataUnit
public abstract class AbstractWhistleDataUnit
extends PamDataUnit<PamDataUnit,PamDataUnit>
implements WhistleContour, PamDetection
-
Constructor Summary
ConstructorDescriptionAbstractWhistleDataUnit
(long timeMilliseconds, int channelBitmap, long startSample, long duration) AbstractWhistleDataUnit
(DataUnitBaseData basicData) -
Method Summary
Modifier and TypeMethodDescriptionabstract double[]
Get an array of the peak frequencies in Hz.abstract int
Get the total number of slicesabstract double[]
Get an array of the times of each slice in secondsMethods inherited from class PamguardMVC.PamDataUnit
addDataAnnotation, addSuperDetection, amplifyMeasuredAmplitudeByDB, amplifyMeasuredAmplitudeByLinear, calcSnapshotGeometry, clearOandAngles, clearUpdateCount, compareTo, findDataAnnotation, findDataAnnotation, freeData, getAbsBlockIndex, getAmplitudeDB, getAnnotationsSummaryString, getBasicData, getCalculatedAmlitudeDB, getChannelBitmap, getColourIndex, getDataAnnotation, getDatabaseIndex, getDatabaseUpdateOf, getDataUnitFileInformation, getDataUnitPopupMenu, getDurationInMilliseconds, getEndTimeInMilliseconds, getFrequency, getFrequencyOverlap, getHydrophoneBitmap, getHydrophoneHeading, getLastChangeTime, getLastSample, getLastUpdateTime, getLocalisation, getMeasuredAmplitude, getMeasuredAmplitudeType, getNoiseBackground, getNumDataAnnotations, getOriginLatLong, getParentDataBlock, getSampleDuration, getSampleDurationAsInt, getSeconds, getSequenceBitmap, getSequenceBitmapObject, getSignalExcess, getSignalSPL, getSnapshotGeometry, getStartSample, getSummaryString, getSuperDetection, getSuperDetection, getSuperDetection, getSuperDetection, getSuperDetection, getSuperDetectionsCount, getSuperDetectionSyncronisation, getSuperId, getTimeDelaysSeconds, getTimeMilliseconds, getTimeNanoseconds, getTimeOverlap, getUID, getUpdateCount, isEmbryonic, isForceAmpRecalc, linAmplitudeToDB, removeDataAnnotation, removeDataAnnotation, removeSuperDetection, setAbsBlockIndex, setCalculatedAmlitudeDB, setChannelBitmap, setDatabaseIndex, setDatabaseUpdateOf, setDataUnitFileInformation, setDurationInMilliseconds, setEmbryonic, setForceAmpRecalc, setFrequency, setInfo, setLastUpdateTime, setLocalisation, setMeasuredAmpAndType, setMeasuredAmplitude, setMeasuredAmplitudeType, setNoiseBackground, setParentDataBlock, setSampleDuration, setSequenceBitmap, setSignalExcess, setSignalSPL, setSnapshotGeometry, setStartSample, setTimeDelaysSeconds, setTimeMilliseconds, setUID, setUniqueSuperDetection, sortOutputMaps, updateDataUnit
-
Constructor Details
-
AbstractWhistleDataUnit
public AbstractWhistleDataUnit(long timeMilliseconds, int channelBitmap, long startSample, long duration) -
AbstractWhistleDataUnit
-
-
Method Details
-
getSliceCount
public abstract int getSliceCount()Get the total number of slices- Returns:
- total number of slices
-
getTimesInSeconds
public abstract double[] getTimesInSeconds()Get an array of the times of each slice in seconds- Specified by:
getTimesInSeconds
in interfaceWhistleContour
- Returns:
- times in seconds
-
getFreqsHz
public abstract double[] getFreqsHz()Get an array of the peak frequencies in Hz.- Specified by:
getFreqsHz
in interfaceWhistleContour
- Returns:
- peak frequencies in Hz.
-