A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
wifi-protection-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_PROTECTION_MANAGER_H
22
#define WIFI_PROTECTION_MANAGER_H
23
24
#include "
wifi-protection.h
"
25
#include <memory>
26
#include "ns3/object.h"
27
28
29
namespace
ns3
{
30
31
class
WifiTxParameters;
32
class
WifiMacQueueItem;
33
class
WifiMac;
34
41
class
WifiProtectionManager
:
public
Object
42
{
43
public
:
48
static
TypeId
GetTypeId
(
void
);
49
virtual
~WifiProtectionManager
();
50
56
void
SetWifiMac
(
Ptr<WifiMac>
mac
);
57
68
virtual
std::unique_ptr<WifiProtection>
TryAddMpdu
(
Ptr<const WifiMacQueueItem>
mpdu,
69
const
WifiTxParameters
& txParams) = 0;
70
81
virtual
std::unique_ptr<WifiProtection>
TryAggregateMsdu
(
Ptr<const WifiMacQueueItem>
msdu,
82
const
WifiTxParameters
& txParams) = 0;
83
84
protected
:
85
virtual
void
DoDispose
(
void
);
86
87
Ptr<WifiMac>
m_mac
;
88
};
89
90
91
92
}
//namespace ns3
93
94
#endif
/* WIFI_PROTECTION_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::WifiProtectionManager
WifiProtectionManager is an abstract base class.
Definition:
wifi-protection-manager.h:42
ns3::WifiProtectionManager::TryAggregateMsdu
virtual std::unique_ptr< WifiProtection > TryAggregateMsdu(Ptr< const WifiMacQueueItem > msdu, const WifiTxParameters &txParams)=0
Determine the protection method to use if the given MSDU is aggregated to the current frame.
ns3::WifiProtectionManager::m_mac
Ptr< WifiMac > m_mac
MAC which is using this Protection Manager.
Definition:
wifi-protection-manager.h:87
ns3::WifiProtectionManager::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
Definition:
wifi-protection-manager.cc:33
ns3::WifiProtectionManager::~WifiProtectionManager
virtual ~WifiProtectionManager()
Definition:
wifi-protection-manager.cc:42
ns3::WifiProtectionManager::DoDispose
virtual void DoDispose(void)
Destructor implementation.
Definition:
wifi-protection-manager.cc:48
ns3::WifiProtectionManager::TryAddMpdu
virtual std::unique_ptr< WifiProtection > TryAddMpdu(Ptr< const WifiMacQueueItem > mpdu, const WifiTxParameters &txParams)=0
Determine the protection method to use if the given MPDU is added to the current frame.
ns3::WifiProtectionManager::SetWifiMac
void SetWifiMac(Ptr< WifiMac > mac)
Set the MAC which is using this Protection Manager.
Definition:
wifi-protection-manager.cc:56
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
wifi-protection.h
src
wifi
model
wifi-protection-manager.h
Generated on Tue Feb 6 2024 19:21:29 for ns-3 by
1.9.1