DESERT 3.6.0
Loading...
Searching...
No Matches
UwPhysicalStats Class Reference

#include <uwphysical.h>

Inheritance diagram for UwPhysicalStats:
Collaboration diagram for UwPhysicalStats:

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
 

Detailed Description

Definition at line 49 of file uwphysical.h.

Constructor & Destructor Documentation

◆ UwPhysicalStats() [1/2]

UwPhysicalStats::UwPhysicalStats ( )

Constructor of UwPhysicalStats class.

Definition at line 47 of file uwphysical.cpp.

◆ UwPhysicalStats() [2/2]

UwPhysicalStats::UwPhysicalStats ( int  mod_id,
int  stck_id 
)

Constructor of UwPhysicalStats class.

Definition at line 60 of file uwphysical.cpp.

◆ ~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.

Definition at line 92 of file uwphysical.cpp.

◆ 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

Definition at line 75 of file uwphysical.cpp.

Member Data Documentation

◆ has_error

bool UwPhysicalStats::has_error

Definition at line 89 of file uwphysical.h.

◆ instant_noise_power

double UwPhysicalStats::instant_noise_power

Noise power of the last received packet.

Definition at line 92 of file uwphysical.h.

◆ last_ber

double UwPhysicalStats::last_ber

SINR of the last received packet.

Definition at line 95 of file uwphysical.h.

◆ last_interf_power

double UwPhysicalStats::last_interf_power

Noise power measured on query.

Definition at line 93 of file uwphysical.h.

◆ last_noise_power

double UwPhysicalStats::last_noise_power

Power of the last received packet.

Definition at line 91 of file uwphysical.h.

◆ last_per

double UwPhysicalStats::last_per

BER of the last received packet.

Definition at line 96 of file uwphysical.h.

◆ last_rx_power

double UwPhysicalStats::last_rx_power

True if last packet wasn't correctly received.

Definition at line 90 of file uwphysical.h.

◆ last_sinr

double UwPhysicalStats::last_sinr

Interference power of the last rx packet.

Definition at line 94 of file uwphysical.h.


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