Package qa.generator

Class QASoundGenerator

java.lang.Object
qa.generator.QASoundGenerator
Direct Known Subclasses:
StandardSoundGenerator

public abstract class QASoundGenerator extends Object
  • Constructor Details

    • QASoundGenerator

      public QASoundGenerator(String name)
      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 generated
      sampleRate - sample rate of data to receive the sound
      delays - delays in samples from generation of the sound to it's reception on each hydrophone
      amplitudes - 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

      public String getName()
      Returns:
      the name
    • setName

      public void setName(String name)
      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.