31 : m_ccmRrcSapUser (0), m_ccmRrcSapProvider (0), m_noOfComponentCarriers(0)
44 static TypeId tid =
TypeId (
"ns3::LteUeComponentCarrierManager")
76 std::map <uint8_t, LteMacSapProvider*>::iterator it;
80 NS_FATAL_ERROR (
"Inconsistent componentCarrierId or you didn't call SetNumberOfComponentCarriers before calling this method");
84 NS_FATAL_ERROR (
"Tried to allocated an existing componentCarrierId");
99 NS_ABORT_MSG_IF (noOfComponentCarriers < MIN_NO_CC || noOfComponentCarriers >
MAX_NO_CC,
"Number of component carriers should be greater than 0 and less than 6");
bool SetComponentCarrierMacSapProviders(uint8_t componentCarrierId, LteMacSapProvider *sap)
Sets a pointer to SAP interface of MAC instance for the specified carrier.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
LteUeCcmRrcSapProvider * m_ccmRrcSapProvider
Receive API calls from the UE RRC instance.
static TypeId GetTypeId()
Get the type ID.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_FATAL_ERROR(msg)
Report a fatal error with a message and terminate.
LteUeComponentCarrierManager()
virtual ~LteUeComponentCarrierManager()
Service Access Point (SAP) offered by the UE RRC to the UE CCM.
void SetNumberOfComponentCarriers(uint8_t noOfComponentCarriers)
Sets number of component carriers that are supported by this UE.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
virtual LteUeCcmRrcSapProvider * GetLteCcmRrcSapProvider()
Exports the "provider" part of the ComponentCarrier Management SAP interface.
std::map< uint8_t, LteMacSapProvider * > m_macSapProvidersMap
Map of pointers to SAP to interfaces of the MAC instance if the flows of this UE. ...
LteUeCcmRrcSapUser * m_ccmRrcSapUser
Interface to the UE RRC instance.
Service Access Point (SAP) offered by the UE component carrier manager to the UE RRC...
virtual void SetNumberOfComponentCarriers(uint16_t noOfComponentCarriers)=0
Set the number of component carriers.
#define NS_ABORT_MSG_IF(cond, msg)
Abnormal program termination if a condition is true, with a message.
virtual void DoDispose()
Destructor implementation.
Service Access Point (SAP) offered by the MAC to the RLC See Femto Forum MAC Scheduler Interface Spec...
A base class which provides memory management and object aggregation.
virtual void SetLteCcmRrcSapUser(LteUeCcmRrcSapUser *s)
Set the "user" part of the ComponentCarrier Management SAP interface that this UE component carrier m...
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
uint16_t m_noOfComponentCarriers
// The number of component carriers that this UE can support.