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