Public Member Functions | Static Public Member Functions

ns3::RandomRectanglePositionAllocator Class Reference

allocate random positions within a rectangle according to a pair of random variables. More...

#include <position-allocator.h>

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

List of all members.

Public Member Functions

void SetX (RandomVariable x)
void SetY (RandomVariable y)
virtual Vector GetNext (void) const

Static Public Member Functions

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

Detailed Description

allocate random positions within a rectangle according to a pair of random variables.


Member Function Documentation

virtual Vector ns3::RandomRectanglePositionAllocator::GetNext ( void   )  const [virtual]
Returns:
the next chosen position.

This method _must_ be implement in subclasses.

Implements ns3::PositionAllocator.

static TypeId ns3::RandomRectanglePositionAllocator::GetTypeId ( void   )  [static]

This method returns the TypeId associated to ns3::RandomRectanglePositionAllocator.

This object is accessible through the following paths with Config::Set and Config::Connect:

  • /NodeList/[i]/$ns3::MobilityModel/$ns3::RandomWaypointMobilityModel/PositionAllocator/$ns3::RandomRectanglePositionAllocator

Attributes defined for this type:

  • X: A random variable which represents the x coordinate of a position in a random rectangle.
  • Y: A random variable which represents the y coordinate of a position in a random rectangle.

No TraceSources defined for this type.

Reimplemented from ns3::PositionAllocator.


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