ns3::RandomDiscPositionAllocator Class Reference

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

#include <position-allocator.h>

Inheritance diagram for ns3::RandomDiscPositionAllocator:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual Vector GetNext (void) const

Static Public Member Functions

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


Detailed Description

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

Member Function Documentation

virtual Vector ns3::RandomDiscPositionAllocator::GetNext ( void   )  const [virtual]

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

Implements ns3::PositionAllocator.

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

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

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

  • /NodeList/[i]/$ns3::MobilityModel/$ns3::RandomWaypointMobilityModel/PositionAllocator/$ns3::RandomDiscPositionAllocator
Attributes defined for this type:
  • Theta: A random variable which represents the angle (gradients) of a position in a random disc.
  • Rho: A random variable which represents the radius of a position in a random disc.
  • X: The x coordinate of the center of the random position disc.
    • Set with class: ns3::DoubleValue
    • Underlying type: double -1.79769e+308:1.79769e+308
    • Initial value: 0
    • Flags: construct write read
  • Y: The y coordinate of the center of the random position disc.
    • Set with class: ns3::DoubleValue
    • Underlying type: double -1.79769e+308:1.79769e+308
    • Initial value: 0
    • Flags: construct write read
No TraceSources defined for this type.

Reimplemented from ns3::PositionAllocator.


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