Creation and configuration of LTE entities. More...
#include <lte-simple-helper.h>
Public Member Functions | |
LteSimpleHelper (void) | |
virtual | ~LteSimpleHelper (void) |
virtual void | DoDispose (void) |
This method is called by Object::Dispose or by the object's destructor, whichever comes first. 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 () | |
virtual | ~Object () |
void | AggregateObject (Ptr< Object > other) |
void | Dispose (void) |
Run the DoDispose methods of this object and all the objects aggregated to it. More... | |
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 | Initialize (void) |
This method calls the virtual DoInitialize method on all the objects aggregated to this object. More... | |
Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter > | |
SimpleRefCount () | |
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. 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 |
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) |
Static Public Member Functions inherited from ns3::Object | |
static TypeId | GetTypeId (void) |
Register this type. More... | |
Static Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter > | |
static void | Cleanup (void) |
Noop. More... | |
Static Public Member Functions inherited from ns3::ObjectBase | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
Public Attributes | |
Ptr< LteTestMac > | m_enbMac |
Ptr< LteTestRrc > | m_enbRrc |
Ptr< LteTestMac > | m_ueMac |
Ptr< LteTestRrc > | m_ueRrc |
Protected Member Functions | |
virtual void | DoInitialize (void) |
This method is called only once by Object::Initialize. More... | |
Protected Member Functions inherited from ns3::Object | |
Object (const Object &o) | |
virtual void | NotifyNewAggregate (void) |
This method is invoked whenever two sets of objects are aggregated together. More... | |
Protected Member Functions inherited from ns3::ObjectBase | |
void | ConstructSelf (const AttributeConstructionList &attributes) |
virtual void | NotifyConstructionCompleted (void) |
This method is invoked once all member attributes have been initialized. More... | |
Private Types | |
enum | LteRlcEntityType_t { RLC_UM = 1, RLC_AM = 2 } |
Private Member Functions | |
Ptr< NetDevice > | InstallSingleEnbDevice (Ptr< Node > n) |
Ptr< NetDevice > | InstallSingleUeDevice (Ptr< Node > n) |
Private Attributes | |
ObjectFactory | m_enbDeviceFactory |
Ptr< LtePdcp > | m_enbPdcp |
Ptr< LteRlc > | m_enbRlc |
enum ns3::LteSimpleHelper::LteRlcEntityType_t | m_lteRlcEntityType |
Ptr< SimpleChannel > | m_phyChannel |
ObjectFactory | m_ueDeviceFactory |
Ptr< LtePdcp > | m_uePdcp |
Ptr< LteRlc > | m_ueRlc |
Creation and configuration of LTE entities.
Definition at line 43 of file lte-simple-helper.h.
|
private |
Enumerator | |
---|---|
RLC_UM | |
RLC_AM |
Definition at line 145 of file lte-simple-helper.h.
ns3::LteSimpleHelper::LteSimpleHelper | ( | void | ) |
Definition at line 41 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 58 of file lte-simple-helper.cc.
References NS_LOG_FUNCTION.
|
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 81 of file lte-simple-helper.cc.
References ns3::Object::DoDispose(), m_enbMac, m_phyChannel, m_ueMac, and NS_LOG_FUNCTION.
|
protectedvirtual |
This method is called only once by Object::Initialize.
If the user calls Object::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 49 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 321 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 270 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 314 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 332 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 302 of file lte-simple-helper.cc.
References NS_LOG_FUNCTION_NOARGS.
Referenced by EnableRlcTraces().
|
static |
Definition at line 63 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 96 of file lte-simple-helper.cc.
References ns3::NetDeviceContainer::Add(), ns3::NodeContainer::Begin(), first::devices, ns3::NodeContainer::End(), ns3::Object::Initialize(), InstallSingleEnbDevice(), and NS_LOG_FUNCTION.
Definition at line 126 of file lte-simple-helper.cc.
References ns3::Node::AddDevice(), ns3::Mac48Address::Allocate(), ns3::ObjectFactory::Create(), m_enbDeviceFactory, m_enbMac, m_enbPdcp, m_enbRlc, m_enbRrc, m_lteRlcEntityType, m_phyChannel, ns3::MakeCallback(), NS_LOG_FUNCTION, ns3::LteTestMac::Receive(), and RLC_UM.
Referenced by InstallEnbDevice().
Definition at line 171 of file lte-simple-helper.cc.
References ns3::Node::AddDevice(), ns3::Mac48Address::Allocate(), ns3::ObjectFactory::Create(), m_lteRlcEntityType, m_phyChannel, m_ueDeviceFactory, m_ueMac, m_uePdcp, m_ueRlc, m_ueRrc, ns3::MakeCallback(), NS_LOG_FUNCTION, ns3::LteTestMac::Receive(), and RLC_UM.
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 111 of file lte-simple-helper.cc.
References ns3::NetDeviceContainer::Add(), ns3::NodeContainer::Begin(), first::devices, ns3::NodeContainer::End(), InstallSingleUeDevice(), and NS_LOG_FUNCTION.
|
private |
Definition at line 142 of file lte-simple-helper.h.
Referenced by InstallSingleEnbDevice(), and LteSimpleHelper().
Ptr<LteTestMac> ns3::LteSimpleHelper::m_enbMac |
Definition at line 131 of file lte-simple-helper.h.
Referenced by DoDispose(), and InstallSingleEnbDevice().
Definition at line 136 of file lte-simple-helper.h.
Referenced by InstallSingleEnbDevice().
Definition at line 137 of file lte-simple-helper.h.
Referenced by InstallSingleEnbDevice().
Ptr<LteTestRrc> ns3::LteSimpleHelper::m_enbRrc |
Definition at line 128 of file lte-simple-helper.h.
Referenced by InstallSingleEnbDevice().
|
private |
Referenced by GetTypeId(), InstallSingleEnbDevice(), and InstallSingleUeDevice().
|
private |
Definition at line 124 of file lte-simple-helper.h.
Referenced by DoDispose(), DoInitialize(), InstallSingleEnbDevice(), and InstallSingleUeDevice().
|
private |
Definition at line 143 of file lte-simple-helper.h.
Referenced by InstallSingleUeDevice(), and LteSimpleHelper().
Ptr<LteTestMac> ns3::LteSimpleHelper::m_ueMac |
Definition at line 132 of file lte-simple-helper.h.
Referenced by DoDispose(), and InstallSingleUeDevice().
Definition at line 139 of file lte-simple-helper.h.
Referenced by InstallSingleUeDevice().
Definition at line 140 of file lte-simple-helper.h.
Referenced by InstallSingleUeDevice().
Ptr<LteTestRrc> ns3::LteSimpleHelper::m_ueRrc |
Definition at line 129 of file lte-simple-helper.h.
Referenced by InstallSingleUeDevice().