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

  • Method Details Link icon

    • getNext Link icon

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

      public boolean isFinished(long currentSample)
    • getStartSample Link icon

      public long getStartSample()
      Returns:
      the startSample
    • setStartSample Link icon

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

      public long getEndSample()
      Returns:
      the endSample
    • setEndSample Link icon

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

      public int getnSounds()
      Returns:
      the nSounds
    • getQaTestSet Link icon

      public QATestSet getQaTestSet()
      Returns:
      the qaTestSet
    • setQaTestSet Link icon

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

      public LatLong getSourceLocation()
      Returns:
      the location
    • setSourceLocation Link icon

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

      public LatLong getRxLocation()
      Returns:
      the rxLocation
    • setRxLocation Link icon

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

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

      public QASequenceDataUnit getSequenceDataUnit()
      Returns:
      the sequenceDataUnit