25 #include "ns3/nstime.h"
29 #include <unordered_map>
43 class WifiPhyOperatingChannel;
48 typedef std::unordered_map<uint16_t , Ptr<const WifiPsdu> >
WifiConstPsduMap;
70 uint64_t uid = UINT64_MAX);
175 void Print(std::ostream& os)
const;
207 mutable std::optional<WifiTxVector>
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.
uint16_t GetTxCenterFreq() const
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.
uint16_t m_txChannelWidth
The channel width (MHz) used for the transmission of this PPDU.
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.
uint16_t m_txCenterFreq
the center frequency (MHz) used for the transmission of this PPDU
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
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
void SetTruncatedTx()
Indicate that the PPDU's transmission was aborted due to transmitter switch off.
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.
virtual uint16_t GetTxChannelWidth() const
Get the channel width over which the PPDU will effectively be transmitted.
uint8_t m_txAntennas
the number of antennas used to transmit this PPDU
bool DoesOverlapChannel(uint16_t minFreq, uint16_t maxFreq) const
Check whether the given PPDU overlaps a given channel.
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
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)