A Discrete-Event Network Simulator
API
CollisionExperiment Class Reference
+ Collaboration diagram for CollisionExperiment:

Classes

struct  Input
 
struct  Output
 

Public Member Functions

 CollisionExperiment ()
 
struct CollisionExperiment::Output Run (struct CollisionExperiment::Input input)
 

Private Member Functions

void Receive (Ptr< Packet > p, double snr, WifiTxVector txVector, enum WifiPreamble preamble)
 
void SendA (void) const
 
void SendB (void) const
 

Private Attributes

uint32_t m_flowIdA
 
uint32_t m_flowIdB
 
struct Input m_input
 
struct Output m_output
 
Ptr< WifiPhym_txA
 
Ptr< WifiPhym_txB
 

Detailed Description

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

Constructor & Destructor Documentation

CollisionExperiment::CollisionExperiment ( )

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

Member Function Documentation

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

Definition at line 200 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

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

References ns3::Packet::AddByteTag(), PsrExperiment::m_input, ns3::WifiTxVector::SetMode(), 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

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

References ns3::Packet::AddByteTag(), PsrExperiment::m_input, ns3::WifiTxVector::SetMode(), 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

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

Referenced by Run().

uint32_t CollisionExperiment::m_flowIdB
private

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

Referenced by Run().

struct Input CollisionExperiment::m_input
private

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

Referenced by Run().

struct Output CollisionExperiment::m_output
private

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

Referenced by Run().

Ptr<WifiPhy> CollisionExperiment::m_txA
private

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

Referenced by Run().

Ptr<WifiPhy> CollisionExperiment::m_txB
private

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

Referenced by Run().


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