@@ -114,10 +114,10 @@ static srs_config build_default_srs_cfg(const du_cell_config& default_cell_cfg)
114114 return srs_cfg;
115115}
116116
117- du_srs_policy_max_ul_th ::cell_context::cell_context (const du_cell_config& cfg) :
117+ du_srs_policy_max_ul_rate ::cell_context::cell_context (const du_cell_config& cfg) :
118118 cell_cfg(cfg), default_srs_cfg(build_default_srs_cfg(cfg)){};
119119
120- du_srs_policy_max_ul_th::du_srs_policy_max_ul_th (span<const du_cell_config> cell_cfg_list_) :
120+ du_srs_policy_max_ul_rate::du_srs_policy_max_ul_rate (span<const du_cell_config> cell_cfg_list_) :
121121 cells(cell_cfg_list_.begin(), cell_cfg_list_.end())
122122{
123123 for (auto & cell : cells) {
@@ -140,14 +140,14 @@ du_srs_policy_max_ul_th::du_srs_policy_max_ul_th(span<const du_cell_config> cell
140140 const auto srs_period_slots = static_cast <unsigned >(cell.cell_cfg .srs_cfg .srs_period .value ());
141141 // Reserve the size of the vector and set the SRS counter of each offset to 0.
142142 cell.slot_resource_cnt .assign (srs_period_slots, 0U );
143- cell.srs_res_offset_free_list .reserve (du_srs_policy_max_ul_th ::cell_context::max_nof_srs_res);
143+ cell.srs_res_offset_free_list .reserve (du_srs_policy_max_ul_rate ::cell_context::max_nof_srs_res);
144144 cell.nof_res_per_symb_interval = static_cast <unsigned >(cell.cell_cfg .srs_cfg .tx_comb ) *
145145 static_cast <unsigned >(cell.cell_cfg .srs_cfg .cyclic_shift_reuse_factor ) *
146146 static_cast <unsigned >(cell.cell_cfg .srs_cfg .sequence_id_reuse_factor );
147147
148148 for (unsigned offset = 0 ; offset != srs_period_slots; ++offset) {
149149 // We don't generate more than the maximum number of SRS resources per cell.
150- if (cell.srs_res_offset_free_list .size () >= du_srs_policy_max_ul_th ::cell_context::max_nof_srs_res) {
150+ if (cell.srs_res_offset_free_list .size () >= du_srs_policy_max_ul_rate ::cell_context::max_nof_srs_res) {
151151 break ;
152152 }
153153
@@ -195,7 +195,7 @@ du_srs_policy_max_ul_th::du_srs_policy_max_ul_th(span<const du_cell_config> cell
195195 }
196196}
197197
198- bool du_srs_policy_max_ul_th ::alloc_resources (cell_group_config& cell_grp_cfg)
198+ bool du_srs_policy_max_ul_rate ::alloc_resources (cell_group_config& cell_grp_cfg)
199199{
200200 // TODO: Adapt this to the case of UEs with multiple cells configs.
201201 srsran_assert (
@@ -288,7 +288,7 @@ bool du_srs_policy_max_ul_th::alloc_resources(cell_group_config& cell_grp_cfg)
288288}
289289
290290std::vector<std::pair<unsigned , unsigned >>::const_iterator
291- du_srs_policy_max_ul_th ::cell_context::find_optimal_ue_srs_resource ()
291+ du_srs_policy_max_ul_rate ::cell_context::find_optimal_ue_srs_resource ()
292292{
293293 // The weights assigned here can be set to arbitrarily value, as long as:
294294 // - symbol_weight_base is greater than 0;
@@ -336,7 +336,7 @@ du_srs_policy_max_ul_th::cell_context::find_optimal_ue_srs_resource()
336336 return optimal_res_it;
337337}
338338
339- void du_srs_policy_max_ul_th ::dealloc_resources (cell_group_config& cell_grp_cfg)
339+ void du_srs_policy_max_ul_rate ::dealloc_resources (cell_group_config& cell_grp_cfg)
340340{
341341 if (not cells[0 ].cell_cfg .srs_cfg .srs_period .has_value () or
342342 not cell_grp_cfg.cells [0 ].serv_cell_cfg .ul_config ->init_ul_bwp .srs_cfg .has_value ()) {
0 commit comments