#include <uwhermesphy.h>
Definition at line 52 of file uwhermesphy.h.
◆ UwHermesPhy()
UwHermesPhy::UwHermesPhy |
( |
| ) |
|
◆ ~UwHermesPhy()
UwHermesPhy::~UwHermesPhy |
( |
| ) |
|
|
virtual |
◆ chunckInterpolator()
double UwHermesPhy::chunckInterpolator |
( |
double |
p, |
|
|
int |
size |
|
) |
| |
|
privatevirtual |
◆ command()
int UwHermesPhy::command |
( |
int |
argc, |
|
|
const char *const * |
argv |
|
) |
| |
|
virtual |
TCL command interpreter.
It implements the following OTcl methods:
- Parameters
-
argc | Number of arguments in argv. |
argv | Array of strings which are the command parameters (Note that argv[0] is the name of the object). |
- Returns
- TCL_OK or TCL_ERROR whether the command has been dispatched successfully or not.
Reimplemented from UnderwaterPhysical.
Definition at line 81 of file uwhermesphy.cpp.
◆ endRx()
void UwHermesPhy::endRx |
( |
Packet * |
p | ) |
|
|
protectedvirtual |
◆ getDistance()
double UwHermesPhy::getDistance |
( |
Packet * |
_p | ) |
|
|
privatevirtual |
Return the distance between source and destination.
- Parameters
-
p | Packet by witch the module gets information about source and destination. |
Definition at line 257 of file uwhermesphy.cpp.
◆ getPER()
double UwHermesPhy::getPER |
( |
double |
snr, |
|
|
int |
nbits, |
|
|
Packet * |
_p |
|
) |
| |
|
protectedvirtual |
Returns the packet error rate by using the length of a packet and the information contained in the packet (position of the source and the destiantion.
- Parameters
-
snr | Calculated by nsmiracle with the Urick model (unused). |
nbits | length in bit of the packet. |
p | Packet by witch the module gets information about source and destination. |
- Returns
- PER of the packet passed as parameter.
Reimplemented from UnderwaterPhysical.
Definition at line 250 of file uwhermesphy.cpp.
◆ initializeLUT()
void UwHermesPhy::initializeLUT |
( |
| ) |
|
|
protectedvirtual |
◆ linearInterpolator()
double UwHermesPhy::linearInterpolator |
( |
double |
x, |
|
|
double |
x1, |
|
|
double |
y1, |
|
|
double |
x2, |
|
|
double |
y2 |
|
) |
| |
|
privatevirtual |
Return y via linear interpolation given two points.
- Parameters
-
x | input. |
x1,y1 | coordinates of the first point. |
x2,y2 | coordinates of the second point. |
Definition at line 307 of file uwhermesphy.cpp.
◆ matchPS()
double UwHermesPhy::matchPS |
( |
double |
distance, |
|
|
int |
size |
|
) |
| |
|
privatevirtual |
Return the PER via linear interpolation.
- Parameters
-
distance | distance between source and destination. |
size | Packet size in bit. |
Definition at line 271 of file uwhermesphy.cpp.
◆ BCH_K
◆ BCH_N
BCH(n,k,t) : correction of t errors via BCH code new frame length= FRAME_BIT/k*n, example: 9152/11*15 by default BCH(15,11,1)
Definition at line 143 of file uwhermesphy.h.
◆ BCH_T
◆ FRAME_BIT
int UwHermesPhy::FRAME_BIT |
|
private |
◆ initLUT_
bool UwHermesPhy::initLUT_ |
|
private |
◆ pdr_file_name_
string UwHermesPhy::pdr_file_name_ |
|
private |
◆ pdr_token_separator_
char UwHermesPhy::pdr_token_separator_ |
|
private |
◆ range2pdr_
PdrLut UwHermesPhy::range2pdr_ |
|
private |
The documentation for this class was generated from the following files: