EMANE  1.2.1
EMANE::Models::RFPipe::PCRManager Class Reference

Manages the PCR curves. More...

#include <pcrmanager.h>

Public Member Functions

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

Detailed Description

Manages the PCR curves.

Definition at line 62 of file rfpipe/pcrmanager.h.

Constructor & Destructor Documentation

◆ PCRManager()

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

Definition at line 54 of file rfpipe/pcrmanager.cc.

◆ ~PCRManager()

EMANE::Models::RFPipe::PCRManager::~PCRManager ( )

Definition at line 62 of file rfpipe/pcrmanager.cc.

Member Function Documentation

◆ getPCR()

float EMANE::Models::RFPipe::PCRManager::getPCR ( float  fSinr,
size_t  size 
)

get the PCR for a given sinr and pkt size

Parameters
fSinrthe signal to noise ratio
sizethe packet size in bytes, units (bytes) must match the units provided in the pcr curve file.
Returns
the PCR value

Definition at line 264 of file rfpipe/pcrmanager.cc.

◆ load()

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

loads the PCR curve entries

Parameters
urilocation of the PCR file

Definition at line 120 of file rfpipe/pcrmanager.cc.


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