|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
25 #include "ns3/nstime.h"
27 #include <unordered_map>
43 typedef std::unordered_map <uint16_t , Ptr<const WifiPsdu> >
WifiConstPsduMap;
127 virtual bool CanBeReceived (uint16_t txCenterFreq, uint16_t p20MinFreq,
128 uint16_t p20MaxFreq)
const;
140 uint64_t
GetUid (
void)
const;
152 void Print (std::ostream &os)
const;
170 virtual uint16_t
GetStaId (
void)
const;
void SetTruncatedTx(void)
Indicate that the PPDU's transmission was aborted due to transmitter switch off.
virtual Time GetTxDuration(void) const
Get the total transmission duration of the PPDU.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
WifiTxVector GetTxVector(void) const
Get the TXVECTOR used to send the PPDU.
virtual bool CanBeReceived(uint16_t txCenterFreq, uint16_t p20MinFreq, uint16_t p20MaxFreq) const
Check whether the given PPDU can be received on the specified primary channel.
WifiModulationClass m_modulation
the modulation used for the transmission of this PPDU
uint64_t GetUid(void) const
Get the UID of the PPDU.
A template-based reference counting class.
WifiPpdu stores a preamble, a modulation class, PHY headers and a PSDU.
virtual WifiTxVector DoGetTxVector(void) const
Get the TXVECTOR used to send the PPDU.
This class mimics the TXVECTOR which is to be passed to the PHY in order to define the parameters whi...
bool IsTruncatedTx(void) const
std::unordered_map< uint16_t, Ptr< const WifiPsdu > > WifiConstPsduMap
Map of const PSDUs indexed by STA-ID.
WifiModulationClass GetModulation(void) const
Get the modulation used for the PPDU.
uint8_t m_txPowerLevel
the transmission power level (used only for TX and initializing the returned WifiTxVector)
WifiPpdu(Ptr< const WifiPsdu > psdu, const WifiTxVector &txVector, uint64_t uid=UINT64_MAX)
Create a PPDU storing a PSDU.
Simulation virtual time values and global simulation resolution.
virtual Ptr< WifiPpdu > Copy(void) const
Copy this instance.
void Print(std::ostream &os) const
Print the PPDU contents.
WifiPreamble
The type of preamble to be used by an IEEE 802.11 transmission.
virtual ~WifiPpdu()
Destructor for WifiPpdu.
WifiPpduType
The type of PPDU (SU, DL MU, or UL MU)
uint8_t m_txAntennas
the number of antennas used to transmit this PPDU
bool m_truncatedTx
flag indicating whether the frame's transmission was aborted due to transmitter switch off
virtual std::string PrintPayload(void) const
Print the payload of the PPDU.
WifiPreamble GetPreamble(void) const
Get the preamble of the PPDU.
uint64_t m_uid
the unique ID of this PPDU
virtual uint16_t GetTransmissionChannelWidth(void) const
Get the channel width over which the PPDU will effectively be transmitted.
virtual uint16_t GetStaId(void) const
Get the ID of the STA that transmitted the PPDU for UL MU, SU_STA_ID otherwise.
virtual WifiPpduType GetType(void) const
Return the PPDU type (.
std::ostream & operator<<(std::ostream &os, const Angles &a)
Ptr< const WifiPsdu > GetPsdu(void) const
Get the payload of the PPDU.
WifiPreamble m_preamble
the PHY preamble
WifiConstPsduMap m_psdus
the PSDUs contained in this PPDU
WifiModulationClass
This enumeration defines the modulation classes per (Table 10-6 "Modulation classes"; IEEE 802....