A Discrete-Event Network Simulator
API
InterferenceExperiment Class Reference

InterferenceExperiment. More...

+ Collaboration diagram for InterferenceExperiment:

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< SpectrumWifiPhym_txA
 transmit A function More...
 
Ptr< SpectrumWifiPhym_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...
 

Detailed Description

Constructor & Destructor Documentation

◆ InterferenceExperiment()

InterferenceExperiment::InterferenceExperiment ( )

Definition at line 184 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 167 of file wifi-test-interference-helper.cc.

References ns3::Packet::GetUid(), and NS_LOG_ERROR.

Referenced by Run().

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

◆ Run()

void InterferenceExperiment::Run ( struct InterferenceExperiment::Input  input)

◆ SendA()

void InterferenceExperiment::SendA ( void  ) const
private

◆ SendB()

void InterferenceExperiment::SendB ( void  ) const
private

Member Data Documentation

◆ m_droppedA

bool InterferenceExperiment::m_droppedA
private

flag to indicate whether packet A has been dropped

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

Referenced by Run().

◆ m_droppedB

bool InterferenceExperiment::m_droppedB
private

flag to indicate whether packet B has been dropped

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

Referenced by Run().

◆ m_input

struct Input InterferenceExperiment::m_input
private

input

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

Referenced by Run().

◆ m_txA

Ptr<SpectrumWifiPhy> InterferenceExperiment::m_txA
private

transmit A function

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

Referenced by Run().

◆ m_txB

Ptr<SpectrumWifiPhy> InterferenceExperiment::m_txB
private

transmit B function

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

Referenced by Run().

◆ m_uidA

uint64_t InterferenceExperiment::m_uidA
mutableprivate

UID to use for packet A.

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

◆ m_uidB

uint64_t InterferenceExperiment::m_uidB
mutableprivate

UID to use for packet B.

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


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