5#include "bwp-manager-algorithm.h"
12NS_LOG_COMPONENT_DEFINE(
"BwpManagerAlgorithm");
13NS_OBJECT_ENSURE_REGISTERED(BwpManagerAlgorithm);
19 TypeId(
"ns3::BwpManagerAlgorithm").SetParent<ObjectBase>().SetGroupName(
"nr");
25#define DECLARE_ATTR(NAME, DESC, GETTER, SETTER) \
29 MakeUintegerAccessor(&BwpManagerAlgorithmStatic::GETTER, \
30 &BwpManagerAlgorithmStatic::SETTER), \
31 MakeUintegerChecker<uint8_t>(0, 5))
37 TypeId(
"ns3::BwpManagerAlgorithmStatic")
42 "BWP index to which flows of this Qci type should be forwarded.",
45 "BWP index to which flows of GBR_CONV_VIDEO Qci type "
46 "should be forwarded.",
50 "flows of GBR_GAMING "
57 "BWP index to which flows of GBR_NON_CONV_VIDEO Qci "
58 "type should be forwarded.",
61 "BWP index to which flows of "
62 "GBR_MC_PUSH_TO_TALK Qci type should "
77 "BWP index to which flows of GBR_MC_VIDEO "
78 "Qci type should be forwarded.",
81 "BWP index to which flows of GBR_V2X Qci type "
82 "should be forwarded.",
91 DECLARE_ATTR(
"NGBR_VIDEO_TCP_OPERATOR",
92 "BWP index to which flows of NGBR_VIDEO_TCP_OPERATOR Qci type "
93 "should be forwarded.",
96 "BWP index to which flows of "
97 "NGBR_VOICE_VIDEO_GAMING Qci "
98 "type should be forwarded.",
102 "NGBR_VIDEO_TCP_PREMIUM",
103 "BWP index to which flows of NGBR_VIDEO_TCP_PREMIUM Qci "
104 "type should be forwarded.",
107 "BWP index to which flows of "
108 "NGBR_VIDEO_TCP_DEFAULT "
109 "Qci type should be forwarded.",
113 "NGBR_MC_DELAY_SIGNAL",
114 "BWP index to which flows of NGBR_MC_DELAY_SIGNAL "
115 "Qci type should be forwarded.",
118 "BWP index to which flows of "
120 "type should be forwarded.",
125 "BWP index to which flows of NGBR_V2X "
126 "Qci type should be forwarded.",
129 "BWP index to which flows of "
130 "NGBR_LOW_LAT_EMBB Qci type "
131 "should be forwarded.",
135 "DGBR_DISCRETE_AUT_SMALL",
136 "BWP index to which flows of DGBR_DISCRETE_AUT_SMALL "
138 "type should be forwarded.",
153 "BWP index to which flows of DGBR_ITS Qci type "
157 SetItsBwp) DECLARE_ATTR(
"DGBR_ELECTRICITY",
158 "BWP index to which flows "
159 "of DGBR_ELECTRICITY Qci "
160 "type should be forwarded.",
163 DECLARE_ATTR(
"GBR_LIVE_UL_71",
164 "BWP index to which flows of "
165 "GBR_LIVE_UL_71 Qci "
166 "type should be forwarded.",
169 DECLARE_ATTR(
"GBR_LIVE_UL_72",
170 "BWP index to which flows of "
171 "GBR_LIVE_UL_72 Qci "
172 "type should be forwarded.",
175 DECLARE_ATTR(
"GBR_LIVE_UL_73",
176 "BWP index to which flows of "
177 "GBR_LIVE_UL_73 Qci "
178 "type should be forwarded.",
183 "BWP index to which flows of "
184 "GBR_LIVE_UL_74 Qci "
185 "type should be forwarded.",
190 "BWP index to which flows of "
191 "GBR_LIVE_UL_76 Qci "
192 "type should be forwarded.",
196 "DGBR_INTER_SERV_87",
197 "BWP index to which flows "
198 "of DGBR_INTER_SERV_87 Qci "
199 "type should be forwarded.",
203 "DGBR_INTER_SERV_88",
204 "BWP index to which "
206 "DGBR_INTER_SERV_88 "
242 return m_qciToBwpMap.at(v == 0 ? 1 : v);
Interface for a Bwp selection algorithm based on the bearer.
static TypeId GetTypeId()
GetTypeId.
The BwpManagerAlgorithmStatic class.
void SetLiveUlStream73Bwp(uint8_t bwpIndex)
Set BWP index of the QCI in the function name.
void SetInterService88Bwp(uint8_t bwpIndex)
Set BWP index of the QCI in the function name.
void SetNgbrV2xBwp(uint8_t bwpIndex)
Set BWP index of the QCI in the function name.
void SetNmcPttBwp(uint8_t bwpIndex)
Set BWP index of the QCI in the function name.
void SetMcPttBwp(uint8_t bwpIndex)
Set BWP index of the QCI in the function name.
void SetVideoTcpDefaultBwp(uint8_t bwpIndex)
Set BWP index of the QCI in the function name.
void SetGbrV2xBwp(uint8_t bwpIndex)
Set BWP index of the QCI in the function name.
uint8_t GetLiveUlStream72Bwp() const
Get the BWP index of the QCI in the function name.
void SetLiveUlStream72Bwp(uint8_t bwpIndex)
Set BWP index of the QCI in the function name.
uint8_t GetVideoTcpPremiumBwp() const
Get the BWP index of the QCI in the function name.
void SetVisualContent90Bwp(uint8_t bwpIndex)
Set BWP index of the QCI in the function name.
uint8_t GetVisualContent89Bwp() const
Get the BWP index of the QCI in the function name.
void SetImsBwp(uint8_t bwpIndex)
Set BWP index of the QCI in the function name.
uint8_t GetMcPttBwp() const
Get the BWP index of the QCI in the function name.
uint8_t GetLiveUlStream74Bwp() const
Get the BWP index of the QCI in the function name.
uint8_t GetVideoGamingBwp() const
Get the BWP index of the QCI in the function name.
uint8_t GetNonConvVideoBwp() const
Get the BWP index of the QCI in the function name.
void SetLiveUlStream76Bwp(uint8_t bwpIndex)
Set BWP index of the QCI in the function name.
uint8_t GetDiscreteAutSmallBwp() const
Get the BWP index of the QCI in the function name.
uint8_t GetImsBwp() const
Get the BWP index of the QCI in the function name.
uint8_t GetVideoTcpDefaultBwp() const
Get the BWP index of the QCI in the function name.
uint8_t GetNmcPttBwp() const
Get the BWP index of the QCI in the function name.
void SetLowLatEmbbBwp(uint8_t bwpIndex)
Set BWP index of the QCI in the function name.
void SetLiveUlStream71Bwp(uint8_t bwpIndex)
Set BWP index of the QCI in the function name.
uint8_t GetLiveUlStream71Bwp() const
Get the BWP index of the QCI in the function name.
uint8_t GetVideoTcpOpBwp() const
Get the BWP index of the QCI in the function name.
uint8_t GetLowLatEmbbBwp() const
Get the BWP index of the QCI in the function name.
uint8_t GetInterService87Bwp() const
Get the BWP index of the QCI in the function name.
void SetDiscreteAutLargeBwp(uint8_t bwpIndex)
Set BWP index of the QCI in the function name.
uint8_t GetNgbrV2xBwp() const
Get the BWP index of the QCI in the function name.
uint8_t GetItsBwp() const
Get the BWP index of the QCI in the function name.
void SetVideoTcpPremiumBwp(uint8_t bwpIndex)
Set BWP index of the QCI in the function name.
uint8_t GetInterService88Bwp() const
Get the BWP index of the QCI in the function name.
uint8_t GetElectricityBwp() const
Get the BWP index of the QCI in the function name.
void SetMcDelaySignalBwp(uint8_t bwpIndex)
Set BWP index of the QCI in the function name.
uint8_t GetLiveUlStream73Bwp() const
Get the BWP index of the QCI in the function name.
void SetVisualContent89Bwp(uint8_t bwpIndex)
Set BWP index of the QCI in the function name.
uint8_t GetLiveUlStream76Bwp() const
Get the BWP index of the QCI in the function name.
uint8_t GetVisualContent90Bwp() const
Get the BWP index of the QCI in the function name.
void SetLiveUlStream74Bwp(uint8_t bwpIndex)
Set BWP index of the QCI in the function name.
void SetInterService87Bwp(uint8_t bwpIndex)
Set BWP index of the QCI in the function name.
uint8_t GetDiscreteAutLargeBwp() const
Get the BWP index of the QCI in the function name.
void SetElectricityBwp(uint8_t bwpIndex)
Set BWP index of the QCI in the function name.
void SetItsBwp(uint8_t bwpIndex)
Set BWP index of the QCI in the function name.
uint8_t GetMcDataBwp() const
Get the BWP index of the QCI in the function name.
void SetMcDataBwp(uint8_t bwpIndex)
Set BWP index of the QCI in the function name.
void SetConvVoiceBwp(uint8_t bwpIndex)
Set BWP index of the QCI in the function name.
uint8_t GetMcVideoBwp() const
Get the BWP index of the QCI in the function name.
static TypeId GetTypeId()
GetTypeId.
uint8_t GetConvVoiceBwp() const
Get the BWP index of the QCI in the function name.
uint8_t GetGbrV2xBwp() const
Get the BWP index of the QCI in the function name.
uint8_t GetConvVideoBwp() const
Get the BWP index of the QCI in the function name.
void SetMcVideoBwp(uint8_t bwpIndex)
Set BWP index of the QCI in the function name.
uint8_t GetGamingBwp() const
Get the BWP index of the QCI in the function name.
void SetVideoGamingBwp(uint8_t bwpIndex)
Set BWP index of the QCI in the function name.
void SetGamingBwp(uint8_t bwpIndex)
Set BWP index of the QCI in the function name.
void SetConvVideoBwp(uint8_t bwpIndex)
Set BWP index of the QCI in the function name.
uint8_t GetBwpForEpsBearer(const NrEpsBearer::Qci &v) const override
Get the bandwidth part id for the Qci specified.
void SetDiscreteAutSmallBwp(uint8_t bwpIndex)
Set BWP index of the QCI in the function name.
void SetNonConvVideoBwp(uint8_t bwpIndex)
Set BWP index of the QCI in the function name.
void SetVideoTcpOpBwp(uint8_t bwpIndex)
Set BWP index of the QCI in the function name.
uint8_t GetMcDelaySignalBwp() const
Get the BWP index of the QCI in the function name.