simulatedAcquisition
Class SimSound

java.lang.Object
  extended by simulatedAcquisition.SimSound

public class SimSound
extends java.lang.Object

Class to hold information on a single sound. These will be held in a list for each simulated object

Author:
Doug Gillespie

Field Summary
(package private)  int completeChannels
           
(package private)  double depth
           
(package private)  long endSample
           
(package private)  double[][] hydrophoneDelays
           
(package private)  LatLong latLong
           
(package private)  double[] soundAmplitude
          Signal level of the sound 1m from the hydrophone
(package private)  boolean started
           
(package private)  long startSample
          first sample - at the animal.
(package private)  long startTimeMillis
           
(package private)  double[][] transmissionGains
           
(package private)  double[] waveform
           
 
Constructor Summary
SimSound(long startSample, long startTimeMillis, LatLong latLong, double depth, double[] waveform)
           
 
Method Summary
 double getHydrophoneDelay(int iPhone, int iDelay)
           
 double[][] getHydrophoneDelays()
           
 int getNumDelays()
           
 double[] getSoundAmplitude()
           
 double getSoundAmplitude(int iChan)
           
 double getTranmissionGain(int iPhone, int iGain)
           
 double[][] getTransmissionGains()
           
 boolean isComplete(int channelMap)
           
 void setCompleteChannel(int iChan)
           
 void setHydrophoneDelays(double[][] delays)
           
 void setSoundAmplitude(double[] soundAmplitude)
           
 void setTransmissionGains(double[][] gains)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

waveform

double[] waveform

startSample

long startSample
first sample - at the animal. It will get to the hydrophone later.


startTimeMillis

long startTimeMillis

endSample

long endSample

started

boolean started

completeChannels

int completeChannels

latLong

LatLong latLong

depth

double depth

hydrophoneDelays

double[][] hydrophoneDelays

transmissionGains

double[][] transmissionGains

soundAmplitude

double[] soundAmplitude
Signal level of the sound 1m from the hydrophone

Constructor Detail

SimSound

public SimSound(long startSample,
                long startTimeMillis,
                LatLong latLong,
                double depth,
                double[] waveform)
Method Detail

setCompleteChannel

public void setCompleteChannel(int iChan)

isComplete

public boolean isComplete(int channelMap)

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)