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

handles interference calculations More...

#include "interference-helper.h"

+ Inheritance diagram for ns3::Event:
+ Collaboration diagram for ns3::Event:

Public Member Functions

 Event (Ptr< const WifiPpdu > ppdu, const WifiTxVector &txVector, Time duration, RxPowerWattPerChannelBand &&rxPower)
 Create an Event with the given parameters.
 
 ~Event ()
 
Time GetDuration () const
 Return the duration of the signal.
 
Time GetEndTime () const
 Return the end time of the signal.
 
Ptr< const WifiPpduGetPpdu () const
 Return the PPDU.
 
double GetRxPowerW () const
 Return the total received power (W).
 
double GetRxPowerW (const WifiSpectrumBandInfo &band) const
 Return the received power (W) for a given band.
 
const RxPowerWattPerChannelBandGetRxPowerWPerBand () const
 Return the received power (W) for all bands.
 
Time GetStartTime () const
 Return the start time of the signal.
 
const WifiTxVectorGetTxVector () const
 Return the TXVECTOR of the PPDU.
 
void UpdateRxPowerW (const RxPowerWattPerChannelBand &rxPower)
 Update the received power (W) for all bands, i.e.
 
- Public Member Functions inherited from ns3::SimpleRefCount< Event >
 SimpleRefCount ()
 Default constructor.
 
 SimpleRefCount (const SimpleRefCount &o)
 Copy constructor.
 
uint32_t GetReferenceCount () const
 Get the reference count of the object.
 
SimpleRefCountoperator= (const SimpleRefCount &o)
 Assignment operator.
 
void Ref () const
 Increment the reference count.
 
void Unref () const
 Decrement the reference count.
 

Private Attributes

Time m_endTime
 end time
 
Ptr< const WifiPpdum_ppdu
 PPDU.
 
RxPowerWattPerChannelBand m_rxPowerW
 received power in watts per band
 
Time m_startTime
 start time
 
WifiTxVector m_txVector
 TXVECTOR.
 

Detailed Description

handles interference calculations

signal event for a PPDU.

Definition at line 39 of file interference-helper.h.

Constructor & Destructor Documentation

◆ Event()

ns3::Event::Event ( Ptr< const WifiPpdu ppdu,
const WifiTxVector txVector,
Time  duration,
RxPowerWattPerChannelBand &&  rxPower 
)

Create an Event with the given parameters.

Note that rxPower will be moved into this object.

Parameters
ppduthe PPDU
txVectorthe TXVECTOR
durationduration of the PPDU
rxPowerthe received power per band (W)

Definition at line 47 of file interference-helper.cc.

◆ ~Event()

ns3::Event::~Event ( )

Definition at line 59 of file interference-helper.cc.

References m_ppdu, and m_rxPowerW.

Member Function Documentation

◆ GetDuration()

Time ns3::Event::GetDuration ( ) const

Return the duration of the signal.

Returns
the duration of the signal

Definition at line 84 of file interference-helper.cc.

References m_endTime, and m_startTime.

◆ GetEndTime()

Time ns3::Event::GetEndTime ( ) const

Return the end time of the signal.

Returns
the end time of the signal

Definition at line 78 of file interference-helper.cc.

References m_endTime.

◆ GetPpdu()

Ptr< const WifiPpdu > ns3::Event::GetPpdu ( ) const

Return the PPDU.

Returns
the PPDU

Definition at line 66 of file interference-helper.cc.

References m_ppdu.

◆ GetRxPowerW() [1/2]

double ns3::Event::GetRxPowerW ( ) const

Return the total received power (W).

Returns
the total received power (W)

Definition at line 90 of file interference-helper.cc.

References m_rxPowerW, and NS_ASSERT.

◆ GetRxPowerW() [2/2]

double ns3::Event::GetRxPowerW ( const WifiSpectrumBandInfo band) const

Return the received power (W) for a given band.

Parameters
bandthe band for which the power should be returned
Returns
the received power (W) for a given band

Definition at line 102 of file interference-helper.cc.

References m_rxPowerW, and NS_ASSERT.

◆ GetRxPowerWPerBand()

const RxPowerWattPerChannelBand & ns3::Event::GetRxPowerWPerBand ( ) const

Return the received power (W) for all bands.

Returns
the received power (W) for all bands.

Definition at line 110 of file interference-helper.cc.

References m_rxPowerW.

◆ GetStartTime()

Time ns3::Event::GetStartTime ( ) const

Return the start time of the signal.

Returns
the start time of the signal

Definition at line 72 of file interference-helper.cc.

References m_startTime.

◆ GetTxVector()

const WifiTxVector & ns3::Event::GetTxVector ( ) const

Return the TXVECTOR of the PPDU.

Returns
the TXVECTOR of the PPDU

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

References m_txVector.

◆ UpdateRxPowerW()

void ns3::Event::UpdateRxPowerW ( const RxPowerWattPerChannelBand rxPower)

Update the received power (W) for all bands, i.e.

add up the received power to the current received power, for each band.

Parameters
rxPowerthe received power (W) for all bands.

Definition at line 122 of file interference-helper.cc.

References m_rxPowerW, and NS_ASSERT.

Member Data Documentation

◆ m_endTime

Time ns3::Event::m_endTime
private

end time

Definition at line 118 of file interference-helper.h.

Referenced by GetDuration(), and GetEndTime().

◆ m_ppdu

Ptr<const WifiPpdu> ns3::Event::m_ppdu
private

PPDU.

Definition at line 115 of file interference-helper.h.

Referenced by ~Event(), and GetPpdu().

◆ m_rxPowerW

RxPowerWattPerChannelBand ns3::Event::m_rxPowerW
private

received power in watts per band

Definition at line 119 of file interference-helper.h.

Referenced by ~Event(), GetRxPowerW(), GetRxPowerWPerBand(), and UpdateRxPowerW().

◆ m_startTime

Time ns3::Event::m_startTime
private

start time

Definition at line 117 of file interference-helper.h.

Referenced by GetDuration(), and GetStartTime().

◆ m_txVector

WifiTxVector ns3::Event::m_txVector
private

TXVECTOR.

Definition at line 116 of file interference-helper.h.

Referenced by GetTxVector().


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