ns3::PositionAllocator Class Reference

allocate a set of positions. The allocation strategy is implemented in subclasses. More...

#include <position-allocator.h>

Inheritance diagram for ns3::PositionAllocator:

Inheritance graph
[legend]
Collaboration diagram for ns3::PositionAllocator:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual Vector GetNext (void) const =0

Static Public Member Functions

static TypeId GetTypeId (void)
 This method returns the TypeId associated to ns3::PositionAllocator.


Detailed Description

allocate a set of positions. The allocation strategy is implemented in subclasses.

This is a pure abstract base class.


Member Function Documentation

virtual Vector ns3::PositionAllocator::GetNext ( void   )  const [pure virtual]

Returns:
the next chosen position.
This method _must_ be implement in subclasses.

Implemented in ns3::ListPositionAllocator, ns3::GridPositionAllocator, ns3::RandomRectanglePositionAllocator, and ns3::RandomDiscPositionAllocator.

static 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:

  • /NodeList/[i]/$ns3::MobilityModel/$ns3::RandomWaypointMobilityModel/PositionAllocator
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.


The documentation for this class was generated from the following files:

Generated on Fri Apr 9 15:01:10 2010 for NS-3 by  doxygen 1.5.8