#include <uwhmmphysical.h>
UnderwaterHMMPhysical models an hidden Markov Model phy channel.
Definition at line 84 of file uwhmmphysical.h.
◆ UnderwaterHMMPhysical()
UnderwaterHMMPhysical::UnderwaterHMMPhysical |
( |
| ) |
|
◆ ~UnderwaterHMMPhysical()
UnderwaterHMMPhysical::~UnderwaterHMMPhysical |
( |
| ) |
|
|
virtual |
◆ ber2per()
double UnderwaterHMMPhysical::ber2per |
( |
double |
ber, |
|
|
Packet * |
p |
|
) |
| |
|
protectedvirtual |
Returns the packet error rate by using the BER from HMM and the size of a packet.
- Parameters
-
ber | according to HMM state |
p | Packet |
- Returns
- PER of the packet.
Definition at line 290 of file uwhmmphysical.cpp.
◆ command()
int UnderwaterHMMPhysical::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 100 of file uwhmmphysical.cpp.
◆ endRx()
void UnderwaterHMMPhysical::endRx |
( |
Packet * |
p | ) |
|
|
overrideprotectedvirtual |
◆ getPktsTotBad()
int UnderwaterHMMPhysical::getPktsTotBad |
( |
| ) |
const |
|
inline |
- Returns
- the number of packets sent with bad channel
Definition at line 122 of file uwhmmphysical.h.
◆ getPktsTotGood()
int UnderwaterHMMPhysical::getPktsTotGood |
( |
| ) |
const |
|
inline |
- Returns
- the number of packets sent with good channel
Definition at line 140 of file uwhmmphysical.h.
◆ getPktsTotMedium()
int UnderwaterHMMPhysical::getPktsTotMedium |
( |
| ) |
const |
|
inline |
- Returns
- the number of packets sent with medium channel
Definition at line 131 of file uwhmmphysical.h.
◆ incrTotPkts()
increase the counter of packets sent taking into account the channel state
Definition at line 150 of file uwhmmphysical.h.
◆ setMCLink()
void UnderwaterHMMPhysical::setMCLink |
( |
int |
mac, |
|
|
MCLink * |
link |
|
) |
| |
Adds the Markov Chain transition matrix for each source MAC.
- Parameters
-
mac | MAC of the transmitting node |
link | Pointer to associated MCLink |
Definition at line 136 of file uwhmmphysical.cpp.
◆ link_map
std::map<int, MCLink*> UnderwaterHMMPhysical::link_map |
|
protected |
◆ pkts_tot_bad
int UnderwaterHMMPhysical::pkts_tot_bad |
|
protected |
Total number of packets arrived with bad channel.
Definition at line 186 of file uwhmmphysical.h.
◆ pkts_tot_good
int UnderwaterHMMPhysical::pkts_tot_good |
|
protected |
Total number of packets arrived with good channel.
Definition at line 184 of file uwhmmphysical.h.
◆ pkts_tot_medium
int UnderwaterHMMPhysical::pkts_tot_medium |
|
protected |
Total number of packets arrived with medium channel.
Definition at line 185 of file uwhmmphysical.h.
The documentation for this class was generated from the following files: