This helper class allows to easily create a topology with eNBs grouped in three-sector sites layed out on an hexagonal grid. More...
#include <lte-hex-grid-enb-topology-helper.h>
Public Member Functions | |
LteHexGridEnbTopologyHelper (void) | |
virtual | ~LteHexGridEnbTopologyHelper (void) |
virtual void | DoDispose (void) |
This method is called by Object::Dispose or by the object's destructor, whichever comes first. More... | |
void | SetLteHelper (Ptr< LteHelper > h) |
Set the LteHelper to be used to actually create the EnbNetDevices. More... | |
NetDeviceContainer | SetPositionAndInstallEnbDevice (NodeContainer c) |
Position the nodes on a hex grid and install the corresponding EnbNetDevices with antenna boresight configured properly. More... | |
![]() | |
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... | |
![]() | |
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... | |
![]() | |
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 TypeId | GetTypeId (void) |
Register this type. More... | |
![]() | |
static void | Cleanup (void) |
Noop. More... | |
![]() | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
Private Attributes | |
double | m_d |
uint32_t | m_gridWidth |
Ptr< LteHelper > | m_lteHelper |
double | m_offset |
uint32_t | m_siteHeight |
double | m_xMin |
double | m_yMin |
Additional Inherited Members | |
![]() | |
Object (const Object &o) | |
virtual void | DoInitialize (void) |
This method is called only once by Object::Initialize. More... | |
virtual void | NotifyNewAggregate (void) |
This method is invoked whenever two sets of objects are aggregated together. More... | |
![]() | |
void | ConstructSelf (const AttributeConstructionList &attributes) |
virtual void | NotifyConstructionCompleted (void) |
This method is invoked once all member attributes have been initialized. More... | |
This helper class allows to easily create a topology with eNBs grouped in three-sector sites layed out on an hexagonal grid.
Doxygen introspection did not find any typical Config paths.
The layout is done row-wise.
No TraceSources are defined for this type.
Definition at line 36 of file lte-hex-grid-enb-topology-helper.h.
ns3::LteHexGridEnbTopologyHelper::LteHexGridEnbTopologyHelper | ( | void | ) |
Definition at line 37 of file lte-hex-grid-enb-topology-helper.cc.
References NS_LOG_FUNCTION.
|
virtual |
Definition at line 42 of file lte-hex-grid-enb-topology-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 87 of file lte-hex-grid-enb-topology-helper.cc.
References ns3::Object::DoDispose(), and NS_LOG_FUNCTION.
|
static |
Definition at line 47 of file lte-hex-grid-enb-topology-helper.cc.
References m_d, m_gridWidth, m_offset, m_siteHeight, m_xMin, m_yMin, 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 95 of file lte-hex-grid-enb-topology-helper.cc.
References m_lteHelper, and NS_LOG_FUNCTION.
Referenced by main().
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 102 of file lte-hex-grid-enb-topology-helper.cc.
References ns3::NetDeviceContainer::Add(), ns3::NodeContainer::Get(), ns3::NodeContainer::GetN(), ns3::Object::GetObject(), ns3::LteHelper::InstallEnbDevice(), m_d, m_gridWidth, m_lteHelper, m_offset, m_siteHeight, m_xMin, m_yMin, NS_LOG_FUNCTION, NS_LOG_LOGIC, ns3::LteHelper::SetEnbAntennaModelAttribute(), ns3::MobilityModel::SetPosition(), and sample-rng-plot::x.
Referenced by main().
|
private |
Definition at line 74 of file lte-hex-grid-enb-topology-helper.h.
Referenced by GetTypeId(), and SetPositionAndInstallEnbDevice().
|
private |
Definition at line 77 of file lte-hex-grid-enb-topology-helper.h.
Referenced by GetTypeId(), and SetPositionAndInstallEnbDevice().
Definition at line 72 of file lte-hex-grid-enb-topology-helper.h.
Referenced by SetLteHelper(), and SetPositionAndInstallEnbDevice().
|
private |
Definition at line 73 of file lte-hex-grid-enb-topology-helper.h.
Referenced by GetTypeId(), and SetPositionAndInstallEnbDevice().
|
private |
Definition at line 78 of file lte-hex-grid-enb-topology-helper.h.
Referenced by GetTypeId(), and SetPositionAndInstallEnbDevice().
|
private |
Definition at line 75 of file lte-hex-grid-enb-topology-helper.h.
Referenced by GetTypeId(), and SetPositionAndInstallEnbDevice().
|
private |
Definition at line 76 of file lte-hex-grid-enb-topology-helper.h.
Referenced by GetTypeId(), and SetPositionAndInstallEnbDevice().