Class SimSound

java.lang.Object
simulatedAcquisition.sounds.SimSound

public class SimSound extends Object
Class to hold information on a single sound. These will be held in a list for each simulated object
Author:
Doug Gillespie
  • Constructor Details Link icon

  • Method Details Link icon

    • getHydrophoneDelays Link icon

      public double[][] getHydrophoneDelays()
    • setHydrophoneDelays Link icon

      public void setHydrophoneDelays(double[][] delays)
    • getHydrophoneDelay Link icon

      public double getHydrophoneDelay(int iPhone, int iDelay)
    • getNumDelays Link icon

      public int getNumDelays()
    • getTransmissionGains Link icon

      public double[][] getTransmissionGains()
    • setTransmissionGains Link icon

      public void setTransmissionGains(double[][] gains)
    • getTranmissionGain Link icon

      public double getTranmissionGain(int iPhone, int iGain)
    • getSoundAmplitude Link icon

      public double[] getSoundAmplitude()
    • getSoundAmplitude Link icon

      public double getSoundAmplitude(int iChan)
    • setSoundAmplitude Link icon

      public void setSoundAmplitude(double[] soundAmplitude)
    • setStartSample Link icon

      public void setStartSample(long startSample)
      Set the start sample at the animal.
      Parameters:
      startSample - - the start sample to set
    • getStartSample Link icon

      public double getStartSample()
      Returns:
      the startSample
    • getStartTimeMillis Link icon

      public long getStartTimeMillis()
      Returns:
      the startTimeMillis
    • isStarted Link icon

      public boolean isStarted()
      Returns:
      the started
    • getLatLong Link icon

      public LatLong getLatLong()
      Returns:
      the latLong
    • getHeight Link icon

      public double getHeight()
      Returns:
      the height
    • getHeading Link icon

      public PamVector getHeading()
      Returns:
      the heading
    • getSimSignal Link icon

      public SimSignal getSimSignal()
      Returns:
      the simSignal
    • setPointingVectors Link icon

      public void setPointingVectors(PamVector[][] pointingVectors)
    • generateWaves Link icon

      public void generateWaves(float sampleRate)
      This is where a whole load of different waveforms are generated for all the different channels.
      Parameters:
      sampleRate - samplerate for generation.
    • getFirstChannelSample Link icon

      public long getFirstChannelSample()
      Returns:
      the firstChannelSample
    • getLastChannelSample Link icon

      public long getLastChannelSample()
      Returns:
      the lastChannelSample
    • getReceivedSounds Link icon

      public SimReceivedSound[] getReceivedSounds(int iChan)
      Parameters:
      iChan - channel number
      Returns:
      the receivedSounds forgiven channel
    • getReceivedSounds Link icon

      public SimReceivedSound[][] getReceivedSounds()
      Returns:
      the receivedSounds for all channels
    • getStartSampleAtAnimal Link icon

      public double getStartSampleAtAnimal()
      Returns:
      the startSampleAtAnimal
    • getPointingVectors Link icon

      public PamVector[][] getPointingVectors()
      Returns:
      the pointingVectors
    • getSimObjectDataUnit Link icon

      public SimObjectDataUnit getSimObjectDataUnit()
      Returns:
      the simObjectDataUnit