1313#include " ../config/cell_configuration.h"
1414#include " ../policy/scheduler_policy.h"
1515#include " ran_slice_id.h"
16- #include " srsran/scheduler/config/cell_rrm_policy_config .h"
16+ #include " srsran/scheduler/config/slice_rrm_policy_config .h"
1717
1818namespace srsran {
1919
@@ -23,26 +23,26 @@ class ran_slice_instance
2323public:
2424 constexpr static int skip_slice_prio = std::numeric_limits<int >::min();
2525
26- ran_slice_instance (ran_slice_id_t id_, const cell_configuration& cell_cfg_, const cell_rrm_policy_config & cfg_);
26+ ran_slice_instance (ran_slice_id_t id_, const cell_configuration& cell_cfg_, const slice_rrm_policy_config & cfg_);
2727
2828 void slot_indication ();
2929
3030 bool active () const { return not bearers.empty (); }
3131
3232 int get_dl_prio ()
3333 {
34- if (not active () or pdsch_stopped or cfg.max_prb_ratio <= pdsch_rb_count) {
34+ if (not active () or pdsch_stopped or cfg.max_prb <= pdsch_rb_count) {
3535 return skip_slice_prio;
3636 }
37- return cfg.min_prb_ratio > pdsch_rb_count ? cfg.min_prb_ratio - pdsch_rb_count : 0 ;
37+ return cfg.min_prb > pdsch_rb_count ? cfg.min_prb - pdsch_rb_count : 0 ;
3838 }
3939
4040 int get_ul_prio ()
4141 {
42- if (not active () or pusch_stopped or cfg.max_prb_ratio <= pusch_rb_count) {
42+ if (not active () or pusch_stopped or cfg.max_prb <= pusch_rb_count) {
4343 return skip_slice_prio;
4444 }
45- return cfg.min_prb_ratio > pusch_rb_count ? cfg.min_prb_ratio - pusch_rb_count : 0 ;
45+ return cfg.min_prb > pusch_rb_count ? cfg.min_prb - pusch_rb_count : 0 ;
4646 }
4747
4848 // / Save PDSCH grant.
@@ -72,7 +72,7 @@ class ran_slice_instance
7272
7373 ran_slice_id_t id;
7474 const cell_configuration* cell_cfg;
75- cell_rrm_policy_config cfg;
75+ slice_rrm_policy_config cfg;
7676
7777 std::unique_ptr<scheduler_policy> policy;
7878
0 commit comments