A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
GlobalPathlossDatabase Class Reference

Store the last pathloss value for each TX-RX pair. More...

+ Collaboration diagram for GlobalPathlossDatabase:

Public Member Functions

void Print ()
 print the stored pathloss values to standard output
 
void UpdatePathloss (std::string context, Ptr< const SpectrumPhy > txPhy, Ptr< const SpectrumPhy > rxPhy, double lossDb)
 update the pathloss value
 

Private Attributes

std::map< uint32_t, std::map< uint32_t, double > > m_pathlossMap
 Path loss map.
 

Detailed Description

Store the last pathloss value for each TX-RX pair.

This is an example of how the PathlossTrace (provided by some SpectrumChannel implementations) work.

Definition at line 60 of file adhoc-aloha-ideal-phy-matrix-propagation-loss-model.cc.

Member Function Documentation

◆ Print()

void GlobalPathlossDatabase::Print ( )

print the stored pathloss values to standard output

Definition at line 100 of file adhoc-aloha-ideal-phy-matrix-propagation-loss-model.cc.

References m_pathlossMap.

◆ UpdatePathloss()

void GlobalPathlossDatabase::UpdatePathloss ( std::string context,
Ptr< const SpectrumPhy > txPhy,
Ptr< const SpectrumPhy > rxPhy,
double lossDb )

update the pathloss value

Parameters
context
txPhythe transmitting PHY
rxPhythe receiving PHY
lossDbthe loss in dB

Definition at line 87 of file adhoc-aloha-ideal-phy-matrix-propagation-loss-model.cc.

References ns3::ConstCast(), and m_pathlossMap.

+ Here is the call graph for this function:

Member Data Documentation

◆ m_pathlossMap

std::map<uint32_t, std::map<uint32_t, double> > GlobalPathlossDatabase::m_pathlossMap
private

Path loss map.

Definition at line 83 of file adhoc-aloha-ideal-phy-matrix-propagation-loss-model.cc.

Referenced by Print(), and UpdatePathloss().


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