A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
no-op-handover-algorithm.cc
Go to the documentation of this file.
1
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2013 Budiarto Herman
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License version 2 as
7
* published by the Free Software Foundation;
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
*
18
* Author: Budiarto Herman <budiarto.herman@magister.fi>
19
*
20
*/
21
22
#include "
no-op-handover-algorithm.h
"
23
#include <ns3/log.h>
24
25
NS_LOG_COMPONENT_DEFINE
(
"NoOpHandoverAlgorithm"
);
26
27
namespace
ns3 {
28
29
NS_OBJECT_ENSURE_REGISTERED
(NoOpHandoverAlgorithm);
30
31
32
NoOpHandoverAlgorithm::NoOpHandoverAlgorithm
()
33
: m_handoverManagementSapUser (0)
34
{
35
NS_LOG_FUNCTION
(
this
);
36
m_handoverManagementSapProvider
=
new
MemberLteHandoverManagementSapProvider<NoOpHandoverAlgorithm>
(
this
);
37
}
38
39
40
NoOpHandoverAlgorithm::~NoOpHandoverAlgorithm
()
41
{
42
NS_LOG_FUNCTION
(
this
);
43
}
44
45
46
void
47
NoOpHandoverAlgorithm::DoDispose
()
48
{
49
NS_LOG_FUNCTION
(
this
);
50
delete
m_handoverManagementSapProvider
;
51
}
52
53
54
TypeId
55
NoOpHandoverAlgorithm::GetTypeId
()
56
{
57
static
TypeId
tid =
TypeId
(
"ns3::NoOpHandoverAlgorithm"
)
58
.
SetParent
<
LteHandoverAlgorithm
> ()
59
.AddConstructor<NoOpHandoverAlgorithm> ()
60
;
61
return
tid;
62
}
63
64
65
void
66
NoOpHandoverAlgorithm::SetLteHandoverManagementSapUser
(
LteHandoverManagementSapUser
*
s
)
67
{
68
NS_LOG_FUNCTION
(
this
<< s);
69
m_handoverManagementSapUser
=
s
;
70
}
71
72
73
LteHandoverManagementSapProvider
*
74
NoOpHandoverAlgorithm::GetLteHandoverManagementSapProvider
()
75
{
76
NS_LOG_FUNCTION
(
this
);
77
return
m_handoverManagementSapProvider
;
78
}
79
80
81
void
82
NoOpHandoverAlgorithm::DoInitialize
()
83
{
84
NS_LOG_FUNCTION
(
this
);
85
LteHandoverAlgorithm::DoInitialize
();
86
}
87
88
89
void
90
NoOpHandoverAlgorithm::DoReportUeMeas
(uint16_t rnti,
91
LteRrcSap::MeasResults
measResults)
92
{
93
NS_LOG_FUNCTION
(
this
<< rnti << (uint16_t) measResults.
measId
);
94
}
95
96
97
}
// end of namespace ns3
ns3::NoOpHandoverAlgorithm::GetTypeId
static TypeId GetTypeId()
Definition:
no-op-handover-algorithm.cc:55
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:190
ns3::LteHandoverAlgorithm
The abstract base class of a handover algorithm that operates using the Handover Management SAP inter...
Definition:
lte-handover-algorithm.h:66
NS_OBJECT_ENSURE_REGISTERED
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register the class in the ns-3 factory.
Definition:
object-base.h:38
ns3::NoOpHandoverAlgorithm::DoDispose
virtual void DoDispose()
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
Definition:
no-op-handover-algorithm.cc:47
ns3::NoOpHandoverAlgorithm::GetLteHandoverManagementSapProvider
virtual LteHandoverManagementSapProvider * GetLteHandoverManagementSapProvider()
Export the "provider" part of the Handover Management SAP interface.
Definition:
no-op-handover-algorithm.cc:74
NS_LOG_COMPONENT_DEFINE
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition:
log.h:170
ns3::LteRrcSap::MeasResults
Definition:
lte-rrc-sap.h:513
ns3::NoOpHandoverAlgorithm::m_handoverManagementSapUser
LteHandoverManagementSapUser * m_handoverManagementSapUser
Definition:
no-op-handover-algorithm.h:71
s
Ptr< SampleEmitter > s
Definition:
double-probe-test-suite.cc:51
ns3::NoOpHandoverAlgorithm::SetLteHandoverManagementSapUser
virtual void SetLteHandoverManagementSapUser(LteHandoverManagementSapUser *s)
Set the "user" part of the Handover Management SAP interface that this handover algorithm instance wi...
Definition:
no-op-handover-algorithm.cc:66
ns3::MemberLteHandoverManagementSapProvider
Template for the implementation of the LteHandoverManagementSapProvider as a member of an owner class...
Definition:
lte-handover-management-sap.h:115
ns3::NoOpHandoverAlgorithm::~NoOpHandoverAlgorithm
virtual ~NoOpHandoverAlgorithm()
Definition:
no-op-handover-algorithm.cc:40
ns3::NoOpHandoverAlgorithm::m_handoverManagementSapProvider
LteHandoverManagementSapProvider * m_handoverManagementSapProvider
Definition:
no-op-handover-algorithm.h:72
no-op-handover-algorithm.h
ns3::NoOpHandoverAlgorithm::DoInitialize
virtual void DoInitialize()
This method is called only once by Object::Initialize.
Definition:
no-op-handover-algorithm.cc:82
ns3::LteRrcSap::MeasResults::measId
uint8_t measId
Definition:
lte-rrc-sap.h:515
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::NoOpHandoverAlgorithm::DoReportUeMeas
void DoReportUeMeas(uint16_t rnti, LteRrcSap::MeasResults measResults)
Implementation of LteHandoverManagementSapProvider::ReportUeMeas.
Definition:
no-op-handover-algorithm.cc:90
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:49
ns3::TypeId::SetParent
TypeId SetParent(TypeId tid)
Definition:
type-id.cc:610
ns3::LteHandoverManagementSapUser
Service Access Point (SAP) offered by the eNodeB RRC instance to the handover algorithm instance...
Definition:
lte-handover-management-sap.h:67
ns3::Object::DoInitialize
virtual void DoInitialize(void)
This method is called only once by Object::Initialize.
Definition:
object.cc:342
ns3::NoOpHandoverAlgorithm::NoOpHandoverAlgorithm
NoOpHandoverAlgorithm()
Creates a No-op handover algorithm instance.
Definition:
no-op-handover-algorithm.cc:32
src
lte
model
no-op-handover-algorithm.cc
Generated on Tue Jun 17 2014 01:12:58 for ns-3 by
1.8.6