ns-3
|
#include <building-position-allocator.h>
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. |
Allocate each position by randomly chosing a building from the list of all buildings, and then randomly chosing a position inside the building.
|
virtual |
This method must be implement in subclasses.
Implements ns3::PositionAllocator.
References ns3::BuildingList::Begin(), ns3::BuildingList::End(), ns3::ObjectBase::GetAttribute(), ns3::BuildingList::GetBuilding(), ns3::UniformVariable::GetInteger(), ns3::BuildingList::GetNBuildings(), and NS_ASSERT_MSG.
|
static |
This method returns the TypeId associated to ns3::RandomBuildingPositionAllocator.
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.
References ns3::TypeId::SetParent().