ns-3
ns3::RandomBuildingPositionAllocator Class Reference

#include <building-position-allocator.h>

Inheritance diagram for ns3::RandomBuildingPositionAllocator:
Collaboration diagram for ns3::RandomBuildingPositionAllocator:

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::RandomBuildingPositionAllocator.

Detailed Description

Allocate each position by randomly chosing a building from the list of all buildings, and then randomly chosing a position inside the building.


Member Function Documentation

Vector ns3::RandomBuildingPositionAllocator::GetNext ( void  ) const
virtual
TypeId ns3::RandomBuildingPositionAllocator::GetTypeId ( void  )
static

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

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

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

Attributes defined for this type:

  • WithReplacement: If true, the building will be randomly selected with replacement. If false, no replacement will occur, until the list of buildings to select becomes empty, at which point it will be filled again with the list of all buildings.
    • Set with class: BooleanValue
    • Underlying type: bool
    • Initial value: false
    • Flags: construct write read

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: