UnderwaterHMMPhysical models an hidden Markov Model phy channel.
More...
#include <uwhmmphysical.h>
UnderwaterHMMPhysical models an hidden Markov Model phy channel.
◆ 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.
Referenced by endRx().
◆ command()
| int UnderwaterHMMPhysical::command |
( |
int |
argc, |
|
|
const char *const * |
argv |
|
) |
| |
|
virtual |
◆ endRx()
| void UnderwaterHMMPhysical::endRx |
( |
Packet * |
p | ) |
|
|
overrideprotectedvirtual |
Handles the end of a packet reception
- Parameters
-
| Packet* | p Pointer to the packet received |
Reimplemented from UnderwaterPhysical.
References ber2per(), UnderwaterPhysical::consumedEnergyRx(), UnderwaterPhysical::endRx(), UnderwaterPhysical::Energy_Rx_, uwinterference::getCounters(), uwinterference::getInterferencePower(), UnderwaterPhysical::getPER(), UnderwaterPhysical::incrCollisionCTRL(), UnderwaterPhysical::incrCollisionDATA(), UnderwaterPhysical::incrCollisionDATAvsCTRL(), UnderwaterPhysical::incrErrorCtrlPktsInterf(), UnderwaterPhysical::incrTot_pkts_lost(), UnderwaterPhysical::incrTotCrtl_pkts_lost(), incrTotPkts(), UnderwaterPhysical::interference_, UnderwaterPhysical::Interference_Model, link_map, UnderwaterPhysical::Rx_Time_, UnderwaterPhysical::time_ready_to_end_rx_, and UwHMMPhysicalStats::updateStats().
◆ getPktsTotBad()
| int UnderwaterHMMPhysical::getPktsTotBad |
( |
| ) |
const |
|
inline |
◆ getPktsTotGood()
| int UnderwaterHMMPhysical::getPktsTotGood |
( |
| ) |
const |
|
inline |
◆ getPktsTotMedium()
| int UnderwaterHMMPhysical::getPktsTotMedium |
( |
| ) |
const |
|
inline |
◆ incrTotPkts()
◆ 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 |
References link_map.
Referenced by command().
◆ link_map
| std::map<int, MCLink *> UnderwaterHMMPhysical::link_map |
|
protected |
◆ pkts_tot_bad
| int UnderwaterHMMPhysical::pkts_tot_bad |
|
protected |
◆ pkts_tot_good
| int UnderwaterHMMPhysical::pkts_tot_good |
|
protected |
◆ pkts_tot_medium
| int UnderwaterHMMPhysical::pkts_tot_medium |
|
protected |
The documentation for this class was generated from the following files: