A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::LteSimpleHelper Class Reference

A simplified version of LteHelper, that is used for creation and configuration of LTE entities for testing purposes when just a limited LteHelper functionality is wanted. More...

#include "lte-simple-helper.h"

+ Inheritance diagram for ns3::LteSimpleHelper:
+ Collaboration diagram for ns3::LteSimpleHelper:

Public Member Functions

 LteSimpleHelper ()
 
 ~LteSimpleHelper () override
 
void DoDispose () override
 Destructor implementation.
 
void EnableDlPdcpTraces ()
 Enable trace sinks for DL PDCP layer.
 
void EnableDlRlcTraces ()
 Enable trace sinks for DL RLC layer.
 
void EnableLogComponents ()
 Enables logging for all components of the LENA architecture.
 
void EnablePdcpTraces ()
 Enable trace sinks for PDCP layer.
 
void EnableRlcTraces ()
 Enable trace sinks for RLC layer.
 
void EnableTraces ()
 Enables trace sinks for MAC, RLC and PDCP.
 
void EnableUlPdcpTraces ()
 Enable trace sinks for UL PDCP layer.
 
void EnableUlRlcTraces ()
 Enable trace sinks for UL RLC layer.
 
NetDeviceContainer InstallEnbDevice (NodeContainer c)
 create a set of eNB devices
 
NetDeviceContainer InstallUeDevice (NodeContainer c)
 create a set of UE devices
 
- Public Member Functions inherited from ns3::Object
 Object ()
 Constructor.
 
 ~Object () override
 Destructor.
 
void AggregateObject (Ptr< Object > other)
 Aggregate two Objects together.
 
void Dispose ()
 Dispose of this Object.
 
AggregateIterator GetAggregateIterator () const
 Get an iterator to the Objects aggregated to this one.
 
TypeId GetInstanceTypeId () const override
 Get the most derived TypeId for this Object.
 
template<typename T >
Ptr< T > GetObject () const
 Get a pointer to the requested aggregated Object.
 
template<>
Ptr< ObjectGetObject () const
 Specialization of () for objects of type ns3::Object.
 
template<typename T >
Ptr< T > GetObject (TypeId tid) const
 Get a pointer to the requested aggregated Object by TypeId.
 
template<>
Ptr< ObjectGetObject (TypeId tid) const
 Specialization of (TypeId tid) for objects of type ns3::Object.
 
void Initialize ()
 Invoke DoInitialize on all Objects aggregated to this one.
 
bool IsInitialized () const
 Check if the object has been initialized.
 
void UnidirectionalAggregateObject (Ptr< Object > other)
 Aggregate an Object to another Object.
 
- Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter >
 SimpleRefCount ()
 Default constructor.
 
 SimpleRefCount (const SimpleRefCount &o)
 Copy constructor.
 
uint32_t GetReferenceCount () const
 Get the reference count of the object.
 
SimpleRefCountoperator= (const SimpleRefCount &o)
 Assignment operator.
 
void Ref () const
 Increment the reference count.
 
void Unref () const
 Decrement the reference count.
 
- Public Member Functions inherited from ns3::ObjectBase
virtual ~ObjectBase ()
 Virtual destructor.
 
void GetAttribute (std::string name, AttributeValue &value) const
 Get the value of an attribute, raising fatal errors if unsuccessful.
 
bool GetAttributeFailSafe (std::string name, AttributeValue &value) const
 Get the value of an attribute without raising errors.
 
virtual TypeId GetInstanceTypeId () const =0
 Get the most derived TypeId for this Object.
 
void SetAttribute (std::string name, const AttributeValue &value)
 Set a single attribute, raising fatal errors if unsuccessful.
 
bool SetAttributeFailSafe (std::string name, const AttributeValue &value)
 Set a single attribute without raising errors.
 
bool TraceConnect (std::string name, std::string context, const CallbackBase &cb)
 Connect a TraceSource to a Callback with a context.
 
bool TraceConnectWithoutContext (std::string name, const CallbackBase &cb)
 Connect a TraceSource to a Callback without a context.
 
bool TraceDisconnect (std::string name, std::string context, const CallbackBase &cb)
 Disconnect from a TraceSource a Callback previously connected with a context.
 
bool TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb)
 Disconnect from a TraceSource a Callback previously connected without a context.
 

Static Public Member Functions

static TypeId GetTypeId ()
 Get the type ID.
 
- Static Public Member Functions inherited from ns3::Object
static TypeId GetTypeId ()
 Register this type.
 
- Static Public Member Functions inherited from ns3::ObjectBase
static TypeId GetTypeId ()
 Get the type ID.
 

Public Attributes

Ptr< LteTestMacm_enbMac
 ENB MAC.
 
Ptr< LteTestRrcm_enbRrc
 ENB RRC.
 
Ptr< LteTestMacm_ueMac
 UE MAC.
 
Ptr< LteTestRrcm_ueRrc
 UE RRC.
 

Protected Member Functions

void DoInitialize () override
 Initialize() implementation.
 
- Protected Member Functions inherited from ns3::Object
 Object (const Object &o)
 Copy an Object.
 
virtual void DoDispose ()
 Destructor implementation.
 
virtual void DoInitialize ()
 Initialize() implementation.
 
virtual void NotifyNewAggregate ()
 Notify all Objects aggregated to this one of a new Object being aggregated.
 
- Protected Member Functions inherited from ns3::ObjectBase
void ConstructSelf (const AttributeConstructionList &attributes)
 Complete construction of ObjectBase; invoked by derived classes.
 
virtual void NotifyConstructionCompleted ()
 Notifier called once the ObjectBase is fully constructed.
 

Private Types

enum  LteRlcEntityType_t { RLC_UM = 1 , RLC_AM = 2 }
 LteRlcEntityType_t enumeration. More...
 

Private Member Functions

Ptr< NetDeviceInstallSingleEnbDevice (Ptr< Node > n)
 Install single ENB device.
 
Ptr< NetDeviceInstallSingleUeDevice (Ptr< Node > n)
 Install single UE device.
 

Private Attributes

ObjectFactory m_enbDeviceFactory
 ENB device factory.
 
Ptr< LtePdcpm_enbPdcp
 ENB PDCP.
 
Ptr< LteRlcm_enbRlc
 ENB RLC.
 
enum ns3::LteSimpleHelper::LteRlcEntityType_t m_lteRlcEntityType
 RLC entity type.
 
Ptr< SimpleChannelm_phyChannel
 the physical channel
 
ObjectFactory m_ueDeviceFactory
 UE device factory.
 
Ptr< LtePdcpm_uePdcp
 UE PDCP.
 
Ptr< LteRlcm_ueRlc
 UE RLC.
 

Additional Inherited Members

Detailed Description

A simplified version of LteHelper, that is used for creation and configuration of LTE entities for testing purposes when just a limited LteHelper functionality is wanted.

Definition at line 47 of file lte-simple-helper.h.

Member Enumeration Documentation

◆ LteRlcEntityType_t

LteRlcEntityType_t enumeration.

Enumerator
RLC_UM 
RLC_AM 

Definition at line 159 of file lte-simple-helper.h.

Constructor & Destructor Documentation

◆ LteSimpleHelper()

ns3::LteSimpleHelper::LteSimpleHelper ( )

Definition at line 39 of file lte-simple-helper.cc.

References ns3::LteSimpleNetDevice::GetTypeId(), m_enbDeviceFactory, m_ueDeviceFactory, NS_LOG_FUNCTION, and ns3::ObjectFactory::SetTypeId().

+ Here is the call graph for this function:

◆ ~LteSimpleHelper()

ns3::LteSimpleHelper::~LteSimpleHelper ( )
override

Definition at line 56 of file lte-simple-helper.cc.

References NS_LOG_FUNCTION.

Member Function Documentation

◆ DoDispose()

void ns3::LteSimpleHelper::DoDispose ( )
overridevirtual

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.

Definition at line 77 of file lte-simple-helper.cc.

References ns3::Object::Dispose(), ns3::Object::DoDispose(), m_enbMac, m_phyChannel, m_ueMac, and NS_LOG_FUNCTION.

+ Here is the call graph for this function:

◆ DoInitialize()

void ns3::LteSimpleHelper::DoInitialize ( )
overrideprotectedvirtual

Initialize() implementation.

This method is called only once by Initialize(). If the user calls Initialize() multiple times, DoInitialize() is called only the first time.

Subclasses are expected to override this method and chain up to their parent's implementation once they are done. It is safe to call GetObject() and AggregateObject() from within this method.

Reimplemented from ns3::Object.

Definition at line 47 of file lte-simple-helper.cc.

References ns3::Object::DoInitialize(), m_phyChannel, and NS_LOG_FUNCTION.

+ Here is the call graph for this function:

◆ EnableDlPdcpTraces()

void ns3::LteSimpleHelper::EnableDlPdcpTraces ( )

Enable trace sinks for DL PDCP layer.

Definition at line 365 of file lte-simple-helper.cc.

References NS_LOG_FUNCTION_NOARGS.

Referenced by EnablePdcpTraces().

+ Here is the caller graph for this function:

◆ EnableDlRlcTraces()

void ns3::LteSimpleHelper::EnableDlRlcTraces ( )

Enable trace sinks for DL RLC layer.

Definition at line 290 of file lte-simple-helper.cc.

References NS_LOG_FUNCTION_NOARGS.

Referenced by EnableRlcTraces().

+ Here is the caller graph for this function:

◆ EnableLogComponents()

void ns3::LteSimpleHelper::EnableLogComponents ( )

Enables logging for all components of the LENA architecture.

Definition at line 212 of file lte-simple-helper.cc.

References ns3::LOG_LEVEL_ALL, ns3::LOG_PREFIX_FUNC, ns3::LOG_PREFIX_NODE, ns3::LOG_PREFIX_TIME, and ns3::LogComponentEnable().

+ Here is the call graph for this function:

◆ EnablePdcpTraces()

void ns3::LteSimpleHelper::EnablePdcpTraces ( )

Enable trace sinks for PDCP layer.

Definition at line 358 of file lte-simple-helper.cc.

References EnableDlPdcpTraces(), and EnableUlPdcpTraces().

Referenced by EnableTraces().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ EnableRlcTraces()

void ns3::LteSimpleHelper::EnableRlcTraces ( )

Enable trace sinks for RLC layer.

Definition at line 237 of file lte-simple-helper.cc.

References EnableDlRlcTraces(), and EnableUlRlcTraces().

Referenced by EnableTraces().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ EnableTraces()

void ns3::LteSimpleHelper::EnableTraces ( )

Enables trace sinks for MAC, RLC and PDCP.

Definition at line 229 of file lte-simple-helper.cc.

References EnablePdcpTraces(), and EnableRlcTraces().

+ Here is the call graph for this function:

◆ EnableUlPdcpTraces()

void ns3::LteSimpleHelper::EnableUlPdcpTraces ( )

Enable trace sinks for UL PDCP layer.

Definition at line 376 of file lte-simple-helper.cc.

References NS_LOG_FUNCTION_NOARGS.

Referenced by EnablePdcpTraces().

+ Here is the caller graph for this function:

◆ EnableUlRlcTraces()

void ns3::LteSimpleHelper::EnableUlRlcTraces ( )

Enable trace sinks for UL RLC layer.

Definition at line 347 of file lte-simple-helper.cc.

References NS_LOG_FUNCTION_NOARGS.

Referenced by EnableRlcTraces().

+ Here is the caller graph for this function:

◆ GetTypeId()

TypeId ns3::LteSimpleHelper::GetTypeId ( )
static

Get the type ID.

Returns
the object TypeId

Definition at line 62 of file lte-simple-helper.cc.

References m_lteRlcEntityType, ns3::MakeEnumChecker(), RLC_AM, RLC_UM, and ns3::TypeId::SetParent().

+ Here is the call graph for this function:

◆ InstallEnbDevice()

NetDeviceContainer ns3::LteSimpleHelper::InstallEnbDevice ( NodeContainer  c)

create a set of eNB devices

Parameters
cthe node container where the devices are to be installed
Returns
the NetDeviceContainer with the newly created devices

Definition at line 91 of file lte-simple-helper.cc.

References ns3::NodeContainer::Begin(), ns3::NodeContainer::End(), ns3::Object::Initialize(), InstallSingleEnbDevice(), and NS_LOG_FUNCTION.

+ Here is the call graph for this function:

◆ InstallSingleEnbDevice()

Ptr< NetDevice > ns3::LteSimpleHelper::InstallSingleEnbDevice ( Ptr< Node n)
private

Install single ENB device.

Parameters
nthe node
Returns
the device

Definition at line 120 of file lte-simple-helper.cc.

References ns3::Mac48Address::Allocate(), ns3::ObjectFactory::Create(), ns3::LteTestMac::GetLteMacSapProvider(), ns3::LteRlc::GetLteMacSapUser(), ns3::LteRlc::GetLteRlcSapProvider(), m_enbDeviceFactory, m_enbMac, m_enbPdcp, m_enbRlc, m_enbRrc, m_lteRlcEntityType, m_phyChannel, ns3::MakeCallback(), NS_LOG_FUNCTION, ns3::LteTestMac::Receive(), RLC_UM, ns3::LteTestMac::SetDevice(), ns3::LteRlc::SetLcId(), ns3::LteRlc::SetLteMacSapProvider(), ns3::LteTestMac::SetLteMacSapUser(), ns3::LteRlc::SetLteRlcSapUser(), and ns3::LteRlc::SetRnti().

Referenced by InstallEnbDevice().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InstallSingleUeDevice()

Ptr< NetDevice > ns3::LteSimpleHelper::InstallSingleUeDevice ( Ptr< Node n)
private

Install single UE device.

Parameters
nthe node
Returns
the device

Definition at line 167 of file lte-simple-helper.cc.

References ns3::Mac48Address::Allocate(), ns3::ObjectFactory::Create(), ns3::LteTestMac::GetLteMacSapProvider(), ns3::LteRlc::GetLteMacSapUser(), ns3::LteRlc::GetLteRlcSapProvider(), m_lteRlcEntityType, m_phyChannel, m_ueDeviceFactory, m_ueMac, m_uePdcp, m_ueRlc, m_ueRrc, ns3::MakeCallback(), NS_LOG_FUNCTION, ns3::LteTestMac::Receive(), RLC_UM, ns3::LteTestMac::SetDevice(), ns3::LteRlc::SetLcId(), ns3::LteRlc::SetLteMacSapProvider(), ns3::LteTestMac::SetLteMacSapUser(), ns3::LteRlc::SetLteRlcSapUser(), and ns3::LteRlc::SetRnti().

Referenced by InstallUeDevice().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InstallUeDevice()

NetDeviceContainer ns3::LteSimpleHelper::InstallUeDevice ( NodeContainer  c)

create a set of UE devices

Parameters
cthe node container where the devices are to be installed
Returns
the NetDeviceContainer with the newly created devices

Definition at line 106 of file lte-simple-helper.cc.

References ns3::NodeContainer::Begin(), ns3::NodeContainer::End(), InstallSingleUeDevice(), and NS_LOG_FUNCTION.

+ Here is the call graph for this function:

Member Data Documentation

◆ m_enbDeviceFactory

ObjectFactory ns3::LteSimpleHelper::m_enbDeviceFactory
private

ENB device factory.

Definition at line 155 of file lte-simple-helper.h.

Referenced by LteSimpleHelper(), and InstallSingleEnbDevice().

◆ m_enbMac

Ptr<LteTestMac> ns3::LteSimpleHelper::m_enbMac

ENB MAC.

Definition at line 145 of file lte-simple-helper.h.

Referenced by DoDispose(), and InstallSingleEnbDevice().

◆ m_enbPdcp

Ptr<LtePdcp> ns3::LteSimpleHelper::m_enbPdcp
private

ENB PDCP.

Definition at line 149 of file lte-simple-helper.h.

Referenced by InstallSingleEnbDevice().

◆ m_enbRlc

Ptr<LteRlc> ns3::LteSimpleHelper::m_enbRlc
private

ENB RLC.

Definition at line 150 of file lte-simple-helper.h.

Referenced by InstallSingleEnbDevice().

◆ m_enbRrc

Ptr<LteTestRrc> ns3::LteSimpleHelper::m_enbRrc

ENB RRC.

Definition at line 142 of file lte-simple-helper.h.

Referenced by InstallSingleEnbDevice().

◆ m_lteRlcEntityType

enum ns3::LteSimpleHelper::LteRlcEntityType_t ns3::LteSimpleHelper::m_lteRlcEntityType
private

RLC entity type.

Referenced by GetTypeId(), InstallSingleEnbDevice(), and InstallSingleUeDevice().

◆ m_phyChannel

Ptr<SimpleChannel> ns3::LteSimpleHelper::m_phyChannel
private

the physical channel

Definition at line 139 of file lte-simple-helper.h.

Referenced by DoDispose(), DoInitialize(), InstallSingleEnbDevice(), and InstallSingleUeDevice().

◆ m_ueDeviceFactory

ObjectFactory ns3::LteSimpleHelper::m_ueDeviceFactory
private

UE device factory.

Definition at line 156 of file lte-simple-helper.h.

Referenced by LteSimpleHelper(), and InstallSingleUeDevice().

◆ m_ueMac

Ptr<LteTestMac> ns3::LteSimpleHelper::m_ueMac

UE MAC.

Definition at line 146 of file lte-simple-helper.h.

Referenced by DoDispose(), and InstallSingleUeDevice().

◆ m_uePdcp

Ptr<LtePdcp> ns3::LteSimpleHelper::m_uePdcp
private

UE PDCP.

Definition at line 152 of file lte-simple-helper.h.

Referenced by InstallSingleUeDevice().

◆ m_ueRlc

Ptr<LteRlc> ns3::LteSimpleHelper::m_ueRlc
private

UE RLC.

Definition at line 153 of file lte-simple-helper.h.

Referenced by InstallSingleUeDevice().

◆ m_ueRrc

Ptr<LteTestRrc> ns3::LteSimpleHelper::m_ueRrc

UE RRC.

Definition at line 143 of file lte-simple-helper.h.

Referenced by InstallSingleUeDevice().


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