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
wifi-mac-queue-scheduler.cc
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2022 Universita' degli Studi 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 "
wifi-mac-queue-scheduler.h
"
10
11
#include "
wifi-mac.h
"
12
13
namespace
ns3
14
{
15
16
NS_LOG_COMPONENT_DEFINE
(
"WifiMacQueueScheduler"
);
17
18
NS_OBJECT_ENSURE_REGISTERED
(WifiMacQueueScheduler);
19
20
TypeId
21
WifiMacQueueScheduler::GetTypeId
()
22
{
23
static
TypeId
tid =
24
TypeId
(
"ns3::WifiMacQueueScheduler"
).
SetParent
<
Object
>().SetGroupName(
"Wifi"
);
25
return
tid;
26
}
27
28
void
29
WifiMacQueueScheduler::DoDispose
()
30
{
31
m_mac
=
nullptr
;
32
}
33
34
void
35
WifiMacQueueScheduler::SetWifiMac
(
Ptr<WifiMac>
mac)
36
{
37
NS_LOG_FUNCTION
(
this
<< mac);
38
m_mac
= mac;
39
}
40
41
Ptr<WifiMac>
42
WifiMacQueueScheduler::GetMac
()
const
43
{
44
return
m_mac
;
45
}
46
47
}
// namespace ns3
ns3::Object
A base class which provides memory management and object aggregation.
Definition
object.h:78
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition
mpi-test-fixtures.h:37
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::WifiMacQueueScheduler::SetWifiMac
virtual void SetWifiMac(Ptr< WifiMac > mac)
Set the wifi MAC.
Definition
wifi-mac-queue-scheduler.cc:35
ns3::WifiMacQueueScheduler::GetMac
Ptr< WifiMac > GetMac() const
Get the wifi MAC.
Definition
wifi-mac-queue-scheduler.cc:42
ns3::WifiMacQueueScheduler::DoDispose
void DoDispose() override
Destructor implementation.
Definition
wifi-mac-queue-scheduler.cc:29
ns3::WifiMacQueueScheduler::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition
wifi-mac-queue-scheduler.cc:21
ns3::WifiMacQueueScheduler::m_mac
Ptr< WifiMac > m_mac
MAC layer.
Definition
wifi-mac-queue-scheduler.h:242
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
#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
Every class exported by the ns3 library is enclosed in the ns3 namespace.
wifi-mac-queue-scheduler.h
wifi-mac.h
src
wifi
model
wifi-mac-queue-scheduler.cc
Generated on Fri Nov 8 2024 13:59:08 for ns-3 by
1.11.0