Package qa

Class QASoundDataUnit

All Implemented Interfaces:
Comparable, AcousticDataUnit

public class QASoundDataUnit extends QADataUnit implements AcousticDataUnit
  • Field Details

  • Constructor Details

    • QASoundDataUnit

      public QASoundDataUnit(SoundSequence soundSequence, SequenceData sequenceData, long timeMilliseconds, int channelBitmap, long startSample, QASound qaSound, double receivedLevel)
  • Method Details

    • getStandardSound

      public QASound getStandardSound()
      Returns:
      the standardSound
    • getState

      public int getState()
      Returns:
      the state
    • setState

      public void setState(int state)
      Parameters:
      state - the state to set
    • getMultiPath

      public int getMultiPath()
      Returns:
      the multiPath
    • setMultiPath

      public void setMultiPath(int multiPath)
      Parameters:
      multiPath - the multiPath to set
    • getFirstSample

      public long getFirstSample()
      Returns:
      the firstSample
    • getLastSample

      public long getLastSample()
      Description copied from class: PamDataUnit
      get the last sample number in the data unit
      Overrides:
      getLastSample in class PamDataUnit
      Returns:
      the lastSample
    • setArrivalMillis

      public void setArrivalMillis(long arrivalStartMillis, long arrivalEndMillis)
    • getArrivalStartMillis

      public long getArrivalStartMillis()
      Returns:
      the arrivalStartMillis
    • setArrivalStartMillis

      public void setArrivalStartMillis(long arrivalStartMillis)
      Parameters:
      arrivalStartMillis - the arrivalStartMillis to set
    • getArrivalEndMillis

      public long getArrivalEndMillis()
      Returns:
      the arrivalEndMillis
    • setArrivalEndMillis

      public void setArrivalEndMillis(long arrivalEndMillis)
      Parameters:
      arrivalEndMillis - the arrivalEndMillis to set
    • setDetectorHit

      public boolean setDetectorHit(PamDataBlock dataBlock, PamDataUnit detection)
      Set 'hit' status for a detector.
      Parameters:
      dataBlock - datablock containing the detection
      detection - detection data unit.
      Returns:
      true if the underlying data were updated. false if they remained the same.
    • setDetectorHit

      public boolean setDetectorHit(PamDataBlock dataBlock, int channelMap)
      Set 'hit' status for a detector.
      Parameters:
      dataBlock - datablock containing the detection
      channelMap - detection channel map.
      Returns:
      true if the underlying data were updated. false if they remained the same.
    • getDetectorHit

      public int getDetectorHit(PamDataBlock dataBlock)
      Get whether or not this simulated data has been detected by a particular detector.
      Parameters:
      dataBlock - datablock for the detector
      Returns:
      0 if no detection, otherwise the UID of the detection.
    • getNumDetectorHits

      public int getNumDetectorHits()
    • getSourceLatLong

      public LatLong getSourceLatLong()
      Returns:
      the latLong
    • getReferenceLatLong

      public LatLong getReferenceLatLong()
      Returns:
      the referenceLatLong
    • getSoundSequence

      public SoundSequence getSoundSequence()
      Returns:
      the soundSequence
    • getSequenceData

      public SequenceData getSequenceData()
      Returns:
      the sequenceData
    • getReceivedLevel

      public double getReceivedLevel()
      Returns:
      the receivedLevel
    • getDistanceToAirgun

      public Double getDistanceToAirgun()
      Returns:
      the distanceToAirgun
    • setDistanceToAirgun

      public void setDistanceToAirgun(Double distanceToAirgun)
      Parameters:
      distanceToAirgun - the distanceToAirgun to set
    • getDistanceToHydrophone

      public Double getDistanceToHydrophone()
      Returns:
      the distanceToHydrophone
    • setDistanceToHydrophone

      public void setDistanceToHydrophone(Double distanceToHydrophone)
      Parameters:
      distanceToHydrophone - the distanceToHydrophone to set
    • toString

      public String toString()
      Overrides:
      toString in class Object