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

PsrExperiment. More...

+ Collaboration diagram for PsrExperiment:

Classes

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

Public Member Functions

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

Private Member Functions

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

Private Attributes

Input m_input
 input
 
Output m_output
 output
 
Ptr< WifiPhym_tx
 transmit
 

Detailed Description

PsrExperiment.

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

Constructor & Destructor Documentation

◆ PsrExperiment()

PsrExperiment::PsrExperiment ( )

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

Member Function Documentation

◆ Receive()

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

Send 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 96 of file wifi-phy-test.cc.

References m_output, and PsrExperiment::Output::received.

Referenced by Run().

+ Here is the caller graph for this function:

◆ Run()

PsrExperiment::Output PsrExperiment::Run ( PsrExperiment::Input  input)

Run function.

Parameters
inputthe PSR experiment
Returns
the PSR experiment output

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

References ns3::Simulator::Destroy(), PsrExperiment::Input::distance, m_input, m_output, m_tx, ns3::MakeCallback(), PsrExperiment::Input::nPackets, Receive(), PsrExperiment::Output::received, ns3::Simulator::Run(), ns3::Simulator::Schedule(), ns3::Seconds(), Send(), and ns3::WIFI_STANDARD_80211a.

+ Here is the call graph for this function:

◆ Send()

void PsrExperiment::Send ( )
private

Send function.

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

References m_input, m_tx, PsrExperiment::Input::packetSize, ns3::WifiPhy::Send(), ns3::WifiTxVector::SetMode(), ns3::WifiTxVector::SetPreambleType(), ns3::WifiTxVector::SetTxPowerLevel(), PsrExperiment::Input::txMode, PsrExperiment::Input::txPowerLevel, 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_input

Input PsrExperiment::m_input
private

input

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

Referenced by Run(), Send(), CollisionExperiment::SendA(), and CollisionExperiment::SendB().

◆ m_output

Output PsrExperiment::m_output
private

output

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

Referenced by Receive(), CollisionExperiment::Receive(), and Run().

◆ m_tx

Ptr<WifiPhy> PsrExperiment::m_tx
private

transmit

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

Referenced by Run(), and Send().


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