whistleDetector
Class EventDataUnit

java.lang.Object
  extended by PamguardMVC.PamDataUnit
      extended by PamDetection.AcousticDataUnit
          extended by PamDetection.PamDetection<ShapeDataUnit,PamDetection>
              extended by whistleDetector.EventDataUnit
All Implemented Interfaces:
java.lang.Comparable<PamDataUnit>

public class EventDataUnit
extends PamDetection<ShapeDataUnit,PamDetection>


Field Summary
 long endTimeMillis
           
 long startTimeMillis
           
 int status
           
static int STATUS_CLOSED
           
static int STATUS_OPEN
           
 
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
EventDataUnit(ShapeDataUnit wslShape)
           
 
Method Summary
 void addWhistle(ShapeDataUnit wslShape)
           
 long getDuration()
           
 int getStatus()
           
 int getWhistleCount()
           
 void setStatus(int status)
           
 
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, 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
 

Field Detail

STATUS_OPEN

public static final int STATUS_OPEN
See Also:
Constant Field Values

STATUS_CLOSED

public static final int STATUS_CLOSED
See Also:
Constant Field Values

startTimeMillis

public long startTimeMillis

endTimeMillis

public long endTimeMillis

status

public int status
Constructor Detail

EventDataUnit

EventDataUnit(ShapeDataUnit wslShape)
Method Detail

addWhistle

public void addWhistle(ShapeDataUnit wslShape)

getWhistleCount

public int getWhistleCount()

getDuration

public long getDuration()
Overrides:
getDuration in class AcousticDataUnit
Returns:
the length of the acoustic data in samples

getStatus

public int getStatus()

setStatus

public void setStatus(int status)