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
eht-configuration.cc
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2021 DERONNE SOFTWARE ENGINEERING
3
*
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 2 as
6
* published by the Free Software Foundation;
7
*
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program; if not, write to the Free Software
15
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
*
17
* Author: Sébastien Deronne <sebastien.deronne@gmail.com>
18
*/
19
20
#include "
eht-configuration.h
"
21
22
#include "ns3/boolean.h"
23
#include "ns3/log.h"
24
25
namespace
ns3
26
{
27
28
NS_LOG_COMPONENT_DEFINE
(
"EhtConfiguration"
);
29
30
NS_OBJECT_ENSURE_REGISTERED
(EhtConfiguration);
31
32
EhtConfiguration::EhtConfiguration
()
33
{
34
NS_LOG_FUNCTION
(
this
);
35
}
36
37
EhtConfiguration::~EhtConfiguration
()
38
{
39
NS_LOG_FUNCTION
(
this
);
40
}
41
42
TypeId
43
EhtConfiguration::GetTypeId
()
44
{
45
static
ns3::TypeId
tid =
46
ns3::TypeId
(
"ns3::EhtConfiguration"
)
47
.
SetParent
<
Object
>()
48
.SetGroupName(
"Wifi"
)
49
.AddConstructor<
EhtConfiguration
>()
50
.AddAttribute(
"EmlsrActivated"
,
51
"Whether EMLSR option is activated. If activated, EMLSR mode can be "
52
"enabled on the EMLSR links by an installed EMLSR Manager."
,
53
TypeId::ATTR_GET
|
54
TypeId::ATTR_CONSTRUCT
,
// prevent setting after construction
55
BooleanValue
(
false
),
56
MakeBooleanAccessor
(&
EhtConfiguration::m_emlsrActivated
),
57
MakeBooleanChecker
())
58
.AddAttribute(
"TransitionTimeout"
,
59
"The Transition Timeout (not used by non-AP MLDs). "
60
"Possible values are 0us or 2^n us, with n=7..16."
,
61
TimeValue
(
MicroSeconds
(0)),
62
MakeTimeAccessor
(&
EhtConfiguration::m_transitionTimeout
),
63
MakeTimeChecker
(
MicroSeconds
(0),
MicroSeconds
(65536)));
64
return
tid;
65
}
66
67
}
// namespace ns3
ns3::BooleanValue
AttributeValue implementation for Boolean.
Definition:
boolean.h:37
ns3::EhtConfiguration
EHT configuration.
Definition:
eht-configuration.h:38
ns3::EhtConfiguration::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition:
eht-configuration.cc:43
ns3::EhtConfiguration::m_emlsrActivated
bool m_emlsrActivated
whether EMLSR option is activated
Definition:
eht-configuration.h:50
ns3::EhtConfiguration::EhtConfiguration
EhtConfiguration()
Definition:
eht-configuration.cc:32
ns3::EhtConfiguration::m_transitionTimeout
Time m_transitionTimeout
Transition timeout.
Definition:
eht-configuration.h:51
ns3::EhtConfiguration::~EhtConfiguration
~EhtConfiguration() override
Definition:
eht-configuration.cc:37
ns3::Object
A base class which provides memory management and object aggregation.
Definition:
object.h:89
ns3::TimeValue
AttributeValue implementation for Time.
Definition:
nstime.h:1423
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:59
ns3::TypeId::ATTR_GET
@ ATTR_GET
The attribute can be read.
Definition:
type-id.h:64
ns3::TypeId::ATTR_CONSTRUCT
@ ATTR_CONSTRUCT
The attribute can be written at construction-time.
Definition:
type-id.h:66
ns3::TypeId::SetParent
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition:
type-id.cc:936
eht-configuration.h
ns3::MakeBooleanAccessor
Ptr< const AttributeAccessor > MakeBooleanAccessor(T1 a1)
Definition:
boolean.h:86
ns3::MakeBooleanChecker
Ptr< const AttributeChecker > MakeBooleanChecker()
Definition:
boolean.cc:124
ns3::MakeTimeChecker
Ptr< const AttributeChecker > MakeTimeChecker()
Helper to make an unbounded Time checker.
Definition:
nstime.h:1444
ns3::MakeTimeAccessor
Ptr< const AttributeAccessor > MakeTimeAccessor(T1 a1)
Definition:
nstime.h:1424
NS_LOG_COMPONENT_DEFINE
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition:
log.h:202
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:238
NS_OBJECT_ENSURE_REGISTERED
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Definition:
object-base.h:46
ns3::MicroSeconds
Time MicroSeconds(uint64_t value)
Construct a Time in the indicated unit.
Definition:
nstime.h:1360
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
wifi
model
eht
eht-configuration.cc
Generated on Sun Jul 2 2023 18:22:09 for ns-3 by
1.9.6