A Discrete-Event Network Simulator
API
CollisionExperiment Class Reference

CollisionExperiment. More...

+ Collaboration diagram for CollisionExperiment:

Classes

struct  Input
 Input structure. More...
 
struct  Output
 Output struture. More...
 

Public Member Functions

 CollisionExperiment ()
 
struct CollisionExperiment::Output Run (struct CollisionExperiment::Input input)
 Run function. More...
 

Private Member Functions

void Receive (Ptr< Packet > p, double snr, WifiTxVector txVector)
 Receive function. More...
 
void SendA (void) const
 Send A function. More...
 
void SendB (void) const
 Send B function. More...
 

Private Attributes

uint32_t m_flowIdA
 flow ID A More...
 
uint32_t m_flowIdB
 flow ID B More...
 
struct Input m_input
 input More...
 
struct Output m_output
 output More...
 
Ptr< WifiPhym_txA
 transmit A More...
 
Ptr< WifiPhym_txB
 transmit B More...
 

Detailed Description

CollisionExperiment.

Definition at line 147 of file wifi-phy-test.cc.

Constructor & Destructor Documentation

CollisionExperiment::CollisionExperiment ( )

Definition at line 240 of file wifi-phy-test.cc.

Member Function Documentation

void CollisionExperiment::Receive ( Ptr< Packet p,
double  snr,
WifiTxVector  txVector 
)
private

Receive function.

Parameters
pthe packet
snrthe SNR
txVectorthe wifi transmit vector

Definition at line 224 of file wifi-phy-test.cc.

References ns3::Packet::FindFirstMatchingByteTag(), ns3::FlowIdTag::GetFlowId(), and PsrExperiment::m_output.

Referenced by Run().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CollisionExperiment::SendA ( void  ) const
private

Send A function.

Definition at line 200 of file wifi-phy-test.cc.

References ns3::Packet::AddByteTag(), PsrExperiment::m_input, ns3::WifiTxVector::SetMode(), ns3::WifiTxVector::SetPreambleType(), ns3::WifiTxVector::SetTxPowerLevel(), and ns3::WIFI_PREAMBLE_LONG.

Referenced by Run().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CollisionExperiment::SendB ( void  ) const
private

Send B function.

Definition at line 212 of file wifi-phy-test.cc.

References ns3::Packet::AddByteTag(), PsrExperiment::m_input, ns3::WifiTxVector::SetMode(), ns3::WifiTxVector::SetPreambleType(), ns3::WifiTxVector::SetTxPowerLevel(), and ns3::WIFI_PREAMBLE_LONG.

Referenced by Run().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

uint32_t CollisionExperiment::m_flowIdA
private

flow ID A

Definition at line 193 of file wifi-phy-test.cc.

Referenced by Run().

uint32_t CollisionExperiment::m_flowIdB
private

flow ID B

Definition at line 194 of file wifi-phy-test.cc.

Referenced by Run().

struct Input CollisionExperiment::m_input
private

input

Definition at line 195 of file wifi-phy-test.cc.

Referenced by Run().

struct Output CollisionExperiment::m_output
private

output

Definition at line 196 of file wifi-phy-test.cc.

Referenced by Run().

Ptr<WifiPhy> CollisionExperiment::m_txA
private

transmit A

Definition at line 191 of file wifi-phy-test.cc.

Referenced by Run().

Ptr<WifiPhy> CollisionExperiment::m_txB
private

transmit B

Definition at line 192 of file wifi-phy-test.cc.

Referenced by Run().


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