A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
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"
25
#include "
mac-low-transmission-parameters.h
"
26
#include "
qos-txop.h
"
27
#include "
wifi-psdu.h
"
28
29
namespace
ns3
{
30
37
class
WifiAckPolicySelector
:
public
Object
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
:
88
Ptr<QosTxop>
m_qosTxop
;
89
};
90
91
}
//namespace ns3
92
93
#endif
/* WIFI_ACK_POLICY_SELECTOR_H */
qos-txop.h
ns3::Ptr< QosTxop >
ns3::WifiAckPolicySelector::DoDispose
virtual void DoDispose(void)
Destructor implementation.
Definition:
wifi-ack-policy-selector.cc:47
ns3::WifiAckPolicySelector::m_qosTxop
Ptr< QosTxop > m_qosTxop
the QoS Txop this selector is associated with
Definition:
wifi-ack-policy-selector.h:88
ns3::WifiAckPolicySelector::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
Definition:
wifi-ack-policy-selector.cc:32
ns3::WifiAckPolicySelector::~WifiAckPolicySelector
virtual ~WifiAckPolicySelector()
Definition:
wifi-ack-policy-selector.cc:41
ns3::MacLowTransmissionParameters
control how a packet is transmitted.
Definition:
mac-low-transmission-parameters.h:39
mac-low-transmission-parameters.h
ns3::WifiAckPolicySelector::GetQosTxop
Ptr< QosTxop > GetQosTxop(void) const
Get the QoS Txop associated with this ack policy selector.
Definition:
wifi-ack-policy-selector.cc:61
ns3::WifiAckPolicySelector::UpdateTxParams
virtual void UpdateTxParams(Ptr< WifiPsdu > psdu, MacLowTransmissionParameters ¶ms)=0
Update the transmission parameters related to the acknowledgment policy for the given PSDU...
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::WifiAckPolicySelector::SetQosTxop
void SetQosTxop(Ptr< QosTxop > qosTxop)
Set the QoS Txop associated with this ack policy selector.
Definition:
wifi-ack-policy-selector.cc:54
ns3::Object
A base class which provides memory management and object aggregation.
Definition:
object.h:87
ns3::WifiAckPolicySelector::SetAckPolicy
static void SetAckPolicy(Ptr< WifiPsdu > psdu, const MacLowTransmissionParameters ¶ms)
Set the QoS Ack Policy for the QoS Data frames contained in the given PSDU according to the given Mac...
Definition:
wifi-ack-policy-selector.cc:67
wifi-psdu.h
ns3::WifiAckPolicySelector
WifiAckPolicySelector is in charge of selecting the acknowledgment policy for PSDUs containing QoS Da...
Definition:
wifi-ack-policy-selector.h:37
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:58
src
wifi
model
wifi-ack-policy-selector.h
Generated on Wed Oct 7 2020 01:18:57 for ns-3 by
1.8.14