Package qa

Class QASequenceDataUnit

All Implemented Interfaces:
Comparable<PamDataUnit>

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

    • QASequenceDataUnit Link icon

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

    • getSoundSequence Link icon

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

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

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

      public String toString()
      Overrides:
      toString in class Object