|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
21 #ifndef WIFI_TX_PARAMETERS_H
22 #define WIFI_TX_PARAMETERS_H
26 #include "ns3/nstime.h"
33 class WifiMacQueueItem;
34 struct WifiProtection;
35 struct WifiAcknowledgment;
120 std::map<uint8_t, std::set<uint16_t>>
seqNumbers;
148 void Print (std::ostream &os)
const;
uint32_t ampduSize
the size in bytes of the A-MPDU if multiple MPDUs have been added, and zero otherwise
std::map< Mac48Address, PsduInfo > PsduInfoMap
Map containing information about the PSDUs addressed to every receiver.
const PsduInfo * GetPsduInfo(Mac48Address receiver) const
Get a pointer to the information about the PSDU addressed to the given receiver, if present,...
void Print(std::ostream &os) const
Print the object contents.
Time m_txDuration
TX duration of the frame.
const PsduInfoMap & GetPsduInfoMap(void) const
Get a const reference to the map containing information about PSDUs.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
uint32_t GetSize(Mac48Address receiver) const
Get the size in bytes of the (A-)MPDU addressed to the given receiver.
This class mimics the TXVECTOR which is to be passed to the PHY in order to define the parameters whi...
WifiTxParameters & operator=(const WifiTxParameters &txParams)
Copy assignment operator.
This class stores the TX parameters (TX vector, protection mechanism, acknowledgment mechanism,...
std::unique_ptr< WifiProtection > m_protection
protection method
Smart pointer class similar to boost::intrusive_ptr.
WifiMacHeader header
MAC header of the last MPDU added.
uint32_t GetSizeIfAddMpdu(Ptr< const WifiMacQueueItem > mpdu) const
Get the size in bytes of the frame in case the given MPDU is added.
std::map< uint8_t, std::set< uint16_t > > seqNumbers
set of the sequence numbers of the MPDUs added for each TID
std::pair< uint32_t, uint32_t > GetSizeIfAggregateMsdu(Ptr< const WifiMacQueueItem > msdu) const
Get the size in bytes of the frame in case the given MSDU is aggregated.
void Clear(void)
Reset the TX parameters.
Simulation virtual time values and global simulation resolution.
std::unique_ptr< WifiAcknowledgment > m_acknowledgment
acknowledgment method
static Time Min()
Minimum representable Time Not to be confused with Min(Time,Time).
WifiTxVector m_txVector
TXVECTOR of the frame being prepared.
PsduInfoMap m_info
information about the frame being prepared.
uint32_t amsduSize
the size in bytes of the MSDU or A-MSDU included in the last MPDU added
information about the frame being prepared for a specific receiver
void AggregateMsdu(Ptr< const WifiMacQueueItem > msdu)
Record that an MSDU is being aggregated to the last MPDU added to the frame that hase the same receiv...
void AddMpdu(Ptr< const WifiMacQueueItem > mpdu)
Record that an MPDU is being added to the current frame.
std::ostream & operator<<(std::ostream &os, const Angles &a)