OLD | NEW |
1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2013 Budiarto Herman | 3 * Copyright (c) 2013 Budiarto Herman |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 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 | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 | 94 |
95 uint8_t hysteresisIeValue = EutranMeasurementMapping::ActualHysteresis2IeValue
(m_hysteresisDb); | 95 uint8_t hysteresisIeValue = EutranMeasurementMapping::ActualHysteresis2IeValue
(m_hysteresisDb); |
96 NS_LOG_LOGIC (this << " requesting Event A3 measurements" | 96 NS_LOG_LOGIC (this << " requesting Event A3 measurements" |
97 << " (hysteresis=" << (uint16_t) hysteresisIeValue << ")" | 97 << " (hysteresis=" << (uint16_t) hysteresisIeValue << ")" |
98 << " (ttt=" << m_timeToTrigger.GetMilliSeconds () << ")"); | 98 << " (ttt=" << m_timeToTrigger.GetMilliSeconds () << ")"); |
99 | 99 |
100 LteRrcSap::ReportConfigEutra reportConfig; | 100 LteRrcSap::ReportConfigEutra reportConfig; |
101 reportConfig.eventId = LteRrcSap::ReportConfigEutra::EVENT_A3; | 101 reportConfig.eventId = LteRrcSap::ReportConfigEutra::EVENT_A3; |
102 reportConfig.a3Offset = 0; | 102 reportConfig.a3Offset = 0; |
103 reportConfig.hysteresis = hysteresisIeValue; | 103 reportConfig.hysteresis = hysteresisIeValue; |
104 reportConfig.timeToTrigger = m_timeToTrigger.GetMilliSeconds (); | 104 reportConfig.timeToTrigger = static_cast<uint16_t>(m_timeToTrigger.GetMilliSec
onds ()); |
105 reportConfig.reportOnLeave = false; | 105 reportConfig.reportOnLeave = false; |
106 reportConfig.triggerQuantity = LteRrcSap::ReportConfigEutra::RSRP; | 106 reportConfig.triggerQuantity = LteRrcSap::ReportConfigEutra::RSRP; |
107 reportConfig.reportInterval = LteRrcSap::ReportConfigEutra::MS1024; | 107 reportConfig.reportInterval = LteRrcSap::ReportConfigEutra::MS1024; |
108 m_measId = m_handoverManagementSapUser->AddUeMeasReportConfigForHandover (repo
rtConfig); | 108 m_measId = m_handoverManagementSapUser->AddUeMeasReportConfigForHandover (repo
rtConfig); |
109 | 109 |
110 LteHandoverAlgorithm::DoInitialize (); | 110 LteHandoverAlgorithm::DoInitialize (); |
111 } | 111 } |
112 | 112 |
113 | 113 |
114 void | 114 void |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 * \todo In the future, this function can be expanded to validate whether the | 185 * \todo In the future, this function can be expanded to validate whether the |
186 * neighbour cell is a valid target cell, e.g., taking into account the | 186 * neighbour cell is a valid target cell, e.g., taking into account the |
187 * NRT in ANR and whether it is a CSG cell with closed access. | 187 * NRT in ANR and whether it is a CSG cell with closed access. |
188 */ | 188 */ |
189 | 189 |
190 return true; | 190 return true; |
191 } | 191 } |
192 | 192 |
193 | 193 |
194 } // end of namespace ns3 | 194 } // end of namespace ns3 |
OLD | NEW |