Package qa

Class QASoundDataUnit

All Implemented Interfaces:
Comparable, AcousticDataUnit

public class QASoundDataUnit extends QADataUnit implements AcousticDataUnit
  • Field Details Link icon

  • Constructor Details Link icon

    • QASoundDataUnit Link icon

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

    • getStandardSound Link icon

      public QASound getStandardSound()
      Returns:
      the standardSound
    • getState Link icon

      public int getState()
      Returns:
      the state
    • setState Link icon

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

      public int getMultiPath()
      Returns:
      the multiPath
    • setMultiPath Link icon

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

      public long getFirstSample()
      Returns:
      the firstSample
    • getLastSample Link icon

      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 Link icon

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

      public long getArrivalStartMillis()
      Returns:
      the arrivalStartMillis
    • setArrivalStartMillis Link icon

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

      public long getArrivalEndMillis()
      Returns:
      the arrivalEndMillis
    • setArrivalEndMillis Link icon

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

      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 Link icon

      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 Link icon

      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 Link icon

      public int getNumDetectorHits()
    • getSourceLatLong Link icon

      public LatLong getSourceLatLong()
      Returns:
      the latLong
    • getReferenceLatLong Link icon

      public LatLong getReferenceLatLong()
      Returns:
      the referenceLatLong
    • getSoundSequence Link icon

      public SoundSequence getSoundSequence()
      Returns:
      the soundSequence
    • getSequenceData Link icon

      public SequenceData getSequenceData()
      Returns:
      the sequenceData
    • getReceivedLevel Link icon

      public double getReceivedLevel()
      Returns:
      the receivedLevel
    • getDistanceToAirgun Link icon

      public Double getDistanceToAirgun()
      Returns:
      the distanceToAirgun
    • setDistanceToAirgun Link icon

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

      public Double getDistanceToHydrophone()
      Returns:
      the distanceToHydrophone
    • setDistanceToHydrophone Link icon

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

      public String toString()
      Overrides:
      toString in class Object