DESERT 3.5.1
Loading...
Searching...
No Matches
UwHMMPhysicalStats Class Reference

#include <uwhmmphysical.h>

Inheritance diagram for UwHMMPhysicalStats:
Collaboration diagram for UwHMMPhysicalStats:

Public Member Functions

virtual ~UwHMMPhysicalStats ()=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, MCLink::ChState channel_state=MCLink::ChState::NOT_DEFINED)
 
- Public Member Functions inherited from UwPhysicalStats
 UwPhysicalStats ()
 
 UwPhysicalStats (int mod_id, int stck_id)
 
virtual ~UwPhysicalStats ()
 
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

MCLink::ChState channel_state = MCLink::ChState::NOT_DEFINED
 
- Public Attributes inherited from UwPhysicalStats
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 46 of file uwhmmphysical.h.

Constructor & Destructor Documentation

◆ ~UwHMMPhysicalStats()

virtual UwHMMPhysicalStats::~UwHMMPhysicalStats ( )
virtualdefault

Destructor of UwPhysicalStats class.

Member Function Documentation

◆ clone()

Stats * UwHMMPhysicalStats::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 from UwPhysicalStats.

Definition at line 56 of file uwhmmphysical.cpp.

◆ updateStats()

void UwHMMPhysicalStats::updateStats ( int  mod_id,
int  stck_id,
double  rx_pwr,
double  noise_pwr,
double  interf_pwr,
double  sinr,
double  ber,
double  per,
bool  error,
MCLink::ChState  channel_state = MCLink::ChState::NOT_DEFINED 
)
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 according to parent UwPhysical Model
ber,biterror rate according to HMM channel state
per,packeterror rate according to HMM channel state
error,trueif packet has error
channel_state,HMMchannel state

Definition at line 62 of file uwhmmphysical.cpp.

Member Data Documentation

◆ channel_state

MCLink::ChState UwHMMPhysicalStats::channel_state = MCLink::ChState::NOT_DEFINED

HMM channel state.

Definition at line 76 of file uwhmmphysical.h.


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