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"
Public Member Functions | |
LteSimpleHelper (void) | |
virtual | ~LteSimpleHelper (void) |
virtual void | DoDispose (void) |
Destructor implementation. More... | |
void | EnableDlPdcpTraces (void) |
Enable trace sinks for DL PDCP layer. More... | |
void | EnableDlRlcTraces (void) |
Enable trace sinks for DL RLC layer. More... | |
void | EnableLogComponents (void) |
Enables logging for all components of the LENA architecture. More... | |
void | EnablePdcpTraces (void) |
Enable trace sinks for PDCP layer. More... | |
void | EnableRlcTraces (void) |
Enable trace sinks for RLC layer. More... | |
void | EnableTraces (void) |
Enables trace sinks for MAC, RLC and PDCP. More... | |
void | EnableUlPdcpTraces (void) |
Enable trace sinks for UL PDCP layer. More... | |
void | EnableUlRlcTraces (void) |
Enable trace sinks for UL RLC layer. More... | |
NetDeviceContainer | InstallEnbDevice (NodeContainer c) |
create a set of eNB devices More... | |
NetDeviceContainer | InstallUeDevice (NodeContainer c) |
create a set of UE devices More... | |
Public Member Functions inherited from ns3::Object | |
Object () | |
Constructor. More... | |
virtual | ~Object () |
Destructor. More... | |
void | AggregateObject (Ptr< Object > other) |
Aggregate two Objects together. More... | |
void | Dispose (void) |
Dispose of this Object. More... | |
AggregateIterator | GetAggregateIterator (void) const |
Get an iterator to the Objects aggregated to this one. More... | |
virtual TypeId | GetInstanceTypeId (void) const |
Get the most derived TypeId for this Object. More... | |
template<typename T > | |
Ptr< T > | GetObject (void) const |
Get a pointer to the requested aggregated Object. More... | |
template<typename T > | |
Ptr< T > | GetObject (TypeId tid) const |
Get a pointer to the requested aggregated Object by TypeId. More... | |
void | Initialize (void) |
Invoke DoInitialize on all Objects aggregated to this one. More... | |
bool | IsInitialized (void) 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) | |
Copy constructor. More... | |
uint32_t | GetReferenceCount (void) const |
Get the reference count of the object. More... | |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
Assignment operator. More... | |
void | Ref (void) const |
Increment the reference count. More... | |
void | Unref (void) 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 erros. 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 (void) |
Get the type ID. More... | |
Static Public Member Functions inherited from ns3::Object | |
static TypeId | GetTypeId (void) |
Register this type. More... | |
Static Public Member Functions inherited from ns3::ObjectBase | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
Public Attributes | |
Ptr< LteTestMac > | m_enbMac |
ENB MAC. More... | |
Ptr< LteTestRrc > | m_enbRrc |
ENB RRC. More... | |
Ptr< LteTestMac > | m_ueMac |
UE MAC. More... | |
Ptr< LteTestRrc > | m_ueRrc |
UE RRC. More... | |
Protected Member Functions | |
virtual void | DoInitialize (void) |
Initialize() implementation. More... | |
Protected Member Functions inherited from ns3::Object | |
Object (const Object &o) | |
Copy an Object. More... | |
virtual void | NotifyNewAggregate (void) |
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 (void) |
Notifier called once the ObjectBase is fully constructed. More... | |
Private Types | |
enum | LteRlcEntityType_t { RLC_UM = 1, RLC_AM = 2 } |
LteRlcEntityType_t enumeration. More... | |
Private Member Functions | |
Ptr< NetDevice > | InstallSingleEnbDevice (Ptr< Node > n) |
Install single ENB device. More... | |
Ptr< NetDevice > | InstallSingleUeDevice (Ptr< Node > n) |
Install single UE device. More... | |
Private Attributes | |
ObjectFactory | m_enbDeviceFactory |
ENB device factory. More... | |
Ptr< LtePdcp > | m_enbPdcp |
ENB PDCP. More... | |
Ptr< LteRlc > | m_enbRlc |
ENB RLC. More... | |
enum ns3::LteSimpleHelper::LteRlcEntityType_t | m_lteRlcEntityType |
RLC entity type. More... | |
Ptr< SimpleChannel > | m_phyChannel |
the physical channel More... | |
ObjectFactory | m_ueDeviceFactory |
UE device factory. More... | |
Ptr< LtePdcp > | m_uePdcp |
UE PDCP. More... | |
Ptr< LteRlc > | m_ueRlc |
UE RLC. More... | |
Additional Inherited Members | |
Related Functions inherited from ns3::ObjectBase | |
static TypeId | GetObjectIid (void) |
Ensure the TypeId for ObjectBase gets fully configured to anchor the inheritance tree properly. More... | |
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 48 of file lte-simple-helper.h.
|
private |
LteRlcEntityType_t enumeration.
Enumerator | |
---|---|
RLC_UM | |
RLC_AM |
Definition at line 166 of file lte-simple-helper.h.
ns3::LteSimpleHelper::LteSimpleHelper | ( | void | ) |
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().
|
virtual |
Definition at line 56 of file lte-simple-helper.cc.
References NS_LOG_FUNCTION.
|
virtual |
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 79 of file lte-simple-helper.cc.
References ns3::Object::Dispose(), ns3::Object::DoDispose(), m_enbMac, m_phyChannel, m_ueMac, and NS_LOG_FUNCTION.
|
protectedvirtual |
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.
void ns3::LteSimpleHelper::EnableDlPdcpTraces | ( | void | ) |
Enable trace sinks for DL PDCP layer.
Definition at line 359 of file lte-simple-helper.cc.
References NS_LOG_FUNCTION_NOARGS.
Referenced by EnablePdcpTraces().
void ns3::LteSimpleHelper::EnableDlRlcTraces | ( | void | ) |
Enable trace sinks for DL RLC layer.
Definition at line 289 of file lte-simple-helper.cc.
References NS_LOG_FUNCTION_NOARGS.
Referenced by EnableRlcTraces().
void ns3::LteSimpleHelper::EnableLogComponents | ( | void | ) |
Enables logging for all components of the LENA architecture.
Definition at line 217 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().
void ns3::LteSimpleHelper::EnablePdcpTraces | ( | void | ) |
Enable trace sinks for PDCP layer.
Definition at line 352 of file lte-simple-helper.cc.
References EnableDlPdcpTraces(), and EnableUlPdcpTraces().
Referenced by EnableTraces().
void ns3::LteSimpleHelper::EnableRlcTraces | ( | void | ) |
Enable trace sinks for RLC layer.
Definition at line 242 of file lte-simple-helper.cc.
References EnableDlRlcTraces(), and EnableUlRlcTraces().
Referenced by EnableTraces().
void ns3::LteSimpleHelper::EnableTraces | ( | void | ) |
Enables trace sinks for MAC, RLC and PDCP.
Definition at line 234 of file lte-simple-helper.cc.
References EnablePdcpTraces(), and EnableRlcTraces().
void ns3::LteSimpleHelper::EnableUlPdcpTraces | ( | void | ) |
Enable trace sinks for UL PDCP layer.
Definition at line 370 of file lte-simple-helper.cc.
References NS_LOG_FUNCTION_NOARGS.
Referenced by EnablePdcpTraces().
void ns3::LteSimpleHelper::EnableUlRlcTraces | ( | void | ) |
Enable trace sinks for UL RLC layer.
Definition at line 340 of file lte-simple-helper.cc.
References NS_LOG_FUNCTION_NOARGS.
Referenced by EnableRlcTraces().
|
static |
Get the type ID.
Definition at line 61 of file lte-simple-helper.cc.
References m_lteRlcEntityType, ns3::MakeEnumAccessor(), ns3::MakeEnumChecker(), RLC_AM, RLC_UM, and ns3::TypeId::SetParent().
NetDeviceContainer ns3::LteSimpleHelper::InstallEnbDevice | ( | NodeContainer | c | ) |
create a set of eNB devices
c | the node container where the devices are to be installed |
Definition at line 94 of file lte-simple-helper.cc.
References ns3::NodeContainer::Begin(), first::devices, ns3::NodeContainer::End(), ns3::Object::Initialize(), InstallSingleEnbDevice(), and NS_LOG_FUNCTION.
Referenced by LteRlcUmE2eTestCase::DoRun(), and LteRlcAmE2eTestCase::DoRun().
Install single ENB device.
n | the node |
Definition at line 124 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(), sample-rng-plot::n, 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().
Install single UE device.
n | the node |
Definition at line 171 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(), sample-rng-plot::n, 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().
NetDeviceContainer ns3::LteSimpleHelper::InstallUeDevice | ( | NodeContainer | c | ) |
create a set of UE devices
c | the node container where the devices are to be installed |
Definition at line 109 of file lte-simple-helper.cc.
References ns3::NodeContainer::Begin(), first::devices, ns3::NodeContainer::End(), InstallSingleUeDevice(), and NS_LOG_FUNCTION.
Referenced by LteRlcUmE2eTestCase::DoRun(), and LteRlcAmE2eTestCase::DoRun().
|
private |
ENB device factory.
Definition at line 162 of file lte-simple-helper.h.
Referenced by InstallSingleEnbDevice(), and LteSimpleHelper().
Ptr<LteTestMac> ns3::LteSimpleHelper::m_enbMac |
ENB MAC.
Definition at line 151 of file lte-simple-helper.h.
Referenced by DoDispose(), LteRlcUmE2eTestCase::DoRun(), LteRlcAmE2eTestCase::DoRun(), and InstallSingleEnbDevice().
ENB PDCP.
Definition at line 156 of file lte-simple-helper.h.
Referenced by InstallSingleEnbDevice().
ENB RLC.
Definition at line 157 of file lte-simple-helper.h.
Referenced by InstallSingleEnbDevice().
Ptr<LteTestRrc> ns3::LteSimpleHelper::m_enbRrc |
ENB RRC.
Definition at line 148 of file lte-simple-helper.h.
Referenced by LteRlcUmE2eTestCase::DoRun(), LteRlcAmE2eTestCase::DoRun(), and InstallSingleEnbDevice().
|
private |
RLC entity type.
Referenced by GetTypeId(), InstallSingleEnbDevice(), and InstallSingleUeDevice().
|
private |
the physical channel
Definition at line 144 of file lte-simple-helper.h.
Referenced by DoDispose(), DoInitialize(), InstallSingleEnbDevice(), and InstallSingleUeDevice().
|
private |
UE device factory.
Definition at line 163 of file lte-simple-helper.h.
Referenced by InstallSingleUeDevice(), and LteSimpleHelper().
Ptr<LteTestMac> ns3::LteSimpleHelper::m_ueMac |
UE MAC.
Definition at line 152 of file lte-simple-helper.h.
Referenced by DoDispose(), LteRlcUmE2eTestCase::DoRun(), LteRlcAmE2eTestCase::DoRun(), and InstallSingleUeDevice().
Ptr<LteTestRrc> ns3::LteSimpleHelper::m_ueRrc |
UE RRC.
Definition at line 149 of file lte-simple-helper.h.
Referenced by LteRlcUmE2eTestCase::DoRun(), LteRlcAmE2eTestCase::DoRun(), and InstallSingleUeDevice().