whistlesAndMoans
Class AbstractWhistleDataUnit

java.lang.Object
  extended by PamguardMVC.PamDataUnit
      extended by PamDetection.AcousticDataUnit
          extended by PamDetection.PamDetection<PamDetection,PamDetection>
              extended by whistlesAndMoans.AbstractWhistleDataUnit
All Implemented Interfaces:
java.lang.Comparable<PamDataUnit>, WhistleContour
Direct Known Subclasses:
ConnectedRegionDataUnit, ShapeDataUnit

public abstract class AbstractWhistleDataUnit
extends PamDetection<PamDetection,PamDetection>
implements WhistleContour


Field Summary
 
Fields inherited from class PamDetection.AcousticDataUnit
AMPLITUDE_SCALE_DBREMPA, AMPLITUDE_SCALE_LINREFSD, duration, frequency, startSample
 
Fields inherited from class PamguardMVC.PamDataUnit
absBlockIndex, channelBitmap, localisation, oLL, timeMilliseconds
 
Constructor Summary
AbstractWhistleDataUnit(long timeMilliseconds, int channelBitmap, long startSample, long duration)
           
 
Method Summary
abstract  double[] getFreqsHz()
          Get an array of the peak frequencies in Hz.
abstract  int getSliceCount()
          Get the total number of slices
abstract  double[] getTimesInSeconds()
          Get an array of the times of each slice in seconds
 
Methods inherited from class PamDetection.PamDetection
addSubDetection, addSuperDetection, getDetectionType, getPeakTime, getSubDetection, getSubDetectionsCount, getSubDetectionSyncronisation, getSuperDetection, getSuperDetection, getSuperDetectionsCount, getSuperDetectionSyncronisation, removeSubDetection, removeSuperDetection, setDetectionType, setPeakTime, setUniqueSuperDetection
 
Methods inherited from class PamDetection.AcousticDataUnit
amplifyMeasuredAmplitudeByDB, amplifyMeasuredAmplitudeByLinear, compareTo, getAmplitudeDB, getCalculatedAmlitudeDB, getDuration, getFrequency, getFrequencyOverlap, getLastSample, getMeasuredAmplitude, getMeasuredAmplitudeType, getSeconds, getStartSample, getTimeOverlap, setCalculatedAmlitudeDB, setDuration, setFrequency, setInfo, setMeasuredAmplitude, setMeasuredAmplitude, setMeasuredAmplitudeType, setStartSample
 
Methods inherited from class PamguardMVC.PamDataUnit
clearUpdateCount, getAbsBlockIndex, getChannelBitmap, getDatabaseIndex, getDatabaseUpdateOf, getDataUnitFileInformation, getGpsPosition, getLastUpdateTime, getLocalisation, getOriginLatLong, getPairAngle, getParentDataBlock, getTimeMilliseconds, getUpdateCount, setAbsBlockIndex, setChannelBitmap, setDatabaseIndex, setDatabaseUpdateOf, setDataUnitFileInformation, setLastUpdateTime, setLocalisation, setOriginLatLong, setParentDataBlock, setTimeMilliseconds, updateDataUnit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractWhistleDataUnit

public AbstractWhistleDataUnit(long timeMilliseconds,
                               int channelBitmap,
                               long startSample,
                               long duration)
Method Detail

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 interface WhistleContour
Returns:
times in seconds

getFreqsHz

public abstract double[] getFreqsHz()
Get an array of the peak frequencies in Hz.

Specified by:
getFreqsHz in interface WhistleContour
Returns:
peak frequencies in Hz.