A Discrete-Event Network Simulator
API
InterferenceExperiment Class Reference

InterferenceExperiment. More...

+ Collaboration diagram for InterferenceExperiment:

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, 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< YansWifiPhym_txA
 transmit A function More...
 
Ptr< YansWifiPhym_txB
 transmit B function More...
 

Detailed Description

Constructor & Destructor Documentation

◆ InterferenceExperiment()

InterferenceExperiment::InterferenceExperiment ( )

Definition at line 162 of file 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 145 of file 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()

◆ SendA()

void InterferenceExperiment::SendA ( void  ) const
private

Send A function.

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

References ns3::WifiTxVector::SetTxPowerLevel().

Referenced by Run().

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

◆ SendB()

void InterferenceExperiment::SendB ( void  ) const
private

Send B function.

Definition at line 134 of file test-interference-helper.cc.

References ns3::WifiTxVector::SetTxPowerLevel().

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 118 of file 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 119 of file test-interference-helper.cc.

Referenced by Run().

◆ m_input

struct Input InterferenceExperiment::m_input
private

input

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

Referenced by Run().

◆ m_txA

Ptr<YansWifiPhy> InterferenceExperiment::m_txA
private

transmit A function

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

Referenced by Run().

◆ m_txB

Ptr<YansWifiPhy> InterferenceExperiment::m_txB
private

transmit B function

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

Referenced by Run().


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