#include <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 |
◆ endRx()
| void UwHermesPhy::endRx |
( |
Packet * |
p | ) |
|
|
protectedvirtual |
Handles the end of a packet reception
- Parameters
-
| Packet* | p Pointer to the packet received |
Reimplemented from UnderwaterPhysical.
References UnderwaterPhysical::consumedEnergyRx(), UnderwaterPhysical::Energy_Rx_, uwinterference::getCounters(), uwinterference::getInterferencePower(), getPER(), UnderwaterPhysical::incrCollisionCTRL(), UnderwaterPhysical::incrCollisionDATA(), UnderwaterPhysical::incrCollisionDATAvsCTRL(), UnderwaterPhysical::incrErrorCtrlPktsInterf(), UnderwaterPhysical::incrTot_pkts_lost(), UnderwaterPhysical::incrTotCrtl_pkts_lost(), initLUT_, UnderwaterPhysical::interference_, UnderwaterPhysical::Interference_Model, UnderwaterPhysical::Rx_Time_, and UnderwaterPhysical::time_ready_to_end_rx_.
◆ 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. |
Referenced by getPER().
◆ 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.
References getDistance(), and matchPS().
Referenced by endRx().
◆ 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. |
References q.
Referenced by matchPS().
◆ matchPS()
| double UwHermesPhy::matchPS |
( |
double |
distance, |
|
|
int |
size |
|
) |
| |
|
privatevirtual |
◆ 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)
Referenced by UwHermesPhy().
◆ 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: