public class SimSound
extends java.lang.Object
Constructor and Description |
---|
SimSound(SimObjectDataUnit simObjectDataUnit,
double startSample,
long startTimeMillis,
LatLong latLong,
double height,
PamVector heading,
SimSignal simSignal) |
Modifier and Type | Method and Description |
---|---|
void |
generateWaves(float sampleRate)
This is where a whole load of different waveforms are generated for all the different channels.
|
long |
getFirstChannelSample() |
PamVector |
getHeading() |
double |
getHeight() |
double |
getHydrophoneDelay(int iPhone,
int iDelay) |
double[][] |
getHydrophoneDelays() |
long |
getLastChannelSample() |
LatLong |
getLatLong() |
int |
getNumDelays() |
PamVector[][] |
getPointingVectors() |
SimReceivedSound[][] |
getReceivedSounds() |
SimReceivedSound[] |
getReceivedSounds(int iChan) |
SimObjectDataUnit |
getSimObjectDataUnit() |
SimSignal |
getSimSignal() |
double[] |
getSoundAmplitude() |
double |
getSoundAmplitude(int iChan) |
double |
getStartSample() |
double |
getStartSampleAtAnimal() |
long |
getStartTimeMillis() |
double |
getTranmissionGain(int iPhone,
int iGain) |
double[][] |
getTransmissionGains() |
boolean |
isStarted() |
void |
setHydrophoneDelays(double[][] delays) |
void |
setPointingVectors(PamVector[][] pointingVectors) |
void |
setSoundAmplitude(double[] soundAmplitude) |
void |
setTransmissionGains(double[][] gains) |
public SimSound(SimObjectDataUnit simObjectDataUnit, double startSample, long startTimeMillis, LatLong latLong, double height, PamVector heading, SimSignal simSignal)
public double[][] getHydrophoneDelays()
public void setHydrophoneDelays(double[][] delays)
public double getHydrophoneDelay(int iPhone, int iDelay)
public int getNumDelays()
public double[][] getTransmissionGains()
public void setTransmissionGains(double[][] gains)
public double getTranmissionGain(int iPhone, int iGain)
public double[] getSoundAmplitude()
public double getSoundAmplitude(int iChan)
public void setSoundAmplitude(double[] soundAmplitude)
public double getStartSample()
public long getStartTimeMillis()
public boolean isStarted()
public LatLong getLatLong()
public double getHeight()
public PamVector getHeading()
public SimSignal getSimSignal()
public void setPointingVectors(PamVector[][] pointingVectors)
public void generateWaves(float sampleRate)
sampleRate
- samplerate for generation.public long getFirstChannelSample()
public long getLastChannelSample()
public SimReceivedSound[] getReceivedSounds(int iChan)
iChan
- channel numberpublic SimReceivedSound[][] getReceivedSounds()
public double getStartSampleAtAnimal()
public PamVector[][] getPointingVectors()
public SimObjectDataUnit getSimObjectDataUnit()