InterferenceExperiment. More...
Classes | |
struct | Input |
Input structure. More... | |
Public Member Functions | |
InterferenceExperiment () | |
void | Run (struct InterferenceExperiment::Input input) |
Run function. More... | |
Private Member Functions | |
void | PacketDropped (Ptr< const Packet > packet, WifiPhyRxfailureReason reason) |
Function triggered when a packet is dropped. More... | |
void | SendA (void) const |
Send A function. More... | |
void | SendB (void) const |
Send B function. More... | |
Private Attributes | |
bool | m_droppedA |
flag to indicate whether packet A has been dropped More... | |
bool | m_droppedB |
flag to indicate whether packet B has been dropped More... | |
struct Input | m_input |
input More... | |
Ptr< SpectrumWifiPhy > | m_txA |
transmit A function More... | |
Ptr< SpectrumWifiPhy > | m_txB |
transmit B function More... | |
uint64_t | m_uidA |
UID to use for packet A. More... | |
uint64_t | m_uidB |
UID to use for packet B. More... | |
Definition at line 80 of file wifi-test-interference-helper.cc.
InterferenceExperiment::InterferenceExperiment | ( | ) |
Definition at line 184 of file wifi-test-interference-helper.cc.
|
private |
Function triggered when a packet is dropped.
packet | the packet that was dropped |
reason | the reason why it was dropped |
Definition at line 167 of file wifi-test-interference-helper.cc.
References ns3::Packet::GetUid(), and NS_LOG_ERROR.
Referenced by Run().
void InterferenceExperiment::Run | ( | struct InterferenceExperiment::Input | input | ) |
Run function.
input | the interference experiment data |
Definition at line 215 of file wifi-test-interference-helper.cc.
References ns3::Node::AddDevice(), InterferenceExperiment::Input::band, InterferenceExperiment::Input::captureEnabled, InterferenceExperiment::Input::captureMargin, third::channel, InterferenceExperiment::Input::channelA, InterferenceExperiment::Input::channelB, checkResults, ns3::WifiPhy::ConfigureStandard(), ns3::SpectrumWifiPhy::CreateWifiSpectrumPhyInterface(), ns3::Object::Dispose(), expectRxASuccessfull, expectRxBSuccessfull, InterferenceExperiment::Input::interval, m_droppedA, m_droppedB, m_input, m_txA, m_txB, ns3::MakeCallback(), max, NS_LOG_ERROR, PacketDropped(), ns3::Seconds(), SendA(), SendB(), ns3::SpectrumWifiPhy::SetChannel(), ns3::Config::SetDefault(), ns3::WifiPhy::SetDevice(), ns3::WifiPhy::SetErrorRateModel(), ns3::WifiPhy::SetFrameCaptureModel(), ns3::WifiPhy::SetInterferenceHelper(), ns3::WifiPhy::SetMobility(), ns3::WifiPhy::SetOperatingChannel(), ns3::WifiNetDevice::SetPhy(), ns3::MobilityModel::SetPosition(), ns3::WifiPhy::SetTxPowerEnd(), ns3::WifiPhy::SetTxPowerStart(), InterferenceExperiment::Input::standard, ns3::ObjectBase::TraceConnectWithoutContext(), InterferenceExperiment::Input::txPowerLevelA, InterferenceExperiment::Input::txPowerLevelB, InterferenceExperiment::Input::xA, and InterferenceExperiment::Input::xB.
|
private |
Send A function.
Definition at line 135 of file wifi-test-interference-helper.cc.
References ns3::WifiMacHeader::GetSerializedSize(), ns3::Packet::GetUid(), ns3::WifiTxVector::SetChannelWidth(), ns3::WifiTxVector::SetMode(), ns3::WifiTxVector::SetPreambleType(), ns3::WifiTxVector::SetTxPowerLevel(), ns3::WifiMacHeader::SetType(), ns3::WIFI_MAC_CTL_ACK, and ns3::WIFI_MAC_FCS_LENGTH.
Referenced by Run().
|
private |
Send B function.
Definition at line 151 of file wifi-test-interference-helper.cc.
References ns3::WifiMacHeader::GetSerializedSize(), ns3::Packet::GetUid(), ns3::WifiTxVector::SetChannelWidth(), ns3::WifiTxVector::SetMode(), ns3::WifiTxVector::SetPreambleType(), ns3::WifiTxVector::SetTxPowerLevel(), ns3::WifiMacHeader::SetType(), ns3::WIFI_MAC_CTL_ACK, and ns3::WIFI_MAC_FCS_LENGTH.
Referenced by Run().
|
private |
flag to indicate whether packet A has been dropped
Definition at line 128 of file wifi-test-interference-helper.cc.
Referenced by Run().
|
private |
flag to indicate whether packet B has been dropped
Definition at line 129 of file wifi-test-interference-helper.cc.
Referenced by Run().
|
private |
|
private |
transmit A function
Definition at line 125 of file wifi-test-interference-helper.cc.
Referenced by Run().
|
private |
transmit B function
Definition at line 126 of file wifi-test-interference-helper.cc.
Referenced by Run().
|
mutableprivate |
UID to use for packet A.
Definition at line 130 of file wifi-test-interference-helper.cc.
|
mutableprivate |
UID to use for packet B.
Definition at line 131 of file wifi-test-interference-helper.cc.