InterferenceExperiment. More...
Classes | |
struct | Input |
Input atructure. More... | |
Public Member Functions | |
InterferenceExperiment () | |
void | Run (struct InterferenceExperiment::Input input) |
Run function. More... | |
Private Member Functions | |
void | PacketDropped (Ptr< const Packet > packet) |
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< YansWifiPhy > | m_txA |
transmit A function More... | |
Ptr< YansWifiPhy > | m_txB |
transmit B function More... | |
Definition at line 75 of file test-interference-helper.cc.
InterferenceExperiment::InterferenceExperiment | ( | ) |
Definition at line 161 of file test-interference-helper.cc.
Function triggered when a packet is dropped.
packet | the packet that was dropped |
Definition at line 144 of file 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 185 of file test-interference-helper.cc.
References InterferenceExperiment::Input::captureEnabled, InterferenceExperiment::Input::captureMargin, third::channel, checkResults, ns3::WifiPhy::ConfigureStandard(), 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::YansWifiPhy::SetChannel(), ns3::Config::SetDefault(), ns3::WifiPhy::SetErrorRateModel(), ns3::WifiPhy::SetFrameCaptureModel(), ns3::SimpleFrameCaptureModel::SetMargin(), ns3::WifiPhy::SetMobility(), 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 122 of file test-interference-helper.cc.
References ns3::WifiTxVector::SetTxPowerLevel().
Referenced by Run().
|
private |
Send B function.
Definition at line 133 of file test-interference-helper.cc.
References ns3::WifiTxVector::SetTxPowerLevel().
Referenced by Run().
|
private |
flag to indicate whether packet A has been dropped
Definition at line 117 of file test-interference-helper.cc.
Referenced by Run().
|
private |
flag to indicate whether packet B has been dropped
Definition at line 118 of file test-interference-helper.cc.
Referenced by Run().
|
private |
|
private |
transmit A function
Definition at line 114 of file test-interference-helper.cc.
Referenced by Run().
|
private |
transmit B function
Definition at line 115 of file test-interference-helper.cc.
Referenced by Run().