ns-3
ns3::RandomBoxPositionAllocator Class Reference

Allocate random positions within a 3D box according to a set of three random variables. More...

#include <position-allocator.h>

Inheritance diagram for ns3::RandomBoxPositionAllocator:
Collaboration diagram for ns3::RandomBoxPositionAllocator:

List of all members.

Public Member Functions

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

Static Public Member Functions

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

Detailed Description

Allocate random positions within a 3D box according to a set of three random variables.


Member Function Documentation

Vector ns3::RandomBoxPositionAllocator::GetNext ( void  ) const
virtual
Returns:
the next chosen position.

This method must be implement in subclasses.

Implements ns3::PositionAllocator.

References ns3::RandomVariable::GetValue().

TypeId ns3::RandomBoxPositionAllocator::GetTypeId ( void  )
static

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

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

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

Attributes defined for this type:

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

No TraceSources defined for this type.

Reimplemented from ns3::PositionAllocator.

References ns3::TypeId::SetParent().


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