A Discrete-Event Network Simulator
API
a3-rsrp-handover-algorithm.h
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 #ifndef A3_RSRP_HANDOVER_ALGORITHM_H
22 #define A3_RSRP_HANDOVER_ALGORITHM_H
23 
24 #include "lte-handover-algorithm.h"
26 #include "lte-rrc-sap.h"
27 
28 #include <ns3/nstime.h>
29 
30 namespace ns3
31 {
32 
66 {
67  public:
70 
71  ~A3RsrpHandoverAlgorithm() override;
72 
77  static TypeId GetTypeId();
78 
79  // inherited from LteHandoverAlgorithm
82 
85 
86  protected:
87  // inherited from Object
88  void DoInitialize() override;
89  void DoDispose() override;
90 
91  // inherited from LteHandoverAlgorithm as a Handover Management SAP implementation
92  void DoReportUeMeas(uint16_t rnti, LteRrcSap::MeasResults measResults) override;
93 
94  private:
102  bool IsValidNeighbour(uint16_t cellId);
103 
105  std::vector<uint8_t> m_measIds;
106 
117 
122 
123 }; // end of class A3RsrpHandoverAlgorithm
124 
125 } // end of namespace ns3
126 
127 #endif /* A3_RSRP_HANDOVER_ALGORITHM_H */
Implementation of the strongest cell handover algorithm, based on RSRP measurements and Event A3.
bool IsValidNeighbour(uint16_t cellId)
Determines if a neighbour cell is a valid destination for handover.
double m_hysteresisDb
The Hysteresis attribute.
LteHandoverManagementSapUser * m_handoverManagementSapUser
Interface to the eNodeB RRC instance.
static TypeId GetTypeId()
Get the type ID.
LteHandoverManagementSapProvider * m_handoverManagementSapProvider
Receive API calls from the eNodeB RRC instance.
Time m_timeToTrigger
The TimeToTrigger attribute.
void DoDispose() override
Destructor implementation.
A3RsrpHandoverAlgorithm()
Creates a strongest cell handover algorithm instance.
void DoInitialize() override
Initialize() implementation.
LteHandoverManagementSapProvider * GetLteHandoverManagementSapProvider() override
Export the "provider" part of the Handover Management SAP interface.
std::vector< uint8_t > m_measIds
The expected measurement identity for A3 measurements.
void SetLteHandoverManagementSapUser(LteHandoverManagementSapUser *s) override
Set the "user" part of the Handover Management SAP interface that this handover algorithm instance wi...
void DoReportUeMeas(uint16_t rnti, LteRrcSap::MeasResults measResults) override
Implementation of LteHandoverManagementSapProvider::ReportUeMeas.
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.
Template for the implementation of the LteHandoverManagementSapProvider as a member of an owner class...
Simulation virtual time values and global simulation resolution.
Definition: nstime.h:105
a unique identifier for an interface.
Definition: type-id.h:59
Every class exported by the ns3 library is enclosed in the ns3 namespace.
MeasResults structure.
Definition: lte-rrc-sap.h:717