A Discrete-Event Network Simulator
API
lte-handover-management-sap.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 LTE_HANDOVER_MANAGEMENT_SAP_H
23#define LTE_HANDOVER_MANAGEMENT_SAP_H
24
25#include <ns3/lte-rrc-sap.h>
26
27namespace ns3 {
28
29
39{
40public:
42
54 virtual void ReportUeMeas (uint16_t rnti,
55 LteRrcSap::MeasResults measResults) = 0;
56
57}; // end of class LteHandoverManagementSapProvider
58
59
68{
69public:
71
88 virtual std::vector<uint8_t> AddUeMeasReportConfigForHandover (LteRrcSap::ReportConfigEutra reportConfig) = 0;
89
103 virtual void TriggerHandover (uint16_t rnti, uint16_t targetCellId) = 0;
104
105}; // end of class LteHandoverManagementSapUser
106
107
108
114template <class C>
116{
117public:
124
125 // Delete default constructor to avoid misuse
127
128 // inherited from LteHandoverManagementSapProvider
129 virtual void ReportUeMeas (uint16_t rnti, LteRrcSap::MeasResults measResults);
130
131private:
133
134}; // end of class MemberLteHandoverManagementSapProvider
135
136
137template <class C>
139 : m_owner (owner)
140{
141}
142
143
144template <class C>
145void
147{
148 m_owner->DoReportUeMeas (rnti, measResults);
149}
150
151
152
158template <class C>
160{
161public:
168
169 // Delete default constructor to avoid misuse
171
172 // inherited from LteHandoverManagementSapUser
173 virtual std::vector<uint8_t> AddUeMeasReportConfigForHandover (LteRrcSap::ReportConfigEutra reportConfig);
174 virtual void TriggerHandover (uint16_t rnti, uint16_t targetCellId);
175
176private:
178
179}; // end of class MemberLteAnrSapUser
180
181
182template <class C>
184 : m_owner (owner)
185{
186}
187
188
189template <class C>
190std::vector<uint8_t>
192{
193 return m_owner->DoAddUeMeasReportConfigForHandover (reportConfig);
194}
195
196
197template <class C>
198void
199MemberLteHandoverManagementSapUser<C>::TriggerHandover (uint16_t rnti, uint16_t targetCellId)
200{
201 return m_owner->DoTriggerHandover (rnti, targetCellId);
202}
203
204
205} // end of namespace ns3
206
207
208#endif /* LTE_HANDOVER_MANAGEMENT_SAP_H */
Service Access Point (SAP) offered by the handover algorithm instance to the eNodeB RRC instance.
virtual void ReportUeMeas(uint16_t rnti, LteRrcSap::MeasResults measResults)=0
Send a UE measurement report to handover algorithm.
Service Access Point (SAP) offered by the eNodeB RRC instance to the handover algorithm instance.
virtual void TriggerHandover(uint16_t rnti, uint16_t targetCellId)=0
Instruct the eNodeB RRC entity to prepare a handover.
virtual std::vector< uint8_t > AddUeMeasReportConfigForHandover(LteRrcSap::ReportConfigEutra reportConfig)=0
Request a certain reporting configuration to be fulfilled by the UEs attached to the eNodeB entity.
Template for the implementation of the LteHandoverManagementSapProvider as a member of an owner class...
virtual void ReportUeMeas(uint16_t rnti, LteRrcSap::MeasResults measResults)
Send a UE measurement report to handover algorithm.
Template for the implementation of the LteHandoverManagementSapUser as a member of an owner class of ...
virtual void TriggerHandover(uint16_t rnti, uint16_t targetCellId)
Instruct the eNodeB RRC entity to prepare a handover.
virtual std::vector< uint8_t > AddUeMeasReportConfigForHandover(LteRrcSap::ReportConfigEutra reportConfig)
Request a certain reporting configuration to be fulfilled by the UEs attached to the eNodeB entity.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
MeasResults structure.
Definition: lte-rrc-sap.h:680
Specifies criteria for triggering of an E-UTRA measurement reporting event.
Definition: lte-rrc-sap.h:362