Class QATestSet

java.lang.Object
qa.generator.testset.QATestSet
Direct Known Subclasses:
SimpleTestSet, ViewerTestSet

public abstract class QATestSet extends Object
  • Field Details

    • STATUS_ACTIVE

      public static String STATUS_ACTIVE
    • STATUS_COMPLETE

      public static String STATUS_COMPLETE
    • STATUS_CANCELLED

      public static String STATUS_CANCELLED
    • STATUS_IDLE

      public static String STATUS_IDLE
  • Constructor Details

  • Method Details

    • getSampleRate

      public double getSampleRate()
      Returns:
      the sampleRate
    • isFinsihed

      public abstract boolean isFinsihed(long currentSample)
      Parameters:
      currentSample - current daq sample.
      Returns:
      true when the test is complete so that it can be removed from test lists.
    • getNextSequence

      public abstract SoundSequence getNextSequence(long startSample, LatLong currentLocation)
      Get the next sequence of sounds. Will return null unless it's the right time to generate a new sequence
      Parameters:
      startSample - end sample in latest arriving raw data
      currentLocation - current reference location for tests.
      Returns:
      a new sound sequence or null.
    • getNumSequences

      public abstract int getNumSequences()
      Get the number of sequences in the test. This is the number that have actually been generated, not the number planned.
      Returns:
      Number of sequences generated so far.
    • getVersion

      public abstract String getVersion()
      Get a version number for the test set.
      Returns:
    • getEndTime

      public Long getEndTime()
      Returns:
      the endTime
    • setEndTime

      public void setEndTime(Long endTime)
      Parameters:
      endTime - the endTime to set
    • getTestName

      public String getTestName()
      Returns:
      the testName
    • getTestDataUnit

      public QATestDataUnit getTestDataUnit()
      Returns:
      the testDataUnit
    • setTestDataUnit

      public void setTestDataUnit(QATestDataUnit testDataUnit)
      Parameters:
      testDataUnit - the testDataUnit to set
    • getQaCluster

      public QACluster getQaCluster()
      Returns:
      the qaCluster
    • setQaCluster

      public void setQaCluster(QACluster qaCluster)
      Parameters:
      qaCluster - the qaCluster to set
    • getStatus

      public String getStatus()
      Returns:
      the status
    • setStatus

      public void setStatus(String status)
      Parameters:
      status - the status to set
    • cancelTest

      public void cancelTest()
    • getLocationGenerator

      public QALocationGenerator getLocationGenerator()
      Returns:
      the locationGenerator