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

CollisionExperiment. More...

+ Collaboration diagram for CollisionExperiment:

Classes

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

Public Member Functions

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

Private Member Functions

void Receive (Ptr< const WifiPsdu > psdu, RxSignalInfo rxSignalInfo, WifiTxVector txVector, std::vector< bool > statusPerMpdu)
 Receive function.
 
void SendA () const
 Send A function.
 
void SendB () const
 Send B function.
 

Private Attributes

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

Detailed Description

CollisionExperiment.

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

Constructor & Destructor Documentation

◆ CollisionExperiment()

CollisionExperiment::CollisionExperiment ( )

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

Member Function Documentation

◆ Receive()

void CollisionExperiment::Receive ( Ptr< const WifiPsdu psdu,
RxSignalInfo  rxSignalInfo,
WifiTxVector  txVector,
std::vector< bool >  statusPerMpdu 
)
private

Receive function.

Parameters
psduthe PSDU
rxSignalInfothe info on the received signal (
See also
RxSignalInfo)
Parameters
txVectorthe wifi transmit vector
statusPerMpdureception status per MPDU

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

References 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:

◆ Run()

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

Run function.

Parameters
inputthe collision experiment data
Returns
the experiment output

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

References ns3::FlowIdTag::AllocateFlowId(), ns3::Simulator::Destroy(), CollisionExperiment::Input::interval, m_flowIdA, m_flowIdB, m_input, m_output, m_txA, m_txB, ns3::MakeCallback(), CollisionExperiment::Input::nPackets, Receive(), CollisionExperiment::Output::receivedA, CollisionExperiment::Output::receivedB, ns3::Simulator::Run(), ns3::Simulator::Schedule(), ns3::Seconds(), SendA(), SendB(), ns3::WIFI_STANDARD_80211a, CollisionExperiment::Input::xA, and CollisionExperiment::Input::xB.

+ Here is the call graph for this function:

◆ SendA()

void CollisionExperiment::SendA ( ) const
private

Send A function.

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

References 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:

◆ SendB()

void CollisionExperiment::SendB ( ) const
private

Send B function.

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

References 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

◆ m_flowIdA

uint32_t CollisionExperiment::m_flowIdA
private

flow ID A

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

Referenced by Run().

◆ m_flowIdB

uint32_t CollisionExperiment::m_flowIdB
private

flow ID B

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

Referenced by Run().

◆ m_input

Input CollisionExperiment::m_input
private

input

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

Referenced by Run().

◆ m_output

Output CollisionExperiment::m_output
private

output

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

Referenced by Run().

◆ m_txA

Ptr<WifiPhy> CollisionExperiment::m_txA
private

transmit A

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

Referenced by Run().

◆ m_txB

Ptr<WifiPhy> CollisionExperiment::m_txB
private

transmit B

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

Referenced by Run().


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