A Discrete-Event Network Simulator
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
25namespace ns3
26{
27
28NS_LOG_COMPONENT_DEFINE("EhtConfiguration");
29
30NS_OBJECT_ENSURE_REGISTERED(EhtConfiguration);
31
33{
34 NS_LOG_FUNCTION(this);
35}
36
38{
39 NS_LOG_FUNCTION(this);
40}
41
44{
45 static ns3::TypeId tid =
46 ns3::TypeId("ns3::EhtConfiguration")
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.",
54 TypeId::ATTR_CONSTRUCT, // prevent setting after construction
55 BooleanValue(false),
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.",
64 return tid;
65}
66
67} // namespace ns3
AttributeValue implementation for Boolean.
Definition: boolean.h:37
EHT configuration.
static TypeId GetTypeId()
Get the type ID.
bool m_emlsrActivated
whether EMLSR option is activated
Time m_transitionTimeout
Transition timeout.
A base class which provides memory management and object aggregation.
Definition: object.h:89
AttributeValue implementation for Time.
Definition: nstime.h:1423
a unique identifier for an interface.
Definition: type-id.h:59
@ ATTR_GET
The attribute can be read.
Definition: type-id.h:64
@ ATTR_CONSTRUCT
The attribute can be written at construction-time.
Definition: type-id.h:66
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition: type-id.cc:936
Ptr< const AttributeAccessor > MakeBooleanAccessor(T1 a1)
Definition: boolean.h:86
Ptr< const AttributeChecker > MakeBooleanChecker()
Definition: boolean.cc:124
Ptr< const AttributeChecker > MakeTimeChecker()
Helper to make an unbounded Time checker.
Definition: nstime.h:1444
Ptr< const AttributeAccessor > MakeTimeAccessor(T1 a1)
Definition: nstime.h:1424
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition: log.h:202
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Definition: object-base.h:46
Time MicroSeconds(uint64_t value)
Construct a Time in the indicated unit.
Definition: nstime.h:1360
Every class exported by the ns3 library is enclosed in the ns3 namespace.