ns3::RandomDiscPositionAllocator Class Reference
allocate random positions within a disc according to a pair of random variables.
More...
#include <position-allocator.h>
List of all members.
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:
- src/mobility/position-allocator.h
- doc/introspected-doxygen.h