|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
38 .SetGroupName (
"Wifi")
91 for (
const auto& tid : psdu->
GetTids ())
a unique identifier for an interface.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file,...
Mac48Address GetAddr1(void) const
Get the Receiver Address (RA), which is common to all the MPDUs.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
void DoDispose(void) override
Destructor implementation.
const WifiMacHeader & GetHeader(void) const
Get the header stored in this item.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Smart pointer class similar to boost::intrusive_ptr.
A base class which provides memory management and object aggregation.
void SetWifiMac(Ptr< RegularWifiMac > mac)
Set the MAC which is using this Acknowledgment Manager.
std::size_t GetNMpdus(void) const
Return the number of MPDUs constituting the PSDU.
std::set< uint8_t > GetTids(void) const
Get the set of TIDs of the QoS Data frames included in the PSDU.
virtual ~WifiAckManager()
void SetAckPolicyForTid(uint8_t tid, WifiMacHeader::QosAckPolicy policy)
Set the QoS Ack Policy of the QoS Data frames included in the PSDU that have the given TID to the giv...
static void SetQosAckPolicy(Ptr< WifiMacQueueItem > item, const WifiAcknowledgment *acknowledgment)
Set the QoS Ack policy for the given MPDU, which must be a QoS data frame.
#define NS_LOG_FUNCTION_NOARGS()
Output the name of the function.
WifiAcknowledgment is an abstract base struct.
static TypeId GetTypeId(void)
Get the type ID.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
Ptr< RegularWifiMac > m_mac
MAC which is using this Acknowledgment Manager.
WifiMacHeader::QosAckPolicy GetQosAckPolicy(Mac48Address receiver, uint8_t tid) const
Get the QoS Ack policy to use for the MPDUs addressed to the given receiver and belonging to the give...
std::vector< Ptr< WifiMacQueueItem > >::const_iterator begin(void) const
Return a const iterator to the first MPDU.
virtual void DoDispose(void)
Destructor implementation.