A Discrete-Event Network Simulator
API
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 
23 #include <ns3/log.h>
24 
25 namespace ns3 {
26 
27 NS_LOG_COMPONENT_DEFINE ("NoOpHandoverAlgorithm");
28 
29 NS_OBJECT_ENSURE_REGISTERED (NoOpHandoverAlgorithm);
30 
31 
33  : m_handoverManagementSapUser (0)
34 {
35  NS_LOG_FUNCTION (this);
37 }
38 
39 
41 {
42  NS_LOG_FUNCTION (this);
43 }
44 
45 
46 void
48 {
49  NS_LOG_FUNCTION (this);
51 }
52 
53 
54 TypeId
56 {
57  static TypeId tid = TypeId ("ns3::NoOpHandoverAlgorithm")
59  .SetGroupName("Lte")
60  .AddConstructor<NoOpHandoverAlgorithm> ()
61  ;
62  return tid;
63 }
64 
65 
66 void
68 {
69  NS_LOG_FUNCTION (this << s);
71 }
72 
73 
76 {
77  NS_LOG_FUNCTION (this);
79 }
80 
81 
82 void
84 {
85  NS_LOG_FUNCTION (this);
87 }
88 
89 
90 void
92  LteRrcSap::MeasResults measResults)
93 {
94  NS_LOG_FUNCTION (this << rnti << (uint16_t) measResults.measId);
95 }
96 
97 
98 } // end of namespace ns3
The abstract base class of a handover algorithm that operates using the Handover Management SAP inter...
Service Access Point (SAP) offered by the handover algorithm instance to the eNodeB RRC instance.
Service Access Point (SAP) offered by the eNodeB RRC instance to the handover algorithm instance.
Handover algorithm implementation which simply does nothing.
virtual void SetLteHandoverManagementSapUser(LteHandoverManagementSapUser *s)
Set the "user" part of the Handover Management SAP interface that this handover algorithm instance wi...
virtual LteHandoverManagementSapProvider * GetLteHandoverManagementSapProvider()
Export the "provider" part of the Handover Management SAP interface.
static TypeId GetTypeId()
Get the type ID.
virtual void DoDispose()
Destructor implementation.
virtual void DoInitialize()
Initialize() implementation.
LteHandoverManagementSapProvider * m_handoverManagementSapProvider
Receive API calls from the eNodeB RRC instance.
NoOpHandoverAlgorithm()
Creates a No-op handover algorithm instance.
LteHandoverManagementSapUser * m_handoverManagementSapUser
Interface to the eNodeB RRC instance.
friend class MemberLteHandoverManagementSapProvider< NoOpHandoverAlgorithm >
let the forwarder class access the protected and private members
void DoReportUeMeas(uint16_t rnti, LteRrcSap::MeasResults measResults)
Implementation of LteHandoverManagementSapProvider::ReportUeMeas.
virtual void DoInitialize(void)
Initialize() implementation.
Definition: object.cc:353
a unique identifier for an interface.
Definition: type-id.h:59
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition: type-id.cc:922
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition: log.h:205
#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:45
Every class exported by the ns3 library is enclosed in the ns3 namespace.
MeasResults structure.
Definition: lte-rrc-sap.h:680
uint8_t measId
measure ID
Definition: lte-rrc-sap.h:681