Store the last pathloss value for each TX-RX pair. More...
#include <lte-global-pathloss-database.h>
Inheritance diagram for ns3::LteGlobalPathlossDatabase:
Collaboration diagram for ns3::LteGlobalPathlossDatabase:Public Member Functions | |
| virtual | ~LteGlobalPathlossDatabase (void) |
| double | GetPathloss (uint16_t cellId, uint64_t imsi) |
| void | Print () |
| print the stored pathloss values to standard output More... | |
| virtual void | UpdatePathloss (std::string context, Ptr< SpectrumPhy > txPhy, Ptr< SpectrumPhy > rxPhy, double lossDb)=0 |
| update the pathloss value More... | |
Protected Attributes | |
| std::map< uint16_t, std::map < uint64_t, double > > | m_pathlossMap |
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 40 of file lte-global-pathloss-database.h.
|
virtual |
Definition at line 34 of file lte-global-pathloss-database.cc.
| double ns3::LteGlobalPathlossDatabase::GetPathloss | ( | uint16_t | cellId, |
| uint64_t | imsi | ||
| ) |
| cellId | the id of the eNB |
| imsi | the id of the UE |
Definition at line 57 of file lte-global-pathloss-database.cc.
References m_pathlossMap, and NS_LOG_FUNCTION.
Referenced by LteEnbAntennaTestCase::DoRun().
Here is the caller graph for this function:| void ns3::LteGlobalPathlossDatabase::Print | ( | void | ) |
print the stored pathloss values to standard output
Definition at line 39 of file lte-global-pathloss-database.cc.
References m_pathlossMap, and NS_LOG_FUNCTION.
Referenced by main().
Here is the caller graph for this function:
|
pure virtual |
update the pathloss value
| context | |
| txPhy | the transmitting PHY |
| rxPhy | the receiving PHY |
| lossDb | the loss in dB |
Implemented in ns3::UplinkLteGlobalPathlossDatabase, and ns3::DownlinkLteGlobalPathlossDatabase.
|
protected |
Definition at line 75 of file lte-global-pathloss-database.h.
Referenced by GetPathloss(), Print(), ns3::DownlinkLteGlobalPathlossDatabase::UpdatePathloss(), and ns3::UplinkLteGlobalPathlossDatabase::UpdatePathloss().