ns-3
|
#include <building-position-allocator.h>
Public Member Functions | |
SameRoomPositionAllocator (NodeContainer c) | |
virtual Vector | GetNext (void) const |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
This method returns the TypeId associated to ns3::SameRoomPositionAllocator. |
Walks a given NodeContainer sequentially, and for each node allocate a new position randomly in the same room of that node
|
virtual |
This method must be implement in subclasses.
Implements ns3::PositionAllocator.
References ns3::NodeContainer::Begin(), ns3::NodeContainer::End(), ns3::BuildingsMobilityModel::GetBuilding(), ns3::BuildingsMobilityModel::GetFloorNumber(), ns3::Building::GetId(), ns3::Object::GetObject(), ns3::BuildingsMobilityModel::GetRoomNumberX(), ns3::BuildingsMobilityModel::GetRoomNumberY(), NS_ASSERT_MSG, NS_LOG_FUNCTION, and NS_LOG_LOGIC.
|
static |
This method returns the TypeId associated to ns3::SameRoomPositionAllocator.
This object is accessible through the following paths with Config::Set and Config::Connect:
No Attributes defined for this type.
No TraceSources defined for this type.
Reimplemented from ns3::PositionAllocator.
References ns3::TypeId::SetParent().