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

 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.

Detailed Description

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.


Constructor & Destructor Documentation

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.


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.

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]/$ns3MobilityModel/$ns3RandomWaypointMobilityModel/Position

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().


The documentation for this class was generated from the following files:
Generated on Thu Dec 3 14:11:55 2009 for NS-3 by  doxygen 1.6.3