Class SoundSequence

java.lang.Object
qa.generator.sequence.SoundSequence

public class SoundSequence extends Object
Information about a sequence of sounds. This is an abstract class since the actual generator will have a number of different timing distributions on it's tail.
Author:
dg50
  • Constructor Details

  • Method Details

    • getNext

      public SequenceData getNext(long maxSample)
      Get the information for the next sound in the sequence. If the next sound comes after the max time, then null will be returned, otherwise the information on amplitude and timing of the next sound in the sequence
      Parameters:
      maxSample - Max sample number for start of sound to be generated
      Returns:
      generation data.
    • isFinished

      public boolean isFinished(long currentSample)
    • getStartSample

      public long getStartSample()
      Returns:
      the startSample
    • setStartSample

      public void setStartSample(long startSample)
      Parameters:
      startSample - the startSample to set
    • getEndSample

      public long getEndSample()
      Returns:
      the endSample
    • setEndSample

      public void setEndSample(long endSample)
      Parameters:
      endSample - the endSample to set
    • getnSounds

      public int getnSounds()
      Returns:
      the nSounds
    • getQaTestSet

      public QATestSet getQaTestSet()
      Returns:
      the qaTestSet
    • setQaTestSet

      public void setQaTestSet(QATestSet qaTestSet)
      Parameters:
      qaTestSet - the qaTestSet to set
    • getSourceLocation

      public LatLong getSourceLocation()
      Returns:
      the location
    • setSourceLocation

      public void setSourceLocation(LatLong location)
      Parameters:
      location - the location to set
    • getRxLocation

      public LatLong getRxLocation()
      Returns:
      the rxLocation
    • setRxLocation

      public void setRxLocation(LatLong rxLocation)
      Parameters:
      rxLocation - the rxLocation to set
    • setSequenceDataUnit

      public void setSequenceDataUnit(QASequenceDataUnit sequenceDataUnit)
      Set the sequence data unit.
      Parameters:
      sequenceDataUnit -
    • getSequenceDataUnit

      public QASequenceDataUnit getSequenceDataUnit()
      Returns:
      the sequenceDataUnit