Package qa.generator.sequence
Class RandomSequenceGenerator
java.lang.Object
qa.generator.sequence.QASequenceGenerator
qa.generator.sequence.RandomSequenceGenerator
- Direct Known Subclasses:
DolphinSequenceGenerator
-
Constructor Summary
ConstructorDescriptionRandomSequenceGenerator
(QADistribution timeDistribution, QADistribution amplitudeDistribution, int nSounds) -
Method Summary
Modifier and TypeMethodDescriptioncreateSequence
(QATestSet qaTestSet, LatLong location, LatLong rxLocation, double sampleRate, long startSample) int
void
setAmplitudeDistribution
(QADistribution amplitudeDistribution) void
setnSounds
(int nSounds) void
setTimeDistribution
(QADistribution timeDistribution) Methods inherited from class qa.generator.sequence.QASequenceGenerator
getName
-
Constructor Details
-
RandomSequenceGenerator
public RandomSequenceGenerator(QADistribution timeDistribution, QADistribution amplitudeDistribution, int nSounds) - Parameters:
timeDistribution
-amplitudeDistribution
-nSounds
-
-
-
Method Details
-
createSequence
public SoundSequence createSequence(QATestSet qaTestSet, LatLong location, LatLong rxLocation, double sampleRate, long startSample) - Specified by:
createSequence
in classQASequenceGenerator
-
getTimeDistribution
- Returns:
- the timeDistribution
-
setTimeDistribution
- Parameters:
timeDistribution
- the timeDistribution to set
-
getAmplitudeDistribution
- Returns:
- the amplitudeDistribution
-
setAmplitudeDistribution
- Parameters:
amplitudeDistribution
- the amplitudeDistribution to set
-
getnSounds
public int getnSounds()- Specified by:
getnSounds
in classQASequenceGenerator
- Returns:
- the nSounds
-
setnSounds
public void setnSounds(int nSounds) - Specified by:
setnSounds
in classQASequenceGenerator
- Parameters:
nSounds
- the nSounds to set
-