Class LongRandomTestSet


public class LongRandomTestSet extends SimpleTestSet
  • Constructor Details

    • LongRandomTestSet

      public LongRandomTestSet(QAControl qaControl, String testName, QALocationGenerator locationGenerator, QACluster qaCluster, double sampleRate, long currentSample)
      Generate a long term test set, which will basically go on for ever, repeating if it's sequenced, or continuing with random or smart generated sequences. .
      Parameters:
      testName -
      locationGenerator -
      qaCluster -
      sampleRate -
      randomInterval - Random interval between sequences in seconds.
  • Method Details

    • resetNextSample

      public void resetNextSample(long currentSample, double sampleRate)
    • isFinsihed

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

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

      public String getVersion()
      Description copied from class: QATestSet
      Get a version number for the test set.
      Overrides:
      getVersion in class SimpleTestSet
      Returns: