#include <position-allocator.h>


Public Member Functions | |
| void | SetRho (double rho) |
| void | SetX (double x) |
| void | SetY (double y) |
| virtual Vector | GetNext (void) const |
Static Public Member Functions | |
| static TypeId | GetTypeId (void) |
| This method returns the TypeId associated to ns3::UniformDiscPositionAllocator. | |
UniformDiscPositionAllocator allocates the positions randomly within a disc
lying on the plane
and having center at coordinates
and radius
. The random positions are chosen such that, for any subset
, the expected value of the fraction of points which fall into
corresponds to
, i.e., to the ratio of the area of the subset to the area of the whole disc.
| virtual Vector ns3::UniformDiscPositionAllocator::GetNext | ( | void | ) | const [virtual] |
This method _must_ be implement in subclasses.
Implements ns3::PositionAllocator.
| static TypeId ns3::UniformDiscPositionAllocator::GetTypeId | ( | void | ) | [static] |
This method returns the TypeId associated to ns3::UniformDiscPositionAllocator.
This object is accessible through the following paths with Config::Set and Config::Connect:
Attributes defined for this type:
No TraceSources defined for this type.
Reimplemented from ns3::PositionAllocator.
| void ns3::UniformDiscPositionAllocator::SetRho | ( | double | rho | ) |
| rho | the value of the radius of the disc |
| void ns3::UniformDiscPositionAllocator::SetX | ( | double | x | ) |
| x | the X coordinate of the center of the disc |
| void ns3::UniformDiscPositionAllocator::SetY | ( | double | y | ) |
| y | the Y coordinate of the center of the disc |
1.7.1