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
ff-mac-scheduler.cc
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: Nicola Baldo <nbaldo@cttc.es>
7
*/
8
9
#include "
ff-mac-scheduler.h
"
10
11
#include <ns3/enum.h>
12
#include <ns3/log.h>
13
14
namespace
ns3
15
{
16
17
NS_LOG_COMPONENT_DEFINE
(
"FfMacScheduler"
);
18
19
NS_OBJECT_ENSURE_REGISTERED
(FfMacScheduler);
20
21
FfMacScheduler::FfMacScheduler
()
22
: m_ulCqiFilter(SRS_UL_CQI)
23
{
24
NS_LOG_FUNCTION
(
this
);
25
}
26
27
FfMacScheduler::~FfMacScheduler
()
28
{
29
NS_LOG_FUNCTION
(
this
);
30
}
31
32
void
33
FfMacScheduler::DoDispose
()
34
{
35
NS_LOG_FUNCTION
(
this
);
36
}
37
38
TypeId
39
FfMacScheduler::GetTypeId
()
40
{
41
static
TypeId
tid =
42
TypeId
(
"ns3::FfMacScheduler"
)
43
.
SetParent
<
Object
>()
44
.SetGroupName(
"Lte"
)
45
.AddAttribute(
"UlCqiFilter"
,
46
"The filter to apply on UL CQIs received"
,
47
EnumValue
(
FfMacScheduler::SRS_UL_CQI
),
48
MakeEnumAccessor<UlCqiFilter_t>
(&
FfMacScheduler::m_ulCqiFilter
),
49
MakeEnumChecker
(
FfMacScheduler::SRS_UL_CQI
,
50
"SRS_UL_CQI"
,
51
FfMacScheduler::PUSCH_UL_CQI
,
52
"PUSCH_UL_CQI"
));
53
return
tid;
54
}
55
56
}
// namespace ns3
ns3::EnumValue
Hold variables of type enum.
Definition
enum.h:52
ns3::FfMacScheduler::DoDispose
void DoDispose() override
Destructor implementation.
Definition
ff-mac-scheduler.cc:33
ns3::FfMacScheduler::~FfMacScheduler
~FfMacScheduler() override
destructor
Definition
ff-mac-scheduler.cc:27
ns3::FfMacScheduler::PUSCH_UL_CQI
@ PUSCH_UL_CQI
Definition
ff-mac-scheduler.h:83
ns3::FfMacScheduler::SRS_UL_CQI
@ SRS_UL_CQI
Definition
ff-mac-scheduler.h:82
ns3::FfMacScheduler::FfMacScheduler
FfMacScheduler()
constructor
Definition
ff-mac-scheduler.cc:21
ns3::FfMacScheduler::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition
ff-mac-scheduler.cc:39
ns3::FfMacScheduler::m_ulCqiFilter
UlCqiFilter_t m_ulCqiFilter
UL CQI filter.
Definition
ff-mac-scheduler.h:151
ns3::Object
A base class which provides memory management and object aggregation.
Definition
object.h:78
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
ff-mac-scheduler.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
#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.
ns3::MakeEnumChecker
Ptr< const AttributeChecker > MakeEnumChecker(T v, std::string n, Ts... args)
Make an EnumChecker pre-configured with a set of allowed values by name.
Definition
enum.h:179
ns3::MakeEnumAccessor
Ptr< const AttributeAccessor > MakeEnumAccessor(T1 a1)
Definition
enum.h:221
src
lte
model
ff-mac-scheduler.cc
Generated on Fri Nov 8 2024 13:59:03 for ns-3 by
1.11.0