#include <position-allocator.h>
Public Types | |
enum | LayoutType { ROW_FIRST, COLUMN_FIRST } |
Public Member Functions | |
void | SetMinX (double xMin) |
void | SetMinY (double yMin) |
void | SetDeltaX (double deltaX) |
void | SetDeltaY (double deltaY) |
void | SetN (uint32_t n) |
void | SetLayoutType (enum LayoutType layoutType) |
double | GetMinX (void) const |
double | GetMinY (void) const |
double | GetDeltaX (void) const |
double | GetDeltaY (void) const |
uint32_t | GetN (void) const |
enum LayoutType | GetLayoutType (void) const |
virtual Vector | GetNext (void) const |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
This method returns the TypeId associated to ns3::GridPositionAllocator. |
Determine whether positions are allocated row first or column first.
double ns3::GridPositionAllocator::GetDeltaX | ( | void | ) | const |
double ns3::GridPositionAllocator::GetDeltaY | ( | void | ) | const |
enum LayoutType ns3::GridPositionAllocator::GetLayoutType | ( | void | ) | const |
double ns3::GridPositionAllocator::GetMinX | ( | void | ) | const |
double ns3::GridPositionAllocator::GetMinY | ( | void | ) | const |
uint32_t ns3::GridPositionAllocator::GetN | ( | void | ) | const |
virtual Vector ns3::GridPositionAllocator::GetNext | ( | void | ) | const [virtual] |
Implements ns3::PositionAllocator.
static TypeId ns3::GridPositionAllocator::GetTypeId | ( | void | ) | [static] |
This method returns the TypeId associated to ns3::GridPositionAllocator.
This object is accessible through the following paths with Config::Set and Config::Connect:
Reimplemented from ns3::PositionAllocator.
void ns3::GridPositionAllocator::SetDeltaX | ( | double | deltaX | ) |
deltaX | the x interval between two x-consecutive positions. |
void ns3::GridPositionAllocator::SetDeltaY | ( | double | deltaY | ) |
deltaY | the y interval between two y-consecutive positions. |
void ns3::GridPositionAllocator::SetLayoutType | ( | enum LayoutType | layoutType | ) |
layoutType | the type of layout to use (row first or column first). |
void ns3::GridPositionAllocator::SetMinX | ( | double | xMin | ) |
xMin | the x coordinate where layout will start. |
void ns3::GridPositionAllocator::SetMinY | ( | double | yMin | ) |
yMin | the y coordinate where layout will start |
void ns3::GridPositionAllocator::SetN | ( | uint32_t | n | ) |
n | the number of positions allocated on each row (or each column) before switching to the next column (or row). |