@@ -106,6 +106,9 @@ class common_ue_manager
106106 // / \param[in] c_rnti The RNTI of the UE.
107107 virtual ue_index_t get_ue_index (pci_t pci, rnti_t c_rnti) = 0;
108108
109+ // / \brief Allocate and return the UE index of a new UE.
110+ virtual ue_index_t add_ue (du_index_t du_index) = 0;
111+
109112 // / \brief Remove the UE context with the given UE index.
110113 // / \param[in] ue_index Index of the UE to be removed.
111114 virtual void remove_ue (ue_index_t ue_index) = 0;
@@ -121,9 +124,6 @@ class du_processor_ue_manager : public common_ue_manager
121124public:
122125 virtual ~du_processor_ue_manager () = default ;
123126
124- // / \brief Allocate and return the UE index of a new UE.
125- virtual ue_index_t allocate_new_ue_index (du_index_t du_index) = 0;
126-
127127 // / \brief Find the UE with the given UE index. Note that this will not check if a DU context exists.
128128 // / \param[in] ue_index Index of the UE to be found.
129129 // / \return Pointer to the UE if found, nullptr otherwise.
@@ -136,7 +136,7 @@ class du_processor_ue_manager : public common_ue_manager
136136 // / \param[in] pci PCI of the cell that the UE is connected to.
137137 // / \param[in] rnti RNTI of the UE to be added.
138138 // / \return Pointer to the newly added DU UE if successful, nullptr otherwise.
139- virtual du_ue* add_ue (ue_index_t ue_index, gnb_du_id_t du_id, pci_t pci, rnti_t rnti) = 0;
139+ virtual du_ue* set_ue_du_context (ue_index_t ue_index, gnb_du_id_t du_id, pci_t pci, rnti_t rnti) = 0;
140140
141141 // / \brief Find the DU UE with the given UE index.
142142 // / \param[in] ue_index Index of the UE to be found.
@@ -177,10 +177,10 @@ class ngap_ue_manager : public common_ue_manager
177177 // / \param[in] rrc_ue_ctrl_notifier RRC UE control notifier for the UE.
178178 // / \param[in] du_processor_ctrl_notifier DU processor control notifier for the UE.
179179 // / \return Pointer to the NGAP UE if found, nullptr otherwise.
180- virtual ngap_ue* add_ue (ue_index_t ue_index,
181- ngap_rrc_ue_pdu_notifier& rrc_ue_pdu_notifier,
182- ngap_rrc_ue_control_notifier& rrc_ue_ctrl_notifier,
183- ngap_du_processor_control_notifier& du_processor_ctrl_notifier) = 0;
180+ virtual ngap_ue* set_ue_ng_context (ue_index_t ue_index,
181+ ngap_rrc_ue_pdu_notifier& rrc_ue_pdu_notifier,
182+ ngap_rrc_ue_control_notifier& rrc_ue_ctrl_notifier,
183+ ngap_du_processor_control_notifier& du_processor_ctrl_notifier) = 0;
184184
185185 // / \brief Find the NGAP UE with the given UE index.
186186 // / \param[in] ue_index Index of the UE to be found.
0 commit comments