Public Member Functions | |
FemtocellBlockAllocator (Box area, uint32_t nApartmentsX, uint32_t nFloors) | |
void | Create (uint32_t n) |
void | Create () |
Private Member Functions | |
bool | OverlapsWithAnyPrevious (Box) |
Private Attributes | |
Box | m_area |
uint32_t | m_nApartmentsX |
uint32_t | m_nFloors |
std::list< Box > | m_previousBlocks |
Ptr< UniformRandomVariable > | m_xMinVar |
double | m_xSize |
Ptr< UniformRandomVariable > | m_yMinVar |
double | m_ySize |
Definition at line 52 of file lena-dual-stripe.cc.
FemtocellBlockAllocator::FemtocellBlockAllocator | ( | Box | area, |
uint32_t | nApartmentsX, | ||
uint32_t | nFloors | ||
) |
Definition at line 72 of file lena-dual-stripe.cc.
References m_xMinVar, m_xSize, m_yMinVar, m_ySize, ns3::ObjectBase::SetAttribute(), ns3::Box::xMax, ns3::Box::xMin, ns3::Box::yMax, and ns3::Box::yMin.
void FemtocellBlockAllocator::Create | ( | uint32_t | n | ) |
Definition at line 88 of file lena-dual-stripe.cc.
References Create().
Referenced by main().
void FemtocellBlockAllocator::Create | ( | void | ) |
Definition at line 97 of file lena-dual-stripe.cc.
References ns3::GridBuildingAllocator::Create(), ns3::UniformRandomVariable::GetValue(), m_nApartmentsX, m_nFloors, m_previousBlocks, m_xMinVar, m_xSize, m_yMinVar, m_ySize, NS_ASSERT_MSG, NS_LOG_LOGIC, OverlapsWithAnyPrevious(), ns3::ObjectBase::SetAttribute(), ns3::GridBuildingAllocator::SetBuildingAttribute(), ns3::Box::xMax, ns3::Box::xMin, ns3::Box::yMax, and ns3::Box::yMin.
Referenced by Create().
|
private |
Definition at line 131 of file lena-dual-stripe.cc.
References AreOverlapping(), and m_previousBlocks.
Referenced by Create().
|
private |
Definition at line 61 of file lena-dual-stripe.cc.
|
private |
Definition at line 62 of file lena-dual-stripe.cc.
Referenced by Create().
|
private |
Definition at line 63 of file lena-dual-stripe.cc.
Referenced by Create().
Definition at line 64 of file lena-dual-stripe.cc.
Referenced by Create(), and OverlapsWithAnyPrevious().
|
private |
Definition at line 67 of file lena-dual-stripe.cc.
Referenced by Create(), and FemtocellBlockAllocator().
|
private |
Definition at line 65 of file lena-dual-stripe.cc.
Referenced by Create(), and FemtocellBlockAllocator().
|
private |
Definition at line 68 of file lena-dual-stripe.cc.
Referenced by Create(), and FemtocellBlockAllocator().
|
private |
Definition at line 66 of file lena-dual-stripe.cc.
Referenced by Create(), and FemtocellBlockAllocator().