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

#include <uwem-phy.h>

Inheritance diagram for UwElectroMagneticPhy:
Collaboration diagram for UwElectroMagneticPhy:

Public Member Functions

 UwElectroMagneticPhy ()
 
virtual ~UwElectroMagneticPhy ()
 
virtual int command (int, const char *const *)
 

Protected Member Functions

void startRx (Packet *p)
 
void endRx (Packet *p)
 
double getRxPower (Packet *p)
 
double getPER (double rx_power)
 
virtual double linearInterpolator (double x, double x1, double y1, double x2, double y2)
 
virtual void initializeLUT ()
 

Private Attributes

string lut_file_name_
 
char lut_token_separator_
 
RSSIMap lut_map
 
double rxPowerThreshold_
 

Detailed Description

Definition at line 65 of file uwem-phy.h.

Constructor & Destructor Documentation

◆ UwElectroMagneticPhy()

UwElectroMagneticPhy::UwElectroMagneticPhy ( )

Constructor of UwElectroMagneticPhy class.

Definition at line 57 of file uwem-phy.cpp.

◆ ~UwElectroMagneticPhy()

virtual UwElectroMagneticPhy::~UwElectroMagneticPhy ( )
inlinevirtual

Destructor of UwElectroMagneticPhy class.

Definition at line 77 of file uwem-phy.h.

Member Function Documentation

◆ command()

int UwElectroMagneticPhy::command ( int  argc,
const char *const *  argv 
)
virtual

TCL command interpreter.

It implements the following OTcl methods:

Parameters
argcNumber of arguments in argv.
argvArray of strings which are the command parameters (Note that argv[0] is the name of the object).
Returns
TCL_OK or TCL_ERROR whether the command has been dispatched successfully or not.

Definition at line 72 of file uwem-phy.cpp.

◆ endRx()

void UwElectroMagneticPhy::endRx ( Packet *  p)
protected

Definition at line 135 of file uwem-phy.cpp.

◆ getPER()

double UwElectroMagneticPhy::getPER ( double  rx_power)
protected

Definition at line 198 of file uwem-phy.cpp.

◆ getRxPower()

double UwElectroMagneticPhy::getRxPower ( Packet *  p)
protected

Definition at line 178 of file uwem-phy.cpp.

◆ initializeLUT()

void UwElectroMagneticPhy::initializeLUT ( )
protectedvirtual

Inizialize LUT of c_variable values.

Definition at line 235 of file uwem-phy.cpp.

◆ linearInterpolator()

double UwElectroMagneticPhy::linearInterpolator ( double  x,
double  x1,
double  y1,
double  x2,
double  y2 
)
protectedvirtual

Definition at line 225 of file uwem-phy.cpp.

◆ startRx()

void UwElectroMagneticPhy::startRx ( Packet *  p)
protected

Definition at line 102 of file uwem-phy.cpp.

Member Data Documentation

◆ lut_file_name_

string UwElectroMagneticPhy::lut_file_name_
private

Definition at line 114 of file uwem-phy.h.

◆ lut_map

RSSIMap UwElectroMagneticPhy::lut_map
private

Lookup table map of the RSSI versus PER.

Definition at line 116 of file uwem-phy.h.

◆ lut_token_separator_

char UwElectroMagneticPhy::lut_token_separator_
private

Definition at line 115 of file uwem-phy.h.

◆ rxPowerThreshold_

double UwElectroMagneticPhy::rxPowerThreshold_
private

Definition at line 117 of file uwem-phy.h.


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