Package qa.generator
Class QASoundGenerator
java.lang.Object
qa.generator.QASoundGenerator
- Direct Known Subclasses:
StandardSoundGenerator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract QASoundgenerateSound(long sourceSample, double sampleRate, double[] delays, double[] amplitudes) Generate a soundabstract double[]abstract double[]getName()void
-
Constructor Details
-
QASoundGenerator
- Parameters:
name-latLong-
-
-
Method Details
-
generateSound
public abstract QASound generateSound(long sourceSample, double sampleRate, double[] delays, double[] amplitudes) Generate a sound- Parameters:
sourceSample- the sample number at which the source was generatedsampleRate- sample rate of data to receive the sounddelays- delays in samples from generation of the sound to it's reception on each hydrophoneamplitudes- amplitudes on a linear scale (notDB) which incorporates the system full scale and the spreading loss but doesn't yet contain frequency dependent attenuation.- Returns:
- a generated sound.
-
getName
- Returns:
- the name
-
setName
- Parameters:
name- the name to set
-
getFrequencyRange
public abstract double[] getFrequencyRange()- Returns:
- The nominal frequency range of the sound in Hz.
-
getDurationRange
public abstract double[] getDurationRange()- Returns:
- the nominal duration of the sound in seconds.
-