A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
GlobalPathlossDatabase Class Reference
+ Inheritance diagram for GlobalPathlossDatabase:
+ Collaboration diagram for GlobalPathlossDatabase:

Public Member Functions

void Print ()
void Print ()
virtual void UpdatePathloss (std::string context, Ptr< SpectrumPhy > txPhy, Ptr< SpectrumPhy > rxPhy, double lossDb)=0
void UpdatePathloss (std::string context, Ptr< SpectrumPhy > txPhy, Ptr< SpectrumPhy > rxPhy, double lossDb)

Protected Attributes

std::map< uint16_t, std::map
< uint64_t, double > > 
m_pathlossMap

Private Attributes

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

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 47 of file lena-pathloss-traces.cc.

Member Function Documentation

void GlobalPathlossDatabase::Print ( void  )

print the stored pathloss values to standard output

Definition at line 74 of file lena-pathloss-traces.cc.

References NS_LOG_FUNCTION.

Referenced by main().

+ Here is the caller graph for this function:

void GlobalPathlossDatabase::Print ( )

print the stored pathloss values to standard output

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

update the pathloss value

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

Implemented in UplinkGlobalPathlossDatabase, and DownlinkGlobalPathlossDatabase.

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

References ns3::SpectrumPhy::GetMobility(), and ns3::Object::GetObject().

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

update the pathloss value

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

Reimplemented in UplinkGlobalPathlossDatabase, and DownlinkGlobalPathlossDatabase.

Member Data Documentation

std::map<uint16_t, std::map<uint64_t, double> > GlobalPathlossDatabase::m_pathlossMap
protected

Definition at line 70 of file lena-pathloss-traces.cc.

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

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