A Discrete-Event Network Simulator
API
wifi-ack-policy-selector.h
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2019 Universita' degli Studi di Napoli Federico II
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License version 2 as
7  * published by the Free Software Foundation;
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  * Author: Stefano Avallone <stavallo@unina.it>
19  */
20 
21 #ifndef WIFI_ACK_POLICY_SELECTOR_H
22 #define WIFI_ACK_POLICY_SELECTOR_H
23 
24 #include "ns3/object.h"
26 #include "qos-txop.h"
27 #include "wifi-psdu.h"
28 
29 namespace ns3 {
30 
38 {
39 public:
44  static TypeId GetTypeId (void);
45  virtual ~WifiAckPolicySelector();
46 
47  virtual void DoDispose (void);
48 
54  void SetQosTxop (Ptr<QosTxop> qosTxop);
55 
61  Ptr<QosTxop> GetQosTxop (void) const;
62 
73  static void SetAckPolicy (Ptr<WifiPsdu> psdu, const MacLowTransmissionParameters & params);
74 
85  virtual void UpdateTxParams (Ptr<WifiPsdu> psdu, MacLowTransmissionParameters & params) = 0;
86 
87 protected:
89 };
90 
91 } //namespace ns3
92 
93 #endif /* WIFI_ACK_POLICY_SELECTOR_H */
virtual void DoDispose(void)
Destructor implementation.
Ptr< QosTxop > m_qosTxop
the QoS Txop this selector is associated with
static TypeId GetTypeId(void)
Get the type ID.
control how a packet is transmitted.
Ptr< QosTxop > GetQosTxop(void) const
Get the QoS Txop associated with this ack policy selector.
virtual void UpdateTxParams(Ptr< WifiPsdu > psdu, MacLowTransmissionParameters &params)=0
Update the transmission parameters related to the acknowledgment policy for the given PSDU...
Every class exported by the ns3 library is enclosed in the ns3 namespace.
void SetQosTxop(Ptr< QosTxop > qosTxop)
Set the QoS Txop associated with this ack policy selector.
A base class which provides memory management and object aggregation.
Definition: object.h:87
static void SetAckPolicy(Ptr< WifiPsdu > psdu, const MacLowTransmissionParameters &params)
Set the QoS Ack Policy for the QoS Data frames contained in the given PSDU according to the given Mac...
WifiAckPolicySelector is in charge of selecting the acknowledgment policy for PSDUs containing QoS Da...
a unique identifier for an interface.
Definition: type-id.h:58