A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Loading...
Searching...
No Matches
default-ap-emlsr-manager.cc
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2023 Universita' di Napoli Federico II
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: Stefano Avallone <stavallo@unina.it>
7
*/
8
9
#include "
default-ap-emlsr-manager.h
"
10
11
#include "ns3/log.h"
12
#include "ns3/wifi-phy.h"
13
#include "ns3/wifi-psdu.h"
14
15
namespace
ns3
16
{
17
18
NS_LOG_COMPONENT_DEFINE
(
"DefaultApEmlsrManager"
);
19
20
NS_OBJECT_ENSURE_REGISTERED
(DefaultApEmlsrManager);
21
22
TypeId
23
DefaultApEmlsrManager::GetTypeId
()
24
{
25
static
TypeId
tid =
TypeId
(
"ns3::DefaultApEmlsrManager"
)
26
.
SetParent
<
ApEmlsrManager
>()
27
.SetGroupName(
"Wifi"
)
28
.AddConstructor<
DefaultApEmlsrManager
>();
29
return
tid;
30
}
31
32
DefaultApEmlsrManager::DefaultApEmlsrManager
()
33
{
34
NS_LOG_FUNCTION
(
this
);
35
}
36
37
DefaultApEmlsrManager::~DefaultApEmlsrManager
()
38
{
39
NS_LOG_FUNCTION_NOARGS
();
40
}
41
42
Time
43
DefaultApEmlsrManager::GetDelayOnTxPsduNotForEmlsr
(
Ptr<const WifiPsdu>
psdu,
44
const
WifiTxVector
& txVector,
45
WifiPhyBand
band)
46
{
47
NS_LOG_FUNCTION
(
this
<< psdu << txVector << band);
48
// EMLSR clients switch back to listening operation at the end of the PPDU
49
return
WifiPhy::CalculateTxDuration
(psdu, txVector, band);
50
}
51
52
bool
53
DefaultApEmlsrManager::UpdateCwAfterFailedIcf
()
54
{
55
return
true
;
56
}
57
58
}
// namespace ns3
ns3::ApEmlsrManager
ApEmlsrManager is an abstract base class defining the API that EHT AP MLDs with EMLSR activated can u...
Definition
ap-emlsr-manager.h:31
ns3::DefaultApEmlsrManager
DefaultApEmlsrManager is the default AP EMLSR manager.
Definition
default-ap-emlsr-manager.h:23
ns3::DefaultApEmlsrManager::~DefaultApEmlsrManager
~DefaultApEmlsrManager() override
Definition
default-ap-emlsr-manager.cc:37
ns3::DefaultApEmlsrManager::UpdateCwAfterFailedIcf
bool UpdateCwAfterFailedIcf() override
Definition
default-ap-emlsr-manager.cc:53
ns3::DefaultApEmlsrManager::GetDelayOnTxPsduNotForEmlsr
Time GetDelayOnTxPsduNotForEmlsr(Ptr< const WifiPsdu > psdu, const WifiTxVector &txVector, WifiPhyBand band) override
This method is intended to be called when the AP MLD starts transmitting an SU frame that is not addr...
Definition
default-ap-emlsr-manager.cc:43
ns3::DefaultApEmlsrManager::DefaultApEmlsrManager
DefaultApEmlsrManager()
Definition
default-ap-emlsr-manager.cc:32
ns3::DefaultApEmlsrManager::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition
default-ap-emlsr-manager.cc:23
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition
mpi-test-fixtures.h:37
ns3::Time
Simulation virtual time values and global simulation resolution.
Definition
nstime.h:94
ns3::TypeId
a unique identifier for an interface.
Definition
type-id.h:48
ns3::TypeId::SetParent
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition
type-id.cc:1001
ns3::WifiPhy::CalculateTxDuration
static Time CalculateTxDuration(uint32_t size, const WifiTxVector &txVector, WifiPhyBand band, uint16_t staId=SU_STA_ID)
Definition
wifi-phy.cc:1572
ns3::WifiTxVector
This class mimics the TXVECTOR which is to be passed to the PHY in order to define the parameters whi...
Definition
wifi-tx-vector.h:101
default-ap-emlsr-manager.h
NS_LOG_COMPONENT_DEFINE
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition
log.h:191
NS_LOG_FUNCTION_NOARGS
#define NS_LOG_FUNCTION_NOARGS()
Output the name of the function.
Definition
log-macros-enabled.h:195
NS_LOG_FUNCTION
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
Definition
log-macros-enabled.h:229
NS_OBJECT_ENSURE_REGISTERED
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Definition
object-base.h:35
ns3::WifiPhyBand
WifiPhyBand
Identifies the PHY band.
Definition
wifi-phy-band.h:22
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
wifi
model
eht
default-ap-emlsr-manager.cc
Generated on Fri Nov 8 2024 13:59:07 for ns-3 by
1.11.0