EMANE  1.2.1
EMANE::Models::IEEE80211ABG::PCRManager Class Reference

provides access to the pcr curves More...

#include <pcrmanager.h>

Public Member Functions

 PCRManager (NEMId id, PlatformServiceProvider *pPlatformService)
 
 ~PCRManager ()
 
void load (const std::string &uri)
 
float getPCR (float fSinr, size_t size, std::uint16_t DataRateIndex)
 

Detailed Description

provides access to the pcr curves

Definition at line 61 of file ieee80211abg/pcrmanager.h.

Constructor & Destructor Documentation

◆ PCRManager()

EMANE::Models::IEEE80211ABG::PCRManager::PCRManager ( EMANE::NEMId  id,
EMANE::PlatformServiceProvider pPlatformService 
)

initialized constructor

Parameters
idthe NEM id
pPlatformServicea reference to the platform service(s)

Definition at line 55 of file ieee80211abg/pcrmanager.cc.

◆ ~PCRManager()

EMANE::Models::IEEE80211ABG::PCRManager::~PCRManager ( )

destructor

Definition at line 63 of file ieee80211abg/pcrmanager.cc.

Member Function Documentation

◆ getPCR()

float EMANE::Models::IEEE80211ABG::PCRManager::getPCR ( float  fSinr,
size_t  size,
std::uint16_t  DataRateIndex 
)

provides the pcr for a given sinr, packet size and data rate index

Parameters
fSinrthe signal to noise ratio
sizethe packet size in bytes
DataRateIndexthe data rate index
Returns
retunrs the pcr

Definition at line 312 of file ieee80211abg/pcrmanager.cc.

◆ load()

void EMANE::Models::IEEE80211ABG::PCRManager::load ( const std::string &  uri)

loads the pcr curve

Parameters
urithe location of the pcr curve file
Exceptions
ConfigurationException

Definition at line 127 of file ieee80211abg/pcrmanager.cc.


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