5G-LENA nr-v4.0
The 5G/NR module for the ns-3 simulator
Loading...
Searching...
No Matches
nr-a3-rsrp-handover-algorithm.h
1// Copyright (c) 2013 Budiarto Herman
2//
3// SPDX-License-Identifier: GPL-2.0-only
4//
5// Author: Budiarto Herman <budiarto.herman@magister.fi>
6
7#ifndef A3_RSRP_HANDOVER_ALGORITHM_H
8#define A3_RSRP_HANDOVER_ALGORITHM_H
9
10#include "nr-handover-algorithm.h"
11#include "nr-handover-management-sap.h"
12#include "nr-rrc-sap.h"
13
14#include "ns3/nstime.h"
15
16namespace ns3
17{
18
52{
53 public:
56
58
63 static TypeId GetTypeId();
64
65 // inherited from NrHandoverAlgorithm
68
71
72 protected:
73 // inherited from Object
74 void DoInitialize() override;
75 void DoDispose() override;
76
77 // inherited from NrHandoverAlgorithm as a Handover Management SAP implementation
78 void DoReportUeMeas(uint16_t rnti, NrRrcSap::MeasResults measResults) override;
79
80 private:
88 bool IsValidNeighbour(uint16_t cellId);
89
91 std::vector<uint8_t> m_measIds;
92
97 double m_hysteresisDb;
102 Time m_timeToTrigger;
103
105 NrHandoverManagementSapUser* m_handoverManagementSapUser;
107 NrHandoverManagementSapProvider* m_handoverManagementSapProvider;
108
109}; // end of class NrA3RsrpHandoverAlgorithm
110
111} // end of namespace ns3
112
113#endif /* A3_RSRP_HANDOVER_ALGORITHM_H */
Template for the implementation of the NrHandoverManagementSapProvider as a member of an owner class ...
Implementation of the strongest cell handover algorithm, based on RSRP measurements and Event A3.
NrA3RsrpHandoverAlgorithm()
Creates a strongest cell handover algorithm instance.
void SetNrHandoverManagementSapUser(NrHandoverManagementSapUser *s) override
Set the "user" part of the Handover Management SAP interface that this handover algorithm instance wi...
static TypeId GetTypeId()
Get the type ID.
void DoReportUeMeas(uint16_t rnti, NrRrcSap::MeasResults measResults) override
Implementation of NrHandoverManagementSapProvider::ReportUeMeas.
NrHandoverManagementSapProvider * GetNrHandoverManagementSapProvider() override
Export the "provider" part of the Handover Management SAP interface.
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.
MeasResults structure.
Definition nr-rrc-sap.h:723