Package propagation
Class LogLawPropagation
java.lang.Object
propagation.LogLawPropagation
- All Implemented Interfaces:
PropagationModel
- Direct Known Subclasses:
SphericalPropagation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
double[]
Get the time delays for each pathdouble[]
getGains()
Get the gains for each pathgetName()
int
Get the number of propagation paths that will be returnedGet a list of vectors pointing from the sound source to the receiver (or it's apparent location for surface echos).void
setAttenuationRate
(double attenuationRate) boolean
setLocations
(LatLong hydrophoneLatLong, LatLong sourceLatLong, double speedOfSound) Set the locations of hydrophone and the sourcetoString()
-
Constructor Details
-
LogLawPropagation
public LogLawPropagation(double attenuationRate)
-
-
Method Details
-
getDelays
public double[] getDelays()Description copied from interface:PropagationModel
Get the time delays for each path- Specified by:
getDelays
in interfacePropagationModel
- Returns:
- delays in seconds
-
getGains
public double[] getGains()Description copied from interface:PropagationModel
Get the gains for each pathThese are the inverse of attenuation and are a scale factors NOT in dB so that surface reflections can be given a negative number
- Specified by:
getGains
in interfacePropagationModel
- Returns:
- path gains.
-
getNumPaths
public int getNumPaths()Description copied from interface:PropagationModel
Get the number of propagation paths that will be returned- Specified by:
getNumPaths
in interfacePropagationModel
- Returns:
- number of paths
-
setLocations
Description copied from interface:PropagationModel
Set the locations of hydrophone and the source- Specified by:
setLocations
in interfacePropagationModel
- Parameters:
speedOfSound
- though the dialog may show a positive number for depth !- Returns:
- true if model ran OK
-
getName
- Specified by:
getName
in interfacePropagationModel
- Returns:
- name
-
toString
-
getPointingVectors
Description copied from interface:PropagationModel
Get a list of vectors pointing from the sound source to the receiver (or it's apparent location for surface echos).- Specified by:
getPointingVectors
in interfacePropagationModel
- Returns:
- Vector pointing from source to receiver.
-
getAttenuationRate
public double getAttenuationRate() -
setAttenuationRate
public void setAttenuationRate(double attenuationRate)
-