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. | |
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 71 of file adhoc-aloha-ideal-phy-matrix-propagation-loss-model.cc.
| void GlobalPathlossDatabase::Print | ( | ) |
print the stored pathloss values to standard output
Definition at line 111 of file adhoc-aloha-ideal-phy-matrix-propagation-loss-model.cc.
References m_pathlossMap.
| void GlobalPathlossDatabase::UpdatePathloss | ( | std::string | context, |
| Ptr< const SpectrumPhy > | txPhy, | ||
| Ptr< const SpectrumPhy > | rxPhy, | ||
| double | lossDb | ||
| ) |
update the pathloss value
| context | |
| txPhy | the transmitting PHY |
| rxPhy | the receiving PHY |
| lossDb | the loss in dB |
Definition at line 98 of file adhoc-aloha-ideal-phy-matrix-propagation-loss-model.cc.
References m_pathlossMap.
Path loss map.
Definition at line 94 of file adhoc-aloha-ideal-phy-matrix-propagation-loss-model.cc.
Referenced by Print(), and UpdatePathloss().