The class implements Component Carrier Manager (CCM) that operates using the Component Carrier Manager SAP interfaces. More...
#include "lte-enb-component-carrier-manager.h"
Classes | |
struct | UeInfo |
Structure to represent UE info. More... | |
Public Member Functions | |
LteEnbComponentCarrierManager () | |
~LteEnbComponentCarrierManager () override | |
virtual LteCcmMacSapUser * | GetLteCcmMacSapUser () |
This function returns a pointer to the LteCcmMacSapUser interface, which is used by MAC to communicate to CCM when e.g. More... | |
virtual LteCcmRrcSapProvider * | GetLteCcmRrcSapProvider () |
Export the "provider" part of the ComponentCarrier Management SAP interface. More... | |
virtual LteMacSapProvider * | GetLteMacSapProvider () |
Returns the pointer to the LteMacSapProvider interface, the provider of MAC, which is this new architecture served by LteEnbComponentCarrierManager object which will behave as a proxy, and will forward calls between to MAC objects of component carriers based on the logic implemented in the specific component carrier manager. More... | |
virtual bool | SetCcmMacSapProviders (uint8_t componentCarrierId, LteCcmMacSapProvider *sap) |
Set LteCcmMacSapProvider interface for the MAC object of the specified component carrier. More... | |
virtual void | SetLteCcmRrcSapUser (LteCcmRrcSapUser *s) |
Set the "user" part of the ComponentCarrier Management SAP interface that this ComponentCarrier algorithm instance will interact with. More... | |
virtual bool | SetMacSapProvider (uint8_t componentCarrierId, LteMacSapProvider *sap) |
Set LteMacSapProvider interface for the MAC object of the specified component carrier. More... | |
virtual void | SetNumberOfComponentCarriers (uint16_t noOfComponentCarriers) |
Sets the total number of component carriers. More... | |
Public Member Functions inherited from ns3::Object | |
Object () | |
Constructor. More... | |
~Object () override | |
Destructor. More... | |
void | AggregateObject (Ptr< Object > other) |
Aggregate two Objects together. More... | |
void | Dispose () |
Dispose of this Object. More... | |
AggregateIterator | GetAggregateIterator () const |
Get an iterator to the Objects aggregated to this one. More... | |
TypeId | GetInstanceTypeId () const override |
Get the most derived TypeId for this Object. More... | |
template<typename T > | |
Ptr< T > | GetObject () const |
Get a pointer to the requested aggregated Object. More... | |
template<> | |
Ptr< Object > | GetObject () const |
Specialization of () for objects of type ns3::Object. More... | |
template<typename T > | |
Ptr< T > | GetObject (TypeId tid) const |
Get a pointer to the requested aggregated Object by TypeId. More... | |
template<> | |
Ptr< Object > | GetObject (TypeId tid) const |
Specialization of (TypeId tid) for objects of type ns3::Object. More... | |
void | Initialize () |
Invoke DoInitialize on all Objects aggregated to this one. More... | |
bool | IsInitialized () const |
Check if the object has been initialized. More... | |
Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter > | |
SimpleRefCount () | |
Default constructor. More... | |
SimpleRefCount (const SimpleRefCount &o[[maybe_unused]]) | |
Copy constructor. More... | |
uint32_t | GetReferenceCount () const |
Get the reference count of the object. More... | |
SimpleRefCount & | operator= (const SimpleRefCount &o[[maybe_unused]]) |
Assignment operator. More... | |
void | Ref () const |
Increment the reference count. More... | |
void | Unref () const |
Decrement the reference count. More... | |
Public Member Functions inherited from ns3::ObjectBase | |
virtual | ~ObjectBase () |
Virtual destructor. More... | |
void | GetAttribute (std::string name, AttributeValue &value) const |
Get the value of an attribute, raising fatal errors if unsuccessful. More... | |
bool | GetAttributeFailSafe (std::string name, AttributeValue &value) const |
Get the value of an attribute without raising errors. More... | |
void | SetAttribute (std::string name, const AttributeValue &value) |
Set a single attribute, raising fatal errors if unsuccessful. More... | |
bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
Set a single attribute without raising errors. More... | |
bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
Connect a TraceSource to a Callback with a context. More... | |
bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
Connect a TraceSource to a Callback without a context. More... | |
bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
Disconnect from a TraceSource a Callback previously connected with a context. More... | |
bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
Disconnect from a TraceSource a Callback previously connected without a context. More... | |
Static Public Member Functions | |
static TypeId | GetTypeId () |
Get the type ID. More... | |
Static Public Member Functions inherited from ns3::Object | |
static TypeId | GetTypeId () |
Register this type. More... | |
Static Public Member Functions inherited from ns3::ObjectBase | |
static TypeId | GetTypeId () |
Get the type ID. More... | |
Protected Member Functions | |
void | DoDispose () override |
Destructor implementation. More... | |
virtual void | DoReportUeMeas (uint16_t rnti, LteRrcSap::MeasResults measResults)=0 |
Implementation of ReportUeMeas. More... | |
Protected Member Functions inherited from ns3::Object | |
Object (const Object &o) | |
Copy an Object. More... | |
virtual void | DoInitialize () |
Initialize() implementation. More... | |
virtual void | NotifyNewAggregate () |
Notify all Objects aggregated to this one of a new Object being aggregated. More... | |
Protected Member Functions inherited from ns3::ObjectBase | |
void | ConstructSelf (const AttributeConstructionList &attributes) |
Complete construction of ObjectBase; invoked by derived classes. More... | |
virtual void | NotifyConstructionCompleted () |
Notifier called once the ObjectBase is fully constructed. More... | |
Protected Attributes | |
std::map< uint8_t, LteCcmMacSapProvider * > | m_ccmMacSapProviderMap |
A map of pointers to the SAP interfaces of CCM instance that provides the CCM specific functionalities to MAC, i.e. More... | |
LteCcmMacSapUser * | m_ccmMacSapUser |
LteCcmMacSapUser is extended version of LteMacSapUser interface. More... | |
LteCcmRrcSapProvider * | m_ccmRrcSapProvider |
A pointer to the SAP interface of the CCM instance to receive API calls from the eNodeB RRC instance. More... | |
LteCcmRrcSapUser * | m_ccmRrcSapUser |
A pointer to SAP interface of RRC instance, i.e. More... | |
LteMacSapProvider * | m_macSapProvider |
A pointer to main SAP interface of the MAC instance, which is in this case handled by CCM. More... | |
std::map< uint8_t, LteMacSapProvider * > | m_macSapProvidersMap |
A map of pointers to real SAP interfaces of MAC instances. More... | |
uint16_t | m_noOfComponentCarriers |
The number component of carriers that are supported by this eNb. More... | |
Ptr< LteEnbRrc > | m_rrc |
A pointer to the RRC instance of this eNb. More... | |
std::map< uint16_t, UeInfo > | m_ueInfo |
The map from RNTI to UE information. More... | |
Additional Inherited Members | |
Related Functions inherited from ns3::ObjectBase | |
static TypeId | GetObjectIid () |
Ensure the TypeId for ObjectBase gets fully configured to anchor the inheritance tree properly. More... | |
The class implements Component Carrier Manager (CCM) that operates using the Component Carrier Manager SAP interfaces.
CCM receives measurement reports from an eNode RRC instance and is forwarding calls from RLC to MAC layer, and from MAC to RLC.
This class is an abstract class intended to be inherited by subclasses that will implement its virtual methods. The subclasses are compatible with the LteEnbNetDevice class, and are accessible using namespace-based access through ns-3 Config subsystem, and can be installed and configured by LteHelper class.
The communication with the eNodeB RRC instance is done through the Component Carrier Manager SAP interface. The LteEnbComponentCarrierManager instance corresponds to the "provider" part of this interface, while the eNodeB RRC instance takes the role of the "user" part. The following code skeleton establishes the connection between both instances:
Ptr<LteEnbRrc> rrc = ...; Ptr<LteComponentCarrierManager> ccmEnb = ...; rrc->SetLteCcmRrcSapProvider (ccmEnb->GetLteCcmRrcSapProvider ()); ccmEnb->SetLteCcmRrcSapUser (rrc->GetLteCcmRrcSapUser ())
Similarly, LteEnbComponentCarrierManager instance communicates with MAC, and it takes the role of the "user".
However, user rarely needs to use the above code, since it has already been taken care by LteHelper::InstallEnbDevice.
Definition at line 79 of file lte-enb-component-carrier-manager.h.
ns3::LteEnbComponentCarrierManager::LteEnbComponentCarrierManager | ( | ) |
Definition at line 33 of file lte-enb-component-carrier-manager.cc.
|
override |
Definition at line 37 of file lte-enb-component-carrier-manager.cc.
|
overrideprotectedvirtual |
Destructor implementation.
This method is called by Dispose() or by the Object's destructor, whichever comes first.
Subclasses are expected to implement their real destruction code in an overridden version of this method and chain up to their parent's implementation once they are done. i.e, for simplicity, the destructor of every subclass should be empty and its content should be moved to the associated DoDispose() method.
It is safe to call GetObject() from within this method.
Reimplemented from ns3::Object.
Reimplemented in ns3::NoOpComponentCarrierManager.
Definition at line 50 of file lte-enb-component-carrier-manager.cc.
|
protectedpure virtual |
Implementation of ReportUeMeas.
rnti | Radio Network Temporary Identity, an integer identifying the UE where the report originates from |
measResults | a single report of one measurement identity |
Implemented in ns3::NoOpComponentCarrierManager.
|
virtual |
This function returns a pointer to the LteCcmMacSapUser interface, which is used by MAC to communicate to CCM when e.g.
UL buffer status report is received, or to notify CCM about PRB occupancy, and similar. Functions that are specific for the communication between MAC and CCM.
Definition at line 76 of file lte-enb-component-carrier-manager.cc.
References m_ccmMacSapUser, and NS_LOG_FUNCTION.
|
virtual |
Export the "provider" part of the ComponentCarrier Management SAP interface.
Definition at line 62 of file lte-enb-component-carrier-manager.cc.
References m_ccmRrcSapProvider, and NS_LOG_FUNCTION.
|
virtual |
Returns the pointer to the LteMacSapProvider interface, the provider of MAC, which is this new architecture served by LteEnbComponentCarrierManager object which will behave as a proxy, and will forward calls between to MAC objects of component carriers based on the logic implemented in the specific component carrier manager.
Definition at line 69 of file lte-enb-component-carrier-manager.cc.
References m_macSapProvider, and NS_LOG_FUNCTION.
|
static |
Get the type ID.
Definition at line 42 of file lte-enb-component-carrier-manager.cc.
References ns3::TypeId::SetParent().
|
virtual |
Set LteCcmMacSapProvider interface for the MAC object of the specified component carrier.
Through this interface CCM communicates with MAC, e.g. it notifies MAC of the specific carrier when to scheduler UL BSR.
componentCarrierId | component carrier ID |
sap | the MAC SAP provider |
Definition at line 107 of file lte-enb-component-carrier-manager.cc.
References m_ccmMacSapProviderMap, NS_LOG_FUNCTION, and two-ray-to-three-gpp-ch-calibration::res.
|
virtual |
Set the "user" part of the ComponentCarrier Management SAP interface that this ComponentCarrier algorithm instance will interact with.
s | a reference to the "user" part of the interface, typically a member of an LteEnbRrc instance |
Definition at line 55 of file lte-enb-component-carrier-manager.cc.
References m_ccmRrcSapUser, and NS_LOG_FUNCTION.
|
virtual |
Set LteMacSapProvider interface for the MAC object of the specified component carrier.
componentCarrierId | component carrier ID |
sap | the MAC SAP provider |
Definition at line 83 of file lte-enb-component-carrier-manager.cc.
References m_macSapProvidersMap, m_noOfComponentCarriers, NS_FATAL_ERROR, NS_LOG_FUNCTION, and two-ray-to-three-gpp-ch-calibration::res.
|
virtual |
Sets the total number of component carriers.
noOfComponentCarriers | number of component carriers |
Definition at line 125 of file lte-enb-component-carrier-manager.cc.
References m_ccmRrcSapUser, m_noOfComponentCarriers, ns3::MAX_NO_CC, NS_ABORT_MSG_IF, NS_LOG_FUNCTION, and ns3::LteCcmRrcSapUser::SetNumberOfComponentCarriers().
|
protected |
A map of pointers to the SAP interfaces of CCM instance that provides the CCM specific functionalities to MAC, i.e.
ReportMacCeToScheduler.
Definition at line 213 of file lte-enb-component-carrier-manager.h.
Referenced by ns3::NoOpComponentCarrierManager::DoUlReceiveMacCe(), ns3::RrComponentCarrierManager::DoUlReceiveMacCe(), ns3::NoOpComponentCarrierManager::DoUlReceiveSr(), ns3::RrComponentCarrierManager::DoUlReceiveSr(), and SetCcmMacSapProviders().
|
protected |
LteCcmMacSapUser is extended version of LteMacSapUser interface.
Contains functions that allow reporting of UL BSR from MAC to CCM.
Definition at line 217 of file lte-enb-component-carrier-manager.h.
Referenced by ns3::NoOpComponentCarrierManager::NoOpComponentCarrierManager(), ns3::NoOpComponentCarrierManager::DoConfigureSignalBearer(), ns3::NoOpComponentCarrierManager::DoDispose(), ns3::NoOpComponentCarrierManager::DoSetupDataRadioBearer(), and GetLteCcmMacSapUser().
|
protected |
A pointer to the SAP interface of the CCM instance to receive API calls from the eNodeB RRC instance.
Definition at line 222 of file lte-enb-component-carrier-manager.h.
Referenced by ns3::NoOpComponentCarrierManager::NoOpComponentCarrierManager(), ns3::NoOpComponentCarrierManager::DoDispose(), and GetLteCcmRrcSapProvider().
|
protected |
A pointer to SAP interface of RRC instance, i.e.
to configure measurements reporting for CCM.
Definition at line 219 of file lte-enb-component-carrier-manager.h.
Referenced by ns3::NoOpComponentCarrierManager::NoOpComponentCarrierManager(), ns3::NoOpComponentCarrierManager::DoReportBufferStatus(), ns3::RrComponentCarrierManager::DoReportBufferStatus(), ns3::RrComponentCarrierManager::DoUlReceiveMacCe(), SetLteCcmRrcSapUser(), and SetNumberOfComponentCarriers().
|
protected |
A pointer to main SAP interface of the MAC instance, which is in this case handled by CCM.
Definition at line 198 of file lte-enb-component-carrier-manager.h.
Referenced by ns3::NoOpComponentCarrierManager::NoOpComponentCarrierManager(), ns3::NoOpComponentCarrierManager::DoDispose(), and GetLteMacSapProvider().
|
protected |
A map of pointers to real SAP interfaces of MAC instances.
Definition at line 204 of file lte-enb-component-carrier-manager.h.
Referenced by ns3::NoOpComponentCarrierManager::DoReportBufferStatus(), ns3::RrComponentCarrierManager::DoReportBufferStatus(), ns3::NoOpComponentCarrierManager::DoTransmitPdu(), and SetMacSapProvider().
|
protected |
The number component of carriers that are supported by this eNb.
Definition at line 180 of file lte-enb-component-carrier-manager.h.
Referenced by ns3::NoOpComponentCarrierManager::DoSetupDataRadioBearer(), SetMacSapProvider(), and SetNumberOfComponentCarriers().
A pointer to the RRC instance of this eNb.
Definition at line 184 of file lte-enb-component-carrier-manager.h.
|
protected |
The map from RNTI to UE information.
Definition at line 179 of file lte-enb-component-carrier-manager.h.
Referenced by ns3::NoOpComponentCarrierManager::DoAddLc(), ns3::NoOpComponentCarrierManager::DoAddUe(), ns3::NoOpComponentCarrierManager::DoConfigureSignalBearer(), ns3::NoOpComponentCarrierManager::DoNotifyTxOpportunity(), ns3::NoOpComponentCarrierManager::DoReceivePdu(), ns3::NoOpComponentCarrierManager::DoReleaseDataRadioBearer(), ns3::NoOpComponentCarrierManager::DoRemoveUe(), ns3::RrComponentCarrierManager::DoReportBufferStatus(), ns3::NoOpComponentCarrierManager::DoSetupDataRadioBearer(), ns3::RrComponentCarrierManager::DoUlReceiveMacCe(), and ns3::RrComponentCarrierManager::DoUlReceiveSr().