Package qa

Class QASequenceDataUnit

All Implemented Interfaces:
Comparable<PamDataUnit>

public class QASequenceDataUnit extends QADataUnit<QASoundDataUnit,QATestDataUnit>
  • Constructor Details

    • QASequenceDataUnit

      public QASequenceDataUnit(long timeMilliseconds, SoundSequence soundSequence)
  • Method Details

    • getSoundSequence

      public SoundSequence getSoundSequence()
      Returns:
      the soundSequence
    • setSoundSequence

      public void setSoundSequence(SoundSequence soundSequence)
      Parameters:
      soundSequence - the soundSequence to set
    • 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
    • getFractionDetected

      public double getFractionDetected()
      Calculate the percentage of QASounds that have been detected in this sequence
      Returns:
      the percentage detected. Note that if there are no sounds yet, a 0 is returned
    • toString

      public String toString()
      Overrides:
      toString in class Object