14#include "ns3/nstime.h"
18#include <unordered_map>
33class WifiPhyOperatingChannel;
60 uint64_t uid = UINT64_MAX);
165 void Print(std::ostream& os)
const;
198 mutable std::optional<WifiTxVector>
Smart pointer class similar to boost::intrusive_ptr.
A template-based reference counting class.
Simulation virtual time values and global simulation resolution.
Class that keeps track of all information about the current PHY operating channel.
WifiPpdu stores a preamble, a modulation class, PHY headers and a PSDU.
void Print(std::ostream &os) const
Print the PPDU contents.
virtual Time GetTxDuration() const
Get the total transmission duration of the PPDU.
bool IsTruncatedTx() const
WifiPreamble GetPreamble() const
Get the preamble of the PPDU.
virtual MHz_u GetTxChannelWidth() const
Get the channel width over which the PPDU will effectively be transmitted.
void ResetTxVector() const
Reset the TXVECTOR.
virtual uint16_t GetStaId() const
Get the ID of the STA that transmitted the PPDU for UL MU, SU_STA_ID otherwise.
const WifiPhyOperatingChannel & m_operatingChannel
the operating channel of the PHY
WifiPpdu(Ptr< const WifiPsdu > psdu, const WifiTxVector &txVector, const WifiPhyOperatingChannel &channel, uint64_t uid=UINT64_MAX)
Create a PPDU storing a PSDU.
void UpdateTxVector(const WifiTxVector &updatedTxVector) const
Update the TXVECTOR based on some information known at the receiver.
virtual WifiPpduType GetType() const
Return the PPDU type (.
std::optional< WifiTxVector > m_txVector
the TXVECTOR at TX PHY or the reconstructed TXVECTOR at RX PHY (or std::nullopt if TXVECTOR has not b...
WifiModulationClass m_modulation
the modulation used for the transmission of this PPDU
WifiPreamble m_preamble
the PHY preamble
MHz_u m_txChannelWidth
The channel width used for the transmission of this PPDU.
virtual ~WifiPpdu()
Destructor for WifiPpdu.
Ptr< const WifiPsdu > GetPsdu() const
Get the payload of the PPDU.
virtual WifiTxVector DoGetTxVector() const
Get the TXVECTOR used to send the PPDU.
uint64_t m_uid
the unique ID of this PPDU
std::vector< MHz_u > m_txCenterFreqs
the center frequency per segment used for the transmission of this PPDU
void SetTruncatedTx()
Indicate that the PPDU's transmission was aborted due to transmitter switch off.
bool DoesOverlapChannel(MHz_u minFreq, MHz_u maxFreq) const
Check whether the given PPDU overlaps a given channel.
const WifiTxVector & GetTxVector() const
Get the TXVECTOR used to send the PPDU.
uint64_t GetUid() const
Get the UID of the PPDU.
WifiModulationClass GetModulation() const
Get the modulation used for the PPDU.
WifiConstPsduMap m_psdus
the PSDUs contained in this PPDU
virtual std::string PrintPayload() const
Print the payload of the PPDU.
uint8_t m_txAntennas
the number of antennas used to transmit this PPDU
uint8_t m_txPowerLevel
the transmission power level (used only for TX and initializing the returned WifiTxVector)
virtual Ptr< WifiPpdu > Copy() const
Copy this instance.
bool m_truncatedTx
flag indicating whether the frame's transmission was aborted due to transmitter switch off
std::vector< MHz_u > GetTxCenterFreqs() const
This class mimics the TXVECTOR which is to be passed to the PHY in order to define the parameters whi...
WifiPreamble
The type of preamble to be used by an IEEE 802.11 transmission.
WifiPpduType
The type of PPDU (SU, DL MU, or UL MU)
WifiModulationClass
This enumeration defines the modulation classes per (Table 10-6 "Modulation classes"; IEEE 802....
Every class exported by the ns3 library is enclosed in the ns3 namespace.
std::unordered_map< uint16_t, Ptr< const WifiPsdu > > WifiConstPsduMap
Map of const PSDUs indexed by STA-ID.
std::ostream & operator<<(std::ostream &os, const Angles &a)