DESERT 4.0.0
UwPhysicalStats Class Reference

#include <uwphysical.h>

Inheritance diagram for UwPhysicalStats:
Inheritance graph
Collaboration diagram for UwPhysicalStats:
Collaboration graph

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
 

Constructor & Destructor Documentation

◆ UwPhysicalStats() [1/2]

UwPhysicalStats::UwPhysicalStats ( )

Constructor of UwPhysicalStats class

References StatsEnum::STATS_PHY_LAYER.

Referenced by clone().

◆ UwPhysicalStats() [2/2]

UwPhysicalStats::UwPhysicalStats ( int  mod_id,
int  stck_id 
)

Constructor of UwPhysicalStats class

References StatsEnum::STATS_PHY_LAYER.

◆ ~UwPhysicalStats()

virtual UwPhysicalStats::~UwPhysicalStats ( )
virtualdefault

Destructor of UwPhysicalStats class

Member Function Documentation

◆ clone()

Stats * UwPhysicalStats::clone ( ) const
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.

Returns
the copy of a module the stats.

Reimplemented in UwHMMPhysicalStats.

References UwPhysicalStats().

Here is the call graph for this function:

◆ updateStats()

void UwPhysicalStats::updateStats ( int  mod_id,
int  stck_id,
double  rx_pwr,
double  noise_pwr,
double  interf_pwr,
double  sinr,
double  ber,
double  per,
bool  error 
)
virtual

Method to update stats with the param of last received packet

Parameters
rx_pwr,receivedpower of the packet
noise_pwr,noisepower
interf_pwr,noisepower
sinr,signalto noise ratio
ber,biterror rate
per,packeterror rate
error,trueif 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().

Member Data Documentation

◆ has_error

bool UwPhysicalStats::has_error

◆ instant_noise_power

double UwPhysicalStats::instant_noise_power

Noise power of the last received packet.

Referenced by UwFloodingSec::retrieveInstantNoise(), and updateStats().

◆ last_ber

double UwPhysicalStats::last_ber

SINR of the last received packet.

Referenced by UwRangingTDOA::recvSyncClMsg(), and updateStats().

◆ last_interf_power

double UwPhysicalStats::last_interf_power

Noise power measured on query.

Referenced by UwFloodingSec::sendStatsClMsg(), and updateStats().

◆ last_noise_power

double UwPhysicalStats::last_noise_power

Power of the last received packet.

Referenced by UwFloodingSec::sendStatsClMsg(), and updateStats().

◆ last_per

double UwPhysicalStats::last_per

BER of the last received packet.

Referenced by updateStats().

◆ last_rx_power

double UwPhysicalStats::last_rx_power

True if last packet wasn't correctly received.

Referenced by UwFloodingSec::sendStatsClMsg(), and updateStats().

◆ last_sinr

double UwPhysicalStats::last_sinr

Interference power of the last rx packet.

Referenced by updateStats().


The documentation for this class was generated from the following files: