This helper class allows to easily create a topology with eNBs grouped in three-sector sites laid out on an hexagonal grid. More...
#include "lte-hex-grid-enb-topology-helper.h"
Public Member Functions | |
LteHexGridEnbTopologyHelper () | |
~LteHexGridEnbTopologyHelper () override | |
void | DoDispose () override |
Destructor implementation. | |
void | SetLteHelper (Ptr< LteHelper > h) |
Set the LteHelper to be used to actually create the EnbNetDevices. | |
NetDeviceContainer | SetPositionAndInstallEnbDevice (NodeContainer c) |
Position the nodes on a hex grid and install the corresponding EnbNetDevices with antenna boresight configured properly. | |
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< Object > | GetObject () 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< Object > | GetObject (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. | |
SimpleRefCount & | operator= (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, bool permissive=false) 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. | |
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 () |
Register this type. | |
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. | |
Private Attributes | |
double | m_d |
The distance [m] between nearby sites. | |
uint32_t | m_gridWidth |
The number of sites in even rows (odd rows will have one additional site) | |
Ptr< LteHelper > | m_lteHelper |
Pointer to LteHelper object. | |
double | m_offset |
The offset [m] in the position for the node of each sector with respect to the center of the three-sector site. | |
uint32_t | m_siteHeight |
The height [m] of each site. | |
double | m_xMin |
The x coordinate where the hex grid starts. | |
double | m_yMin |
The y coordinate where the hex grid starts. | |
Additional Inherited Members | |
Protected Member Functions inherited from ns3::Object | |
Object (const Object &o) | |
Copy an Object. | |
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. | |
Related Symbols inherited from ns3::ObjectBase | |
static TypeId | GetObjectIid () |
Ensure the TypeId for ObjectBase gets fully configured to anchor the inheritance tree properly. | |
This helper class allows to easily create a topology with eNBs grouped in three-sector sites laid out on an hexagonal grid.
The layout is done row-wise.
Definition at line 25 of file lte-hex-grid-enb-topology-helper.h.
ns3::LteHexGridEnbTopologyHelper::LteHexGridEnbTopologyHelper | ( | ) |
Definition at line 27 of file lte-hex-grid-enb-topology-helper.cc.
References NS_LOG_FUNCTION.
|
override |
Definition at line 32 of file lte-hex-grid-enb-topology-helper.cc.
References NS_LOG_FUNCTION.
|
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 80 of file lte-hex-grid-enb-topology-helper.cc.
References ns3::Object::DoDispose(), and NS_LOG_FUNCTION.
|
static |
Register this type.
Definition at line 38 of file lte-hex-grid-enb-topology-helper.cc.
References m_d, m_gridWidth, m_offset, m_siteHeight, m_xMin, m_yMin, ns3::MakeDoubleAccessor(), ns3::MakeDoubleChecker(), ns3::MakeUintegerAccessor(), ns3::MakeUintegerChecker(), and ns3::TypeId::SetParent().
Set the LteHelper to be used to actually create the EnbNetDevices.
h | a pointer to the EpcHelper to be used |
Definition at line 87 of file lte-hex-grid-enb-topology-helper.cc.
References m_lteHelper, and NS_LOG_FUNCTION.
NetDeviceContainer ns3::LteHexGridEnbTopologyHelper::SetPositionAndInstallEnbDevice | ( | NodeContainer | c | ) |
Position the nodes on a hex grid and install the corresponding EnbNetDevices with antenna boresight configured properly.
c | the node container where the devices are to be installed |
Definition at line 94 of file lte-hex-grid-enb-topology-helper.cc.
References ns3::NetDeviceContainer::Add(), ns3::NodeContainer::Get(), ns3::NodeContainer::GetN(), m_d, m_gridWidth, m_lteHelper, m_offset, m_siteHeight, m_xMin, m_yMin, NS_LOG_FUNCTION, and NS_LOG_LOGIC.
|
private |
The distance [m] between nearby sites.
Definition at line 77 of file lte-hex-grid-enb-topology-helper.h.
Referenced by GetTypeId(), and SetPositionAndInstallEnbDevice().
|
private |
The number of sites in even rows (odd rows will have one additional site)
Definition at line 93 of file lte-hex-grid-enb-topology-helper.h.
Referenced by GetTypeId(), and SetPositionAndInstallEnbDevice().
Pointer to LteHelper object.
Definition at line 66 of file lte-hex-grid-enb-topology-helper.h.
Referenced by SetLteHelper(), and SetPositionAndInstallEnbDevice().
|
private |
The offset [m] in the position for the node of each sector with respect to the center of the three-sector site.
Definition at line 72 of file lte-hex-grid-enb-topology-helper.h.
Referenced by GetTypeId(), and SetPositionAndInstallEnbDevice().
|
private |
The height [m] of each site.
Definition at line 98 of file lte-hex-grid-enb-topology-helper.h.
Referenced by GetTypeId(), and SetPositionAndInstallEnbDevice().
|
private |
The x coordinate where the hex grid starts.
Definition at line 82 of file lte-hex-grid-enb-topology-helper.h.
Referenced by GetTypeId(), and SetPositionAndInstallEnbDevice().
|
private |
The y coordinate where the hex grid starts.
Definition at line 87 of file lte-hex-grid-enb-topology-helper.h.
Referenced by GetTypeId(), and SetPositionAndInstallEnbDevice().