Package simulatedAcquisition.sounds
Class SimSound
java.lang.Object
simulatedAcquisition.sounds.SimSound
Class to hold information on a single sound. 
 These will be held in a list for each simulated object
- Author:
 - Doug Gillespie
 
- 
Constructor Summary
ConstructorsConstructorDescriptionSimSound(SimObjectDataUnit simObjectDataUnit, double startSample, long startTimeMillis, LatLong latLong, double height, PamVector heading, SimSignal simSignal)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidgenerateWaves(float sampleRate) This is where a whole load of different waveforms are generated for all the different channels.longdoubledoublegetHydrophoneDelay(int iPhone, int iDelay) double[][]longintPamVector[][]SimReceivedSound[][]getReceivedSounds(int iChan) double[]doublegetSoundAmplitude(int iChan) doubledoublelongdoublegetTranmissionGain(int iPhone, int iGain) double[][]booleanvoidsetHydrophoneDelays(double[][] delays) voidsetPointingVectors(PamVector[][] pointingVectors) voidsetSoundAmplitude(double[] soundAmplitude) voidsetStartSample(long startSample) Set the start sample at the animal.voidsetTransmissionGains(double[][] gains)  
- 
Constructor Details
- 
SimSound
public SimSound(SimObjectDataUnit simObjectDataUnit, double startSample, long startTimeMillis, LatLong latLong, double height, PamVector heading, SimSignal simSignal)  
 - 
 - 
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
- Returns:
 - the latLong
 
 - 
getHeight
public double getHeight()- Returns:
 - the height
 
 - 
getHeading
- Returns:
 - the heading
 
 - 
getSimSignal
- Returns:
 - the simSignal
 
 - 
setPointingVectors
 - 
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
- Parameters:
 iChan- channel number- Returns:
 - the receivedSounds forgiven channel
 
 - 
getReceivedSounds
- Returns:
 - the receivedSounds for all channels
 
 - 
getStartSampleAtAnimal
public double getStartSampleAtAnimal()- Returns:
 - the startSampleAtAnimal
 
 - 
getPointingVectors
- Returns:
 - the pointingVectors
 
 - 
getSimObjectDataUnit
- Returns:
 - the simObjectDataUnit
 
 
 -