Package qa.generator.sequence
Class SoundSequence
java.lang.Object
qa.generator.sequence.SoundSequence
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 Summary
ConstructorsConstructorDescriptionSoundSequence(QATestSet qaTestSet, LatLong location, LatLong rxLocation, ArrayList<SequenceData> sequence)  - 
Method Summary
Modifier and TypeMethodDescriptionlonggetNext(long maxSample) Get the information for the next sound in the sequence.intlongbooleanisFinished(long currentSample) voidsetEndSample(long endSample) voidsetQaTestSet(QATestSet qaTestSet) voidsetRxLocation(LatLong rxLocation) voidsetSequenceDataUnit(QASequenceDataUnit sequenceDataUnit) Set the sequence data unit.voidsetSourceLocation(LatLong location) voidsetStartSample(long startSample)  
- 
Constructor Details
- 
SoundSequence
public SoundSequence(QATestSet qaTestSet, LatLong location, LatLong rxLocation, ArrayList<SequenceData> sequence)  
 - 
 - 
Method Details
- 
getNext
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
- Returns:
 - the qaTestSet
 
 - 
setQaTestSet
- Parameters:
 qaTestSet- the qaTestSet to set
 - 
getSourceLocation
- Returns:
 - the location
 
 - 
setSourceLocation
- Parameters:
 location- the location to set
 - 
getRxLocation
- Returns:
 - the rxLocation
 
 - 
setRxLocation
- Parameters:
 rxLocation- the rxLocation to set
 - 
setSequenceDataUnit
Set the sequence data unit.- Parameters:
 sequenceDataUnit-
 - 
getSequenceDataUnit
- Returns:
 - the sequenceDataUnit
 
 
 -