EMANE  1.2.1
EMANE::Models::TDMA::PORManager Class Reference

POR Manager responsible for loading PCR curves from file and determining POR. More...

#include <pormanager.h>

Public Types

using CurveDump = std::map< float, float >
 
using CurveDumps = std::map< std::uint64_t, CurveDump >
 

Public Member Functions

 PORManager ()
 
void load (const std::string &sPCRFileName)
 
float getPOR (std::uint64_t u64DataRate, float fSINR, size_t packetLengthBytes)
 
CurveDumps dump ()
 

Detailed Description

POR Manager responsible for loading PCR curves from file and determining POR.

PCR curves are defined per data rate, with the first curve defined also serving as the default curve used when a POR is requested for an undefined data rate.

Definition at line 56 of file pormanager.h.

Member Typedef Documentation

◆ CurveDump

using EMANE::Models::TDMA::PORManager::CurveDump = std::map<float,float>

Definition at line 67 of file pormanager.h.

◆ CurveDumps

using EMANE::Models::TDMA::PORManager::CurveDumps = std::map<std::uint64_t,CurveDump>

Definition at line 68 of file pormanager.h.

Constructor & Destructor Documentation

◆ PORManager()

EMANE::Models::TDMA::PORManager::PORManager ( )

Definition at line 123 of file pormanager.cc.

Member Function Documentation

◆ dump()

CurveDumps EMANE::Models::TDMA::PORManager::dump ( )

◆ getPOR()

float EMANE::Models::TDMA::PORManager::getPOR ( std::uint64_t  u64DataRate,
float  fSINR,
size_t  packetLengthBytes 
)

Definition at line 280 of file pormanager.cc.

◆ load()

void EMANE::Models::TDMA::PORManager::load ( const std::string &  sPCRFileName)

Definition at line 127 of file pormanager.cc.


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