A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
no-op-handover-algorithm.cc
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2013 Budiarto Herman
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: Budiarto Herman <budiarto.herman@magister.fi>
18
*
19
*/
20
21
#include "
no-op-handover-algorithm.h
"
22
23
#include <ns3/log.h>
24
25
namespace
ns3
26
{
27
28
NS_LOG_COMPONENT_DEFINE
(
"NoOpHandoverAlgorithm"
);
29
30
NS_OBJECT_ENSURE_REGISTERED
(NoOpHandoverAlgorithm);
31
32
NoOpHandoverAlgorithm::NoOpHandoverAlgorithm
()
33
: m_handoverManagementSapUser(nullptr)
34
{
35
NS_LOG_FUNCTION
(
this
);
36
m_handoverManagementSapProvider
=
37
new
MemberLteHandoverManagementSapProvider<NoOpHandoverAlgorithm>
(
this
);
38
}
39
40
NoOpHandoverAlgorithm::~NoOpHandoverAlgorithm
()
41
{
42
NS_LOG_FUNCTION
(
this
);
43
}
44
45
void
46
NoOpHandoverAlgorithm::DoDispose
()
47
{
48
NS_LOG_FUNCTION
(
this
);
49
delete
m_handoverManagementSapProvider
;
50
}
51
52
TypeId
53
NoOpHandoverAlgorithm::GetTypeId
()
54
{
55
static
TypeId
tid =
TypeId
(
"ns3::NoOpHandoverAlgorithm"
)
56
.
SetParent
<
LteHandoverAlgorithm
>()
57
.SetGroupName(
"Lte"
)
58
.AddConstructor<
NoOpHandoverAlgorithm
>();
59
return
tid;
60
}
61
62
void
63
NoOpHandoverAlgorithm::SetLteHandoverManagementSapUser
(
LteHandoverManagementSapUser
* s)
64
{
65
NS_LOG_FUNCTION
(
this
<< s);
66
m_handoverManagementSapUser
= s;
67
}
68
69
LteHandoverManagementSapProvider
*
70
NoOpHandoverAlgorithm::GetLteHandoverManagementSapProvider
()
71
{
72
NS_LOG_FUNCTION
(
this
);
73
return
m_handoverManagementSapProvider
;
74
}
75
76
void
77
NoOpHandoverAlgorithm::DoInitialize
()
78
{
79
NS_LOG_FUNCTION
(
this
);
80
LteHandoverAlgorithm::DoInitialize
();
81
}
82
83
void
84
NoOpHandoverAlgorithm::DoReportUeMeas
(uint16_t rnti,
LteRrcSap::MeasResults
measResults)
85
{
86
NS_LOG_FUNCTION
(
this
<< rnti << (uint16_t)measResults.
measId
);
87
}
88
89
}
// end of namespace ns3
ns3::LteHandoverAlgorithm
The abstract base class of a handover algorithm that operates using the Handover Management SAP inter...
Definition:
lte-handover-algorithm.h:66
ns3::LteHandoverManagementSapProvider
Service Access Point (SAP) offered by the handover algorithm instance to the eNodeB RRC instance.
Definition:
lte-handover-management-sap.h:38
ns3::LteHandoverManagementSapUser
Service Access Point (SAP) offered by the eNodeB RRC instance to the handover algorithm instance.
Definition:
lte-handover-management-sap.h:65
ns3::NoOpHandoverAlgorithm
Handover algorithm implementation which simply does nothing.
Definition:
no-op-handover-algorithm.h:41
ns3::NoOpHandoverAlgorithm::~NoOpHandoverAlgorithm
~NoOpHandoverAlgorithm() override
Definition:
no-op-handover-algorithm.cc:40
ns3::NoOpHandoverAlgorithm::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition:
no-op-handover-algorithm.cc:53
ns3::NoOpHandoverAlgorithm::DoReportUeMeas
void DoReportUeMeas(uint16_t rnti, LteRrcSap::MeasResults measResults) override
Implementation of LteHandoverManagementSapProvider::ReportUeMeas.
Definition:
no-op-handover-algorithm.cc:84
ns3::NoOpHandoverAlgorithm::DoInitialize
void DoInitialize() override
Initialize() implementation.
Definition:
no-op-handover-algorithm.cc:77
ns3::NoOpHandoverAlgorithm::DoDispose
void DoDispose() override
Destructor implementation.
Definition:
no-op-handover-algorithm.cc:46
ns3::NoOpHandoverAlgorithm::m_handoverManagementSapProvider
LteHandoverManagementSapProvider * m_handoverManagementSapProvider
Receive API calls from the eNodeB RRC instance.
Definition:
no-op-handover-algorithm.h:73
ns3::NoOpHandoverAlgorithm::NoOpHandoverAlgorithm
NoOpHandoverAlgorithm()
Creates a No-op handover algorithm instance.
Definition:
no-op-handover-algorithm.cc:32
ns3::NoOpHandoverAlgorithm::GetLteHandoverManagementSapProvider
LteHandoverManagementSapProvider * GetLteHandoverManagementSapProvider() override
Export the "provider" part of the Handover Management SAP interface.
Definition:
no-op-handover-algorithm.cc:70
ns3::NoOpHandoverAlgorithm::m_handoverManagementSapUser
LteHandoverManagementSapUser * m_handoverManagementSapUser
Interface to the eNodeB RRC instance.
Definition:
no-op-handover-algorithm.h:71
ns3::NoOpHandoverAlgorithm::MemberLteHandoverManagementSapProvider< NoOpHandoverAlgorithm >
friend class MemberLteHandoverManagementSapProvider< NoOpHandoverAlgorithm >
let the forwarder class access the protected and private members
Definition:
no-op-handover-algorithm.h:59
ns3::NoOpHandoverAlgorithm::SetLteHandoverManagementSapUser
void SetLteHandoverManagementSapUser(LteHandoverManagementSapUser *s) override
Set the "user" part of the Handover Management SAP interface that this handover algorithm instance wi...
Definition:
no-op-handover-algorithm.cc:63
ns3::Object::DoInitialize
virtual void DoInitialize()
Initialize() implementation.
Definition:
object.cc:359
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:59
ns3::TypeId::SetParent
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition:
type-id.cc:931
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:240
NS_OBJECT_ENSURE_REGISTERED
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Definition:
object-base.h:46
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
no-op-handover-algorithm.h
ns3::LteRrcSap::MeasResults
MeasResults structure.
Definition:
lte-rrc-sap.h:717
ns3::LteRrcSap::MeasResults::measId
uint8_t measId
measure ID
Definition:
lte-rrc-sap.h:718
src
lte
model
no-op-handover-algorithm.cc
Generated on Sun Mar 3 2024 17:11:03 for ns-3 by
1.9.1