A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
InterferenceExperiment Class Reference

InterferenceExperiment. More...

+ Collaboration diagram for InterferenceExperiment:

Classes

struct  Input
 Input structure. More...
 

Public Member Functions

 InterferenceExperiment ()
 
void Run (InterferenceExperiment::Input input)
 Run function.
 

Private Member Functions

void PacketDropped (Ptr< const Packet > packet, WifiPhyRxfailureReason reason)
 Function triggered when a packet is dropped.
 
void SendA () const
 Send A function.
 
void SendB () const
 Send B function.
 

Private Attributes

bool m_droppedA
 flag to indicate whether packet A has been dropped
 
bool m_droppedB
 flag to indicate whether packet B has been dropped
 
Input m_input
 input
 
Ptr< SpectrumWifiPhym_txA
 transmit A function
 
Ptr< SpectrumWifiPhym_txB
 transmit B function
 
uint64_t m_uidA
 UID to use for packet A.
 
uint64_t m_uidB
 UID to use for packet B.
 

Detailed Description

Constructor & Destructor Documentation

◆ InterferenceExperiment()

InterferenceExperiment::InterferenceExperiment ( )

Definition at line 174 of file wifi-test-interference-helper.cc.

Member Function Documentation

◆ PacketDropped()

void InterferenceExperiment::PacketDropped ( Ptr< const Packet > packet,
WifiPhyRxfailureReason reason )
private

Function triggered when a packet is dropped.

Parameters
packetthe packet that was dropped
reasonthe reason why it was dropped

Definition at line 157 of file wifi-test-interference-helper.cc.

References m_droppedA, m_droppedB, m_uidA, m_uidB, and NS_LOG_ERROR.

Referenced by Run().

+ Here is the caller graph for this function:

◆ Run()

◆ SendA()

void InterferenceExperiment::SendA ( ) const
private

Send A function.

Definition at line 123 of file wifi-test-interference-helper.cc.

References ns3::Create(), ns3::WifiMacHeader::GetSerializedSize(), m_input, m_txA, m_uidA, InterferenceExperiment::Input::packetSizeA, InterferenceExperiment::Input::preamble, ns3::WifiTxVector::SetChannelWidth(), ns3::WifiTxVector::SetMode(), ns3::WifiTxVector::SetPreambleType(), ns3::WifiTxVector::SetTxPowerLevel(), ns3::WifiMacHeader::SetType(), InterferenceExperiment::Input::txModeA, InterferenceExperiment::Input::widthA, ns3::WIFI_MAC_CTL_ACK, and ns3::WIFI_MAC_FCS_LENGTH.

Referenced by Run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendB()

void InterferenceExperiment::SendB ( ) const
private

Send B function.

Definition at line 140 of file wifi-test-interference-helper.cc.

References ns3::Create(), ns3::WifiMacHeader::GetSerializedSize(), m_input, m_txB, m_uidB, InterferenceExperiment::Input::packetSizeB, InterferenceExperiment::Input::preamble, ns3::WifiTxVector::SetChannelWidth(), ns3::WifiTxVector::SetMode(), ns3::WifiTxVector::SetPreambleType(), ns3::WifiTxVector::SetTxPowerLevel(), ns3::WifiMacHeader::SetType(), InterferenceExperiment::Input::txModeB, InterferenceExperiment::Input::widthB, ns3::WIFI_MAC_CTL_ACK, and ns3::WIFI_MAC_FCS_LENGTH.

Referenced by Run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_droppedA

bool InterferenceExperiment::m_droppedA
private

flag to indicate whether packet A has been dropped

Definition at line 116 of file wifi-test-interference-helper.cc.

Referenced by PacketDropped(), and Run().

◆ m_droppedB

bool InterferenceExperiment::m_droppedB
private

flag to indicate whether packet B has been dropped

Definition at line 117 of file wifi-test-interference-helper.cc.

Referenced by PacketDropped(), and Run().

◆ m_input

Input InterferenceExperiment::m_input
private

input

Definition at line 115 of file wifi-test-interference-helper.cc.

Referenced by Run(), SendA(), and SendB().

◆ m_txA

Ptr<SpectrumWifiPhy> InterferenceExperiment::m_txA
private

transmit A function

Definition at line 113 of file wifi-test-interference-helper.cc.

Referenced by Run(), and SendA().

◆ m_txB

Ptr<SpectrumWifiPhy> InterferenceExperiment::m_txB
private

transmit B function

Definition at line 114 of file wifi-test-interference-helper.cc.

Referenced by Run(), and SendB().

◆ m_uidA

uint64_t InterferenceExperiment::m_uidA
mutableprivate

UID to use for packet A.

Definition at line 118 of file wifi-test-interference-helper.cc.

Referenced by PacketDropped(), and SendA().

◆ m_uidB

uint64_t InterferenceExperiment::m_uidB
mutableprivate

UID to use for packet B.

Definition at line 119 of file wifi-test-interference-helper.cc.

Referenced by PacketDropped(), and SendB().


The documentation for this class was generated from the following file: