A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::LteUeMac Class Reference

#include <lte-ue-mac.h>

+ Inheritance diagram for ns3::LteUeMac:
+ Collaboration diagram for ns3::LteUeMac:

Public Member Functions

 LteUeMac ()
virtual ~LteUeMac ()
virtual void DoDispose (void)
void DoSubframeIndication (uint32_t frameNo, uint32_t subframeNo)
 Forwarded from LteUePhySapUser: trigger the start from a new frame.
LteMacSapProviderGetLteMacSapProvider (void)
LteUeCmacSapProviderGetLteUeCmacSapProvider (void)
LteUePhySapUserGetLteUePhySapUser ()
 Get the PHY SAP user.
void SetLteUeCmacSapUser (LteUeCmacSapUser *s)
void SetLteUePhySapProvider (LteUePhySapProvider *s)
 Set the PHY SAP Provider.
- Public Member Functions inherited from ns3::Object
 Object ()
virtual ~Object ()
void AggregateObject (Ptr< Object > other)
void Dispose (void)
AggregateIterator GetAggregateIterator (void) const
virtual TypeId GetInstanceTypeId (void) const
template<typename T >
Ptr< T > GetObject (void) const
template<typename T >
Ptr< T > GetObject (TypeId tid) const
void Start (void)
- Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter >
 SimpleRefCount ()
 SimpleRefCount (const SimpleRefCount &o)
uint32_t GetReferenceCount (void) const
SimpleRefCountoperator= (const SimpleRefCount &o)
void Ref (void) const
void Unref (void) const
- Public Member Functions inherited from ns3::ObjectBase
virtual ~ObjectBase ()
void GetAttribute (std::string name, AttributeValue &value) const
bool GetAttributeFailSafe (std::string name, AttributeValue &attribute) const
void SetAttribute (std::string name, const AttributeValue &value)
bool SetAttributeFailSafe (std::string name, const AttributeValue &value)
bool TraceConnect (std::string name, std::string context, const CallbackBase &cb)
bool TraceConnectWithoutContext (std::string name, const CallbackBase &cb)
bool TraceDisconnect (std::string name, std::string context, const CallbackBase &cb)
bool TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb)

Static Public Member Functions

static TypeId GetTypeId (void)
 This method returns the TypeId associated to ns3::LteUeMac.

Private Member Functions

void DoAddLc (uint8_t lcId, LteMacSapUser *msu)
void DoConfigureUe (uint16_t rnti)
void DoReceiveIdealControlMessage (Ptr< IdealControlMessage > msg)
void DoReceivePhyPdu (Ptr< Packet > p)
void DoRemoveLc (uint8_t lcId)
void DoReportBufferStatus (LteMacSapProvider::ReportBufferStatusParameters params)
void DoRrcUpdateConfigurationReq (LteUeConfig_t params)
void DoTransmitPdu (LteMacSapProvider::TransmitPduParameters params)
void SendReportBufferStatus (void)

Private Attributes

Time m_bsrLast
Time m_bsrPeriodicity
LteUeCmacSapProviderm_cmacSapProvider
LteUeCmacSapUserm_cmacSapUser
bool m_freshUlBsr
LteMacSapProviderm_macSapProvider
std::map< uint8_t,
LteMacSapUser * > 
m_macSapUserMap
uint16_t m_rnti
LteUePhySapProviderm_uePhySapProvider
LteUePhySapUserm_uePhySapUser
std::map< uint8_t, uint64_t > m_ulBsrReceived

Friends

class UeMemberLteMacSapProvider
class UeMemberLteUeCmacSapProvider
class UeMemberLteUePhySapUser

Additional Inherited Members

- Protected Member Functions inherited from ns3::Object
 Object (const Object &o)
virtual void DoStart (void)
virtual void NotifyNewAggregate (void)

Detailed Description

Definition at line 38 of file lte-ue-mac.h.

Constructor & Destructor Documentation

ns3::LteUeMac::~LteUeMac ( )
virtual

Definition at line 200 of file lte-ue-mac.cc.

References NS_LOG_FUNCTION.

Member Function Documentation

void ns3::LteUeMac::DoAddLc ( uint8_t  lcId,
LteMacSapUser msu 
)
private

Definition at line 327 of file lte-ue-mac.cc.

References m_macSapUserMap, NS_ASSERT_MSG, and NS_LOG_FUNCTION.

Referenced by ns3::UeMemberLteUeCmacSapProvider::AddLc().

+ Here is the caller graph for this function:

void ns3::LteUeMac::DoConfigureUe ( uint16_t  rnti)
private

Definition at line 320 of file lte-ue-mac.cc.

References m_rnti, and NS_LOG_FUNCTION.

Referenced by ns3::UeMemberLteUeCmacSapProvider::ConfigureUe().

+ Here is the caller graph for this function:

void ns3::LteUeMac::DoDispose ( void  )
virtual

This method is called by Object::Dispose or by the object's destructor, whichever comes first.

Subclasses are expected to implement their real destruction code in an overriden 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.

Definition at line 206 of file lte-ue-mac.cc.

References m_cmacSapProvider, m_macSapProvider, m_uePhySapUser, and NS_LOG_FUNCTION.

void ns3::LteUeMac::DoReceiveIdealControlMessage ( Ptr< IdealControlMessage msg)
private

Definition at line 367 of file lte-ue-mac.cc.

References ns3::IdealControlMessage::GetMessageType(), m_macSapUserMap, m_ulBsrReceived, NS_ASSERT_MSG, NS_LOG_ERROR, NS_LOG_FUNCTION, and ns3::IdealControlMessage::UL_DCI.

Referenced by ns3::UeMemberLteUePhySapUser::ReceiveIdealControlMessage().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::LteUeMac::DoReceivePhyPdu ( Ptr< Packet p)
private

Definition at line 352 of file lte-ue-mac.cc.

References ns3::LteRadioBearerTag::GetLcid(), ns3::LteRadioBearerTag::GetRnti(), m_macSapUserMap, m_rnti, NS_ASSERT_MSG, and ns3::Packet::RemovePacketTag().

Referenced by ns3::UeMemberLteUePhySapUser::ReceivePhyPdu().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::LteUeMac::DoRemoveLc ( uint8_t  lcId)
private

Definition at line 335 of file lte-ue-mac.cc.

References m_macSapUserMap, NS_ASSERT_MSG, and NS_LOG_FUNCTION.

Referenced by ns3::UeMemberLteUeCmacSapProvider::RemoveLc().

+ Here is the caller graph for this function:

void ns3::LteUeMac::DoRrcUpdateConfigurationReq ( LteUeConfig_t  params)
private

Definition at line 343 of file lte-ue-mac.cc.

References ns3::LteUeConfig_t::m_transmissionMode, m_uePhySapProvider, NS_LOG_FUNCTION, and ns3::LteUePhySapProvider::SetTransmissionMode().

Referenced by ns3::UeMemberLteUeCmacSapProvider::RrcUpdateConfigurationReq().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::LteUeMac::DoSubframeIndication ( uint32_t  frameNo,
uint32_t  subframeNo 
)

Forwarded from LteUePhySapUser: trigger the start from a new frame.

Parameters
frameNoframe number
subframeNosubframe number

Definition at line 418 of file lte-ue-mac.cc.

References m_bsrLast, m_bsrPeriodicity, m_freshUlBsr, ns3::Now(), ns3::Simulator::Now(), NS_LOG_FUNCTION, and SendReportBufferStatus().

Referenced by ns3::UeMemberLteUePhySapUser::SubframeIndication().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

LteMacSapProvider * ns3::LteUeMac::GetLteMacSapProvider ( void  )

Definition at line 230 of file lte-ue-mac.cc.

References m_macSapProvider.

Referenced by ns3::LteHelper::InstallSingleUeDevice().

+ Here is the caller graph for this function:

LteUeCmacSapProvider * ns3::LteUeMac::GetLteUeCmacSapProvider ( void  )

Definition at line 242 of file lte-ue-mac.cc.

References m_cmacSapProvider.

Referenced by ns3::LteHelper::InstallSingleUeDevice().

+ Here is the caller graph for this function:

LteUePhySapUser * ns3::LteUeMac::GetLteUePhySapUser ( void  )

Get the PHY SAP user.

Returns
a pointer to the SAP user of the PHY

Definition at line 217 of file lte-ue-mac.cc.

References m_uePhySapUser.

Referenced by ns3::LteHelper::InstallSingleUeDevice().

+ Here is the caller graph for this function:

TypeId ns3::LteUeMac::GetTypeId ( void  )
static

This method returns the TypeId associated to ns3::LteUeMac.

This object is accessible through the following paths with Config::Set and Config::Connect:

  • /NodeList/[i]/DeviceList/[i]/$ns3::LteNetDevice/$ns3::LteUeNetDevice/LteUeMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::LteUeNetDevice/LteUeMac

No Attributes defined for this type.
No TraceSources defined for this type.

Reimplemented from ns3::Object.

Definition at line 178 of file lte-ue-mac.cc.

References ns3::TypeId::SetParent().

+ Here is the call graph for this function:

void ns3::LteUeMac::SendReportBufferStatus ( void  )
private
void ns3::LteUeMac::SetLteUeCmacSapUser ( LteUeCmacSapUser s)

Definition at line 236 of file lte-ue-mac.cc.

References m_cmacSapUser.

Referenced by ns3::LteHelper::InstallSingleUeDevice().

+ Here is the caller graph for this function:

void ns3::LteUeMac::SetLteUePhySapProvider ( LteUePhySapProvider s)

Set the PHY SAP Provider.

Parameters
sa pointer to the PHY SAP Provider

Definition at line 223 of file lte-ue-mac.cc.

References m_uePhySapProvider.

Referenced by ns3::LteHelper::InstallSingleUeDevice().

+ Here is the caller graph for this function:

Friends And Related Function Documentation

friend class UeMemberLteMacSapProvider
friend

Definition at line 41 of file lte-ue-mac.h.

Referenced by LteUeMac().

friend class UeMemberLteUeCmacSapProvider
friend

Definition at line 40 of file lte-ue-mac.h.

Referenced by LteUeMac().

friend class UeMemberLteUePhySapUser
friend

Definition at line 42 of file lte-ue-mac.h.

Referenced by LteUeMac().

Member Data Documentation

Time ns3::LteUeMac::m_bsrLast
private

Definition at line 106 of file lte-ue-mac.h.

Referenced by DoSubframeIndication().

Time ns3::LteUeMac::m_bsrPeriodicity
private

Definition at line 105 of file lte-ue-mac.h.

Referenced by DoSubframeIndication().

LteUeCmacSapProvider* ns3::LteUeMac::m_cmacSapProvider
private

Definition at line 98 of file lte-ue-mac.h.

Referenced by DoDispose(), GetLteUeCmacSapProvider(), and LteUeMac().

LteUeCmacSapUser* ns3::LteUeMac::m_cmacSapUser
private

Definition at line 97 of file lte-ue-mac.h.

Referenced by SetLteUeCmacSapUser().

bool ns3::LteUeMac::m_freshUlBsr
private

Definition at line 108 of file lte-ue-mac.h.

Referenced by DoReportBufferStatus(), and DoSubframeIndication().

LteMacSapProvider* ns3::LteUeMac::m_macSapProvider
private

Definition at line 95 of file lte-ue-mac.h.

Referenced by DoDispose(), GetLteMacSapProvider(), and LteUeMac().

std::map<uint8_t, LteMacSapUser*> ns3::LteUeMac::m_macSapUserMap
private

Definition at line 94 of file lte-ue-mac.h.

Referenced by DoAddLc(), DoReceiveIdealControlMessage(), DoReceivePhyPdu(), and DoRemoveLc().

uint16_t ns3::LteUeMac::m_rnti
private
LteUePhySapProvider* ns3::LteUeMac::m_uePhySapProvider
private
LteUePhySapUser* ns3::LteUeMac::m_uePhySapUser
private

Definition at line 101 of file lte-ue-mac.h.

Referenced by DoDispose(), GetLteUePhySapUser(), and LteUeMac().

std::map<uint8_t, uint64_t> ns3::LteUeMac::m_ulBsrReceived
private

The documentation for this class was generated from the following files: