40#ifndef UNDERWATER_WOSS_PROPAGATION_H
41#define UNDERWATER_WOSS_PROPAGATION_H
46#include <underwater-mpropagation.h>
47#include <underwater.h>
58typedef std::map< woss::CoordZ , std::map < woss::CoordZ , double > > GainMatrix;
59typedef GainMatrix::iterator GMIter;
60typedef GainMatrix::reverse_iterator GMRIter;
85 virtual double getGain(Packet* p);
88 virtual int command(
int argc,
const char*
const* argv);
97 GainMatrix std_gain_map;
100 bool write_gain_matrix;
103 fstream std_gain_out;
106 string std_gain_matrix_name;
109 void insertStdGainMatrix( Position* sp, Position* rp,
double gain );
121 void writeStdGainMatrix();
130inline void WossMPropagation::insertStdGainMatrix( Position* sp, Position* rp,
double gain ) {
131 std_gain_map[
woss::CoordZ( sp->getLatitude(), sp->getLongitude(), abs( sp->getZ() ) ) ]
132 [
woss::CoordZ( rp->getLatitude(), rp->getLongitude(), abs( rp->getZ() ) ) ] = gain;
UnderwaterMPropagation class for channel calculations with WOSS.
Definition uw-woss-mpropagation.h:68
double computeGain(Packet *p)
Definition uw-woss-mpropagation.cpp:167
virtual double getGain(Packet *p)
Definition uw-woss-mpropagation.cpp:120
3D-Coordinates (lat, long, depth) class definitions and functions library
Definition coordinates-definitions.h:403
Abstract class that interfaces Pressure or TimeArr requests from user layer.
Definition woss-manager.h:93
Provides the interface for the woss::Coord and woss::CoordZ classes.
Definition of hdr_woss, WOSS pkt header.