A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
wifi-ack-manager.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2020 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_MANAGER_H
22
#define WIFI_ACK_MANAGER_H
23
24
#include "
wifi-acknowledgment.h
"
25
#include <memory>
26
#include "ns3/object.h"
27
28
29
namespace
ns3
{
30
31
class
WifiTxParameters;
32
class
WifiMacQueueItem;
33
class
WifiPsdu;
34
class
WifiMac;
35
42
class
WifiAckManager
:
public
Object
43
{
44
public
:
49
static
TypeId
GetTypeId
(
void
);
50
virtual
~WifiAckManager
();
51
57
void
SetWifiMac
(
Ptr<WifiMac>
mac
);
58
65
static
void
SetQosAckPolicy
(
Ptr<WifiMacQueueItem>
item,
const
WifiAcknowledgment
* acknowledgment);
66
73
static
void
SetQosAckPolicy
(
Ptr<WifiPsdu>
psdu,
const
WifiAcknowledgment
* acknowledgment);
74
85
virtual
std::unique_ptr<WifiAcknowledgment>
TryAddMpdu
(
Ptr<const WifiMacQueueItem>
mpdu,
86
const
WifiTxParameters
& txParams) = 0;
87
98
virtual
std::unique_ptr<WifiAcknowledgment>
TryAggregateMsdu
(
Ptr<const WifiMacQueueItem>
msdu,
99
const
WifiTxParameters
& txParams) = 0;
100
101
protected
:
102
void
DoDispose
(
void
)
override
;
103
104
Ptr<WifiMac>
m_mac
;
105
};
106
107
108
109
}
//namespace ns3
110
111
#endif
/* WIFI_ACK_MANAGER_H */
ns3::Object
A base class which provides memory management and object aggregation.
Definition:
object.h:88
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition:
ptr.h:74
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:59
ns3::WifiAckManager
WifiAckManager is an abstract base class.
Definition:
wifi-ack-manager.h:43
ns3::WifiAckManager::TryAddMpdu
virtual std::unique_ptr< WifiAcknowledgment > TryAddMpdu(Ptr< const WifiMacQueueItem > mpdu, const WifiTxParameters &txParams)=0
Determine the acknowledgment method to use if the given MPDU is added to the current frame.
ns3::WifiAckManager::m_mac
Ptr< WifiMac > m_mac
MAC which is using this Acknowledgment Manager.
Definition:
wifi-ack-manager.h:104
ns3::WifiAckManager::DoDispose
void DoDispose(void) override
Destructor implementation.
Definition:
wifi-ack-manager.cc:49
ns3::WifiAckManager::SetQosAckPolicy
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.
Definition:
wifi-ack-manager.cc:64
ns3::WifiAckManager::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
Definition:
wifi-ack-manager.cc:34
ns3::WifiAckManager::SetWifiMac
void SetWifiMac(Ptr< WifiMac > mac)
Set the MAC which is using this Acknowledgment Manager.
Definition:
wifi-ack-manager.cc:57
ns3::WifiAckManager::TryAggregateMsdu
virtual std::unique_ptr< WifiAcknowledgment > TryAggregateMsdu(Ptr< const WifiMacQueueItem > msdu, const WifiTxParameters &txParams)=0
Determine the acknowledgment method to use if the given MSDU is aggregated to the current frame.
ns3::WifiAckManager::~WifiAckManager
virtual ~WifiAckManager()
Definition:
wifi-ack-manager.cc:43
ns3::WifiTxParameters
This class stores the TX parameters (TX vector, protection mechanism, acknowledgment mechanism,...
Definition:
wifi-tx-parameters.h:45
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
third.mac
mac
Definition:
third.py:99
ns3::WifiAcknowledgment
WifiAcknowledgment is an abstract base struct.
Definition:
wifi-acknowledgment.h:45
wifi-acknowledgment.h
src
wifi
model
wifi-ack-manager.h
Generated on Tue Feb 6 2024 19:21:29 for ns-3 by
1.9.1