#include <uan-prop-bhp.h>
Public Member Functions | |
BhRun () | |
Creates class without information. | |
BhRun (double src, double f, set< double > d, set< double > r, char *path) | |
Creates class, sets transmitter info, and runs Bellhop. | |
BhRun (const BhRun &other) | |
Copies the information from this BhRun to another. Allocates new memory for other. | |
ArrResults & | getRes (int d, int r) |
Returns a reference to the ArrResults structure for a receiver at depth d and range r. | |
const set< double > & | getDepths () |
Returns the set of depths for which this class holds the information for. | |
const set< double > & | getRanges () |
Returns the set of ranges for which this class has information for. | |
double | getSD () |
Returns the depth of the transmitter in m. | |
double | getF () |
Returns the frequency in Hz. |
This class keeps a set of ArrResults structs for each receiver in a Bellhop simulation (UanChannelBhp runs simulations for each transmitter)
BhRun::BhRun | ( | double | src, | |
double | f, | |||
set< double > | d, | |||
set< double > | r, | |||
char * | path | |||
) | [inline] |
Creates class, sets transmitter info, and runs Bellhop.
src | Source depth in m | |
f | Transmission frequency in Hz | |
d | STL set of all receiver depths | |
r | STL set of all ranges | |
path | C string to Bellhop executable |
ArrResults& BhRun::getRes | ( | int | d, | |
int | r | |||
) | [inline] |
Returns a reference to the ArrResults structure for a receiver at depth d and range r.
d | Index of depth (shallowest depth is d=0 next shallowest is d=1) | |
r | Index of range (Shortest range is r=0 next shortest is r=1) |