|
DESERT 4.0.0
|
#include <uwphysical.h>


Public Member Functions | |
| UwPhysicalStats () | |
| UwPhysicalStats (int mod_id, int stck_id) | |
| virtual | ~UwPhysicalStats ()=default |
| virtual Stats * | clone () const |
| virtual void | updateStats (int mod_id, int stck_id, double rx_pwr, double noise_pwr, double interf_pwr, double sinr, double ber, double per, bool error) |
Public Attributes | |
| bool | has_error |
| double | last_rx_power |
| double | last_noise_power |
| double | instant_noise_power |
| double | last_interf_power |
| double | last_sinr |
| double | last_ber |
| double | last_per |
| UwPhysicalStats::UwPhysicalStats | ( | ) |
| UwPhysicalStats::UwPhysicalStats | ( | int | mod_id, |
| int | stck_id | ||
| ) |
Constructor of UwPhysicalStats class
References StatsEnum::STATS_PHY_LAYER.
|
virtualdefault |
Destructor of UwPhysicalStats class
|
virtual |
Virtual method used by the Module class in order to copy its stats an a generic fashion, without the need to know the derived stats implementation.
Reimplemented in UwHMMPhysicalStats.
References UwPhysicalStats().

|
virtual |
Method to update stats with the param of last received packet
| rx_pwr,received | power of the packet |
| noise_pwr,noise | power |
| interf_pwr,noise | power |
| sinr,signal | to noise ratio |
| ber,bit | error rate |
| per,packet | error rate |
| error,true | if packet has error |
References has_error, instant_noise_power, last_ber, last_interf_power, last_noise_power, last_per, last_rx_power, and last_sinr.
Referenced by UnderwaterPhysical::endRx(), and UwHMMPhysicalStats::updateStats().
| bool UwPhysicalStats::has_error |
Referenced by UwFloodingSec::sendStatsClMsg(), and updateStats().
| double UwPhysicalStats::instant_noise_power |
Noise power of the last received packet.
Referenced by UwFloodingSec::retrieveInstantNoise(), and updateStats().
| double UwPhysicalStats::last_ber |
SINR of the last received packet.
Referenced by UwRangingTDOA::recvSyncClMsg(), and updateStats().
| double UwPhysicalStats::last_interf_power |
Noise power measured on query.
Referenced by UwFloodingSec::sendStatsClMsg(), and updateStats().
| double UwPhysicalStats::last_noise_power |
Power of the last received packet.
Referenced by UwFloodingSec::sendStatsClMsg(), and updateStats().
| double UwPhysicalStats::last_per |
BER of the last received packet.
Referenced by updateStats().
| double UwPhysicalStats::last_rx_power |
True if last packet wasn't correctly received.
Referenced by UwFloodingSec::sendStatsClMsg(), and updateStats().
| double UwPhysicalStats::last_sinr |
Interference power of the last rx packet.
Referenced by updateStats().