allocate a set of positions. The allocation strategy is implemented in subclasses. More...
#include <position-allocator.h>
Public Member Functions | |
PositionAllocator () | |
virtual | ~PositionAllocator () |
virtual Vector | GetNext (void) const =0 |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
This method returns the TypeId associated to ns3::PositionAllocator. |
allocate a set of positions. The allocation strategy is implemented in subclasses.
This is a pure abstract base class.
Definition at line 35 of file position-allocator.h.
ns3::PositionAllocator::PositionAllocator | ( | ) |
Definition at line 42 of file position-allocator.cc.
ns3::PositionAllocator::~PositionAllocator | ( | ) | [virtual] |
Definition at line 46 of file position-allocator.cc.
virtual Vector ns3::PositionAllocator::GetNext | ( | void | ) | const [pure virtual] |
This method _must_ be implement in subclasses.
Implemented in ns3::ListPositionAllocator, ns3::GridPositionAllocator, ns3::RandomRectanglePositionAllocator, and ns3::RandomDiscPositionAllocator.
TypeId ns3::PositionAllocator::GetTypeId | ( | void | ) | [static] |
This method returns the TypeId associated to ns3::PositionAllocator.
This object is accessible through the following paths with Config::Set and Config::Connect:
No Attributes defined for this type.
No TraceSources defined for this type.
Reimplemented from ns3::Object.
Reimplemented in ns3::ListPositionAllocator, ns3::GridPositionAllocator, ns3::RandomRectanglePositionAllocator, and ns3::RandomDiscPositionAllocator.
Definition at line 35 of file position-allocator.cc.
References ns3::TypeId::SetParent().