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
ConstructorDescriptionSimSound
(SimObjectDataUnit simObjectDataUnit, double startSample, long startTimeMillis, LatLong latLong, double height, PamVector heading, SimSignal simSignal) -
Method Summary
Modifier and TypeMethodDescriptionvoid
generateWaves
(float sampleRate) This is where a whole load of different waveforms are generated for all the different channels.long
double
double
getHydrophoneDelay
(int iPhone, int iDelay) double[][]
long
int
PamVector[][]
SimReceivedSound[][]
getReceivedSounds
(int iChan) double[]
double
getSoundAmplitude
(int iChan) double
double
long
double
getTranmissionGain
(int iPhone, int iGain) double[][]
boolean
void
setHydrophoneDelays
(double[][] delays) void
setPointingVectors
(PamVector[][] pointingVectors) void
setSoundAmplitude
(double[] soundAmplitude) void
setStartSample
(long startSample) Set the start sample at the animal.void
setTransmissionGains
(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
-