handles interference calculations More...
#include <interference-helper.h>
Collaboration diagram for ns3::InterferenceHelper:Classes | |
| class | Event |
| class | NiChange |
| struct | SnrPer |
Public Member Functions | |
| InterferenceHelper () | |
| ~InterferenceHelper () | |
| Ptr< InterferenceHelper::Event > | Add (uint32_t size, WifiMode payloadMode, enum WifiPreamble preamble, Time duration, double rxPower, WifiTxVector txvector) |
| struct InterferenceHelper::SnrPer | CalculateSnrPer (Ptr< InterferenceHelper::Event > event) |
| void | EraseEvents (void) |
| Time | GetEnergyDuration (double energyW) |
| Ptr< ErrorRateModel > | GetErrorRateModel (void) const |
| double | GetNoiseFigure (void) const |
| void | NotifyRxEnd () |
| void | NotifyRxStart () |
| void | SetErrorRateModel (Ptr< ErrorRateModel > rate) |
| void | SetNoiseFigure (double value) |
Private Types | |
| typedef std::list< Ptr< Event > > | Events |
| typedef std::vector< NiChange > | NiChanges |
Private Member Functions | |
| InterferenceHelper (const InterferenceHelper &o) | |
| void | AddNiChangeEvent (NiChange change) |
| void | AppendEvent (Ptr< Event > event) |
| double | CalculateChunkSuccessRate (double snir, Time delay, WifiMode mode) const |
| double | CalculateNoiseInterferenceW (Ptr< Event > event, NiChanges *ni) const |
| double | CalculatePer (Ptr< const Event > event, NiChanges *ni) const |
| double | CalculateSnr (double signal, double noiseInterference, WifiMode mode) const |
| NiChanges::iterator | GetPosition (Time moment) |
| Returns an iterator to the first nichange, which is later than moment. More... | |
| InterferenceHelper & | operator= (const InterferenceHelper &o) |
Private Attributes | |
| Ptr< ErrorRateModel > | m_errorRateModel |
| double | m_firstPower |
| NiChanges | m_niChanges |
| Experimental: needed for energy duration calculation. More... | |
| double | m_noiseFigure |
| bool | m_rxing |
handles interference calculations
Definition at line 41 of file interference-helper.h.
|
private |
Definition at line 115 of file interference-helper.h.
|
private |
Definition at line 114 of file interference-helper.h.
| ns3::InterferenceHelper::InterferenceHelper | ( | ) |
Definition at line 124 of file interference-helper.cc.
| ns3::InterferenceHelper::~InterferenceHelper | ( | ) |
Definition at line 130 of file interference-helper.cc.
References EraseEvents(), and m_errorRateModel.
Here is the call graph for this function:
|
private |
| Ptr< InterferenceHelper::Event > ns3::InterferenceHelper::Add | ( | uint32_t | size, |
| WifiMode | payloadMode, | ||
| enum WifiPreamble | preamble, | ||
| Time | duration, | ||
| double | rxPower, | ||
| WifiTxVector | txvector | ||
| ) |
Definition at line 137 of file interference-helper.cc.
References AppendEvent().
Referenced by ns3::YansWifiPhy::StartReceivePacket().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 575 of file interference-helper.cc.
References GetPosition(), ns3::InterferenceHelper::NiChange::GetTime(), and m_niChanges.
Referenced by AppendEvent().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 202 of file interference-helper.cc.
References AddNiChangeEvent(), GetPosition(), m_firstPower, m_niChanges, m_rxing, and ns3::Simulator::Now().
Referenced by Add().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 257 of file interference-helper.cc.
References ns3::WifiMode::GetPhyRate(), ns3::Time::GetSeconds(), and m_errorRateModel.
Referenced by CalculatePer().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 239 of file interference-helper.cc.
References m_firstPower, m_niChanges, m_rxing, and NS_ASSERT.
Referenced by CalculateSnrPer().
Here is the caller graph for this function:
|
private |
Definition at line 270 of file interference-helper.cc.
References CalculateChunkSuccessRate(), CalculateSnr(), current, ns3::WifiPhy::GetMFPlcpHeaderMode(), ns3::WifiPhy::GetPlcpHeaderDurationMicroSeconds(), ns3::WifiPhy::GetPlcpHeaderMode(), ns3::WifiPhy::GetPlcpHtSigHeaderDurationMicroSeconds(), ns3::WifiPhy::GetPlcpHtTrainingSymbolDurationMicroSeconds(), ns3::WifiPhy::GetPlcpPreambleDurationMicroSeconds(), NS_ASSERT, ns3::WIFI_PREAMBLE_HT_GF, ns3::WIFI_PREAMBLE_HT_MF, ns3::WIFI_PREAMBLE_LONG, and ns3::WIFI_PREAMBLE_SHORT.
Referenced by CalculateSnrPer().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 225 of file interference-helper.cc.
References ns3::WifiMode::GetBandwidth(), and m_noiseFigure.
Referenced by CalculatePer(), and CalculateSnrPer().
Here is the call graph for this function:
Here is the caller graph for this function:| struct InterferenceHelper::SnrPer ns3::InterferenceHelper::CalculateSnrPer | ( | Ptr< InterferenceHelper::Event > | event | ) |
Definition at line 542 of file interference-helper.cc.
References CalculateNoiseInterferenceW(), CalculatePer(), CalculateSnr(), ns3::InterferenceHelper::SnrPer::per, and ns3::InterferenceHelper::SnrPer::snr.
Referenced by ns3::YansWifiPhy::EndReceive().
Here is the call graph for this function:
Here is the caller graph for this function:| void ns3::InterferenceHelper::EraseEvents | ( | void | ) |
Definition at line 562 of file interference-helper.cc.
References m_firstPower, m_niChanges, and m_rxing.
Referenced by ns3::YansWifiPhy::SetChannelNumber(), and ~InterferenceHelper().
Here is the caller graph for this function:| Time ns3::InterferenceHelper::GetEnergyDuration | ( | double | energyW | ) |
| energyW | the minimum energy (W) requested |
Definition at line 179 of file interference-helper.cc.
References m_firstPower, m_niChanges, and ns3::Simulator::Now().
Referenced by ns3::YansWifiPhy::StartReceivePacket().
Here is the call graph for this function:
Here is the caller graph for this function:| Ptr< ErrorRateModel > ns3::InterferenceHelper::GetErrorRateModel | ( | void | ) | const |
Definition at line 173 of file interference-helper.cc.
References m_errorRateModel.
Referenced by ns3::YansWifiPhy::CalculateSnr(), and ns3::YansWifiPhy::GetErrorRateModel().
Here is the caller graph for this function:| double ns3::InterferenceHelper::GetNoiseFigure | ( | void | ) | const |
Definition at line 161 of file interference-helper.cc.
References m_noiseFigure.
Referenced by ns3::YansWifiPhy::GetRxNoiseFigure().
Here is the caller graph for this function:
|
private |
Returns an iterator to the first nichange, which is later than moment.
Definition at line 569 of file interference-helper.cc.
References m_niChanges.
Referenced by AddNiChangeEvent(), and AppendEvent().
Here is the caller graph for this function:| void ns3::InterferenceHelper::NotifyRxEnd | ( | ) |
Definition at line 585 of file interference-helper.cc.
References m_rxing.
Referenced by ns3::YansWifiPhy::EndReceive(), and ns3::YansWifiPhy::SendPacket().
Here is the caller graph for this function:| void ns3::InterferenceHelper::NotifyRxStart | ( | void | ) |
Definition at line 580 of file interference-helper.cc.
References m_rxing.
Referenced by ns3::YansWifiPhy::StartReceivePacket().
Here is the caller graph for this function:
|
private |
| void ns3::InterferenceHelper::SetErrorRateModel | ( | Ptr< ErrorRateModel > | rate | ) |
Definition at line 167 of file interference-helper.cc.
References m_errorRateModel.
Referenced by ns3::YansWifiPhy::SetErrorRateModel().
Here is the caller graph for this function:| void ns3::InterferenceHelper::SetNoiseFigure | ( | double | value | ) |
Definition at line 155 of file interference-helper.cc.
References m_noiseFigure.
Referenced by ns3::YansWifiPhy::SetRxNoiseFigure().
Here is the caller graph for this function:
|
private |
Definition at line 126 of file interference-helper.h.
Referenced by CalculateChunkSuccessRate(), GetErrorRateModel(), SetErrorRateModel(), and ~InterferenceHelper().
|
private |
Definition at line 129 of file interference-helper.h.
Referenced by AppendEvent(), CalculateNoiseInterferenceW(), EraseEvents(), and GetEnergyDuration().
|
private |
Experimental: needed for energy duration calculation.
Definition at line 128 of file interference-helper.h.
Referenced by AddNiChangeEvent(), AppendEvent(), CalculateNoiseInterferenceW(), EraseEvents(), GetEnergyDuration(), and GetPosition().
|
private |
noise figure (linear)
Definition at line 125 of file interference-helper.h.
Referenced by CalculateSnr(), GetNoiseFigure(), and SetNoiseFigure().
|
private |
Definition at line 130 of file interference-helper.h.
Referenced by AppendEvent(), CalculateNoiseInterferenceW(), EraseEvents(), NotifyRxEnd(), and NotifyRxStart().