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

  • Method Details

    • getHydrophoneDelays

      public double[][] getHydrophoneDelays()
    • setHydrophoneDelays

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

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

      public int getNumDelays()
    • getTransmissionGains

      public double[][] getTransmissionGains()
    • setTransmissionGains

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

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

      public double[] getSoundAmplitude()
    • getSoundAmplitude

      public double getSoundAmplitude(int iChan)
    • setSoundAmplitude

      public void setSoundAmplitude(double[] soundAmplitude)
    • setStartSample

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

      public double getStartSample()
      Returns:
      the startSample
    • getStartTimeMillis

      public long getStartTimeMillis()
      Returns:
      the startTimeMillis
    • isStarted

      public boolean isStarted()
      Returns:
      the started
    • getLatLong

      public LatLong getLatLong()
      Returns:
      the latLong
    • getHeight

      public double getHeight()
      Returns:
      the height
    • getHeading

      public PamVector getHeading()
      Returns:
      the heading
    • getSimSignal

      public SimSignal getSimSignal()
      Returns:
      the simSignal
    • setPointingVectors

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

      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

      public long getFirstChannelSample()
      Returns:
      the firstChannelSample
    • getLastChannelSample

      public long getLastChannelSample()
      Returns:
      the lastChannelSample
    • getReceivedSounds

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

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

      public double getStartSampleAtAnimal()
      Returns:
      the startSampleAtAnimal
    • getPointingVectors

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

      public SimObjectDataUnit getSimObjectDataUnit()
      Returns:
      the simObjectDataUnit