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

#include <lte-rlc.h>

+ Inheritance diagram for ns3::LteRlcSm:
+ Collaboration diagram for ns3::LteRlcSm:

Public Member Functions

 LteRlcSm ()
virtual ~LteRlcSm ()
virtual void DoNotifyHarqDeliveryFailure ()
virtual void DoNotifyTxOpportunity (uint32_t bytes, uint8_t layer)
virtual void DoReceivePdu (Ptr< Packet > p)
virtual void DoTransmitPdcpPdu (Ptr< Packet > p)
void Start ()
- Public Member Functions inherited from ns3::LteRlc
 LteRlc ()
virtual ~LteRlc ()
LteMacSapUserGetLteMacSapUser ()
LteRlcSapProviderGetLteRlcSapProvider ()
void SetLcId (uint8_t lcId)
void SetLteMacSapProvider (LteMacSapProvider *s)
void SetLteRlcSapUser (LteRlcSapUser *s)
void SetRnti (uint16_t rnti)
- 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
- 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::LteRlcSm.

Private Member Functions

void ReportBufferStatus ()

Additional Inherited Members

- Protected Member Functions inherited from ns3::Object
 Object (const Object &o)
virtual void DoDispose (void)
virtual void DoStart (void)
virtual void NotifyNewAggregate (void)
- Protected Attributes inherited from ns3::LteRlc
uint8_t m_lcid
LteMacSapProviderm_macSapProvider
LteMacSapUserm_macSapUser
LteRlcSapProviderm_rlcSapProvider
LteRlcSapUserm_rlcSapUser
uint16_t m_rnti
TracedCallback< uint16_t,
uint8_t, uint32_t, uint64_t > 
m_rxPdu
TracedCallback< uint16_t,
uint8_t, uint32_t > 
m_txPdu

Detailed Description

LTE_RLC Saturation Mode (SM): simulation-specific mode used for experiments that do not need to consider the layers above the LTE_RLC. The LTE_RLC SM, unlike the standard LTE_RLC modes, it does not provide data delivery services to upper layers; rather, it just generates a new LTE_RLC PDU whenever the MAC notifies a transmission opportunity.

Definition at line 145 of file lte-rlc.h.

Constructor & Destructor Documentation

ns3::LteRlcSm::LteRlcSm ( )

Definition at line 166 of file lte-rlc.cc.

References NS_LOG_FUNCTION, ns3::Simulator::ScheduleNow(), and Start().

+ Here is the call graph for this function:

ns3::LteRlcSm::~LteRlcSm ( )
virtual

Definition at line 173 of file lte-rlc.cc.

Member Function Documentation

void ns3::LteRlcSm::DoNotifyHarqDeliveryFailure ( )
virtual

Implements ns3::LteRlc.

Definition at line 235 of file lte-rlc.cc.

References NS_LOG_FUNCTION.

void ns3::LteRlcSm::DoReceivePdu ( Ptr< Packet p)
virtual
void ns3::LteRlcSm::DoTransmitPdcpPdu ( Ptr< Packet p)
virtual

Implements ns3::LteRlc.

Definition at line 189 of file lte-rlc.cc.

References NS_LOG_FUNCTION.

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

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

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

  • /NodeList/[i]/DeviceList/[i]/$ns3::LteEnbNetDevice/LteEnbRrc/UeMap/[i]/RadioBearerMap/[i]/LteRlc/$ns3::LteRlcSm
  • /NodeList/[i]/DeviceList/[i]/$ns3::LteNetDevice/$ns3::LteEnbNetDevice/LteEnbRrc/UeMap/[i]/RadioBearerMap/[i]/LteRlc/$ns3::LteRlcSm
  • /NodeList/[i]/DeviceList/[i]/$ns3::LteNetDevice/$ns3::LteUeNetDevice/LteUeRrc/RadioBearerMap/[i]/LteRlc/$ns3::LteRlcSm
  • /NodeList/[i]/DeviceList/[i]/$ns3::LteUeNetDevice/LteUeRrc/RadioBearerMap/[i]/LteRlc/$ns3::LteRlcSm

No Attributes defined for this type.
No TraceSources defined for this type.
TraceSources defined in parent class ns3::LteRlc:

  • TxPDU: PDU transmission notified to the MAC.
  • RxPDU: PDU received.

Reimplemented from ns3::LteRlc.

Definition at line 179 of file lte-rlc.cc.

References ns3::TypeId::SetParent().

Referenced by ns3::LteUeRrc::SetupRadioBearer(), and ns3::LteEnbRrc::SetupRadioBearer().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::LteRlcSm::Start ( void  )

This method calls the virtual DoStart method on all the objects aggregated to this object. DoStart will be called only once over the lifetime of an object, just like DoDispose is called only once.

See Also
DoStart

Note: the code here is a bit tricky because we need to protect ourselves from modifications in the aggregate array while DoStart is called. The user's implementation of the DoStart method could call GetObject (which could reorder the array) and it could call AggregateObject which would add an object at the end of the array. To be safe, we restart iteration over the array whenever we call some user code, just in case.

Reimplemented from ns3::Object.

Definition at line 241 of file lte-rlc.cc.

References NS_LOG_FUNCTION, and ReportBufferStatus().

Referenced by LteRlcSm().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:


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