5#include "bandwidth-part-gnb.h"
11#include "ns3/boolean.h"
13#include "ns3/pointer.h"
18NS_LOG_COMPONENT_DEFINE(
"BandwidthPartGnb");
19NS_OBJECT_ENSURE_REGISTERED(BandwidthPartGnb);
24 static TypeId tid = TypeId(
"ns3::BandwidthPartGnb")
26 .AddConstructor<BandwidthPartGnb>()
27 .AddAttribute(
"NrGnbPhy",
28 "The PHY associated to this GnbNetDevice",
30 MakePointerAccessor(&BandwidthPartGnb::m_phy),
31 MakePointerChecker<NrGnbPhy>())
32 .AddAttribute(
"NrGnbMac",
33 "The MAC associated to this GnbNetDevice",
35 MakePointerAccessor(&BandwidthPartGnb::m_mac),
36 MakePointerChecker<NrGnbMac>())
37 .AddAttribute(
"MacScheduler",
38 "The scheduler associated to this GnbNetDevice",
40 MakePointerAccessor(&BandwidthPartGnb::m_scheduler),
41 MakePointerChecker<NrMacScheduler>());
45BandwidthPartGnb::BandwidthPartGnb()
48 NS_LOG_FUNCTION(
this);
52BandwidthPartGnb::~BandwidthPartGnb()
54 NS_LOG_FUNCTION(
this);
60 NS_LOG_FUNCTION(
this);
65 m_scheduler =
nullptr;
72 NS_LOG_FUNCTION(
this);
79 NS_LOG_FUNCTION(
this);
80 NS_ABORT_IF(m_phy !=
nullptr);
87 NS_LOG_FUNCTION(
this);
94 NS_LOG_FUNCTION(
this);
101 NS_LOG_FUNCTION(
this);
108 NS_LOG_FUNCTION(
this);
115 NS_LOG_FUNCTION(
this);
116 NS_ASSERT(m_phy !=
nullptr);
132 NS_LOG_FUNCTION(
this << cellId);
void DoDispose() override
DoDispose method inherited from Object.
void SetPhy(Ptr< NrGnbPhy > s)
Ptr< NrMacScheduler > GetScheduler()
void SetNrMacScheduler(Ptr< NrMacScheduler > s)
void SetCellId(uint16_t cellId)
void SetAsPrimary(bool primaryCarrier)
Set this bandwidth part as primary.
void SetMac(Ptr< NrGnbMac > s)
static TypeId GetTypeId()
Get the type ID.
uint16_t GetCellId() const