A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
a3-rsrp-handover-algorithm.h
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 #ifndef A3_RSRP_HANDOVER_ALGORITHM_H
23 #define A3_RSRP_HANDOVER_ALGORITHM_H
24 
25 #include <ns3/lte-handover-algorithm.h>
26 #include <ns3/lte-handover-management-sap.h>
27 #include <ns3/lte-rrc-sap.h>
28 #include <ns3/nstime.h>
29 
30 namespace ns3 {
31 
32 
66 {
67 public:
72 
73  virtual ~A3RsrpHandoverAlgorithm ();
74 
75  // inherited from Object
76  static TypeId GetTypeId ();
77 
78  // inherited from LteHandoverAlgorithm
81 
82  // let the forwarder class access the protected and private members
84 
85 protected:
86  // inherited from Object
87  virtual void DoInitialize ();
88  virtual void DoDispose ();
89 
90  // inherited from LteHandoverAlgorithm as a Handover Management SAP implementation
91  void DoReportUeMeas (uint16_t rnti, LteRrcSap::MeasResults measResults);
92 
93 private:
94  // Internal method
95  bool IsValidNeighbour (uint16_t cellId);
96 
97  // The expected measurement identity
98  uint8_t m_measId;
99 
100  // Class attributes
103 
104  // Handover Management SAPs
107 
108 }; // end of class A3RsrpHandoverAlgorithm
109 
110 
111 } // end of namespace ns3
112 
113 
114 #endif /* A3_RSRP_HANDOVER_ALGORITHM_H */
keep track of time values and allow control of global simulation resolution
Definition: nstime.h:81
The abstract base class of a handover algorithm that operates using the Handover Management SAP inter...
LteHandoverManagementSapProvider * m_handoverManagementSapProvider
void DoReportUeMeas(uint16_t rnti, LteRrcSap::MeasResults measResults)
Implementation of LteHandoverManagementSapProvider::ReportUeMeas.
virtual void DoInitialize()
This method is called only once by Object::Initialize.
Ptr< SampleEmitter > s
Template for the implementation of the LteHandoverManagementSapProvider as a member of an owner class...
Implementation of the strongest cell handover algorithm, based on RSRP measurements and Event A3...
LteHandoverManagementSapUser * m_handoverManagementSapUser
virtual LteHandoverManagementSapProvider * GetLteHandoverManagementSapProvider()
Export the &quot;provider&quot; part of the Handover Management SAP interface.
Service Access Point (SAP) offered by the handover algorithm instance to the eNodeB RRC instance...
A3RsrpHandoverAlgorithm()
Creates a strongest cell handover algorithm instance.
virtual void DoDispose()
This method is called by Object::Dispose or by the object&#39;s destructor, whichever comes first...
a unique identifier for an interface.
Definition: type-id.h:49
virtual void SetLteHandoverManagementSapUser(LteHandoverManagementSapUser *s)
Set the &quot;user&quot; part of the Handover Management SAP interface that this handover algorithm instance wi...
Service Access Point (SAP) offered by the eNodeB RRC instance to the handover algorithm instance...