DESERT 3.5.1
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 ()
 
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

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
 
bool has_error
 

Detailed Description

Definition at line 61 of file uwphysical.h.

Constructor & Destructor Documentation

◆ UwPhysicalStats() [1/2]

UwPhysicalStats::UwPhysicalStats ( )

Constructor of UwPhysicalStats class.

Definition at line 43 of file uwphysical.cpp.

◆ UwPhysicalStats() [2/2]

UwPhysicalStats::UwPhysicalStats ( int  mod_id,
int  stck_id 
)

Constructor of UwPhysicalStats class.

Definition at line 57 of file uwphysical.cpp.

◆ ~UwPhysicalStats()

virtual UwPhysicalStats::~UwPhysicalStats ( )
inlinevirtual

Destructor of UwPhysicalStats class.

Definition at line 77 of file uwphysical.h.

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 89 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 73 of file uwphysical.cpp.

Member Data Documentation

◆ has_error

bool UwPhysicalStats::has_error

PER of the last received packet.

Definition at line 108 of file uwphysical.h.

◆ instant_noise_power

double UwPhysicalStats::instant_noise_power

Noise power of the last received packet.

Definition at line 103 of file uwphysical.h.

◆ last_ber

double UwPhysicalStats::last_ber

SINR of the last received packet.

Definition at line 106 of file uwphysical.h.

◆ last_interf_power

double UwPhysicalStats::last_interf_power

Noise power measured on query.

Definition at line 104 of file uwphysical.h.

◆ last_noise_power

double UwPhysicalStats::last_noise_power

Power of the last received packet.

Definition at line 102 of file uwphysical.h.

◆ last_per

double UwPhysicalStats::last_per

BER of the last received packet.

Definition at line 107 of file uwphysical.h.

◆ last_rx_power

double UwPhysicalStats::last_rx_power

Definition at line 101 of file uwphysical.h.

◆ last_sinr

double UwPhysicalStats::last_sinr

Interference power of the last rx packet.

Definition at line 105 of file uwphysical.h.


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