#include <buildings-helper.h>
Static Public Member Functions | |
static void | Install (Ptr< Node > node) |
Install the MobilityBuildingInfo to a node. More... | |
static void | Install (NodeContainer c) |
Install the MobilityBuildingInfo to the set of nodes in a NodeContainer. More... | |
static void | MakeConsistent (Ptr< MobilityModel > bmm) |
Make the given mobility model consistent, by determining whether its position falls inside any of the building in BuildingList, and updating accordingly the BuildingInfo aggregated with the MobilityModel. More... | |
static void | MakeMobilityModelConsistent () |
This method goes through the whole NodeList and, for each node in the list, calls BuildingsHelper::MakeConsistent() passing to it the MobilityModel of that node. More... | |
Definition at line 36 of file buildings-helper.h.
Install the MobilityBuildingInfo to a node.
node | the mobility model of the node to be updated |
Definition at line 48 of file buildings-helper.cc.
References ns3::Object::AggregateObject(), ns3::Node::GetId(), ns3::Object::GetObject(), and NS_ABORT_MSG_UNLESS.
Referenced by ns3::LenaMimoTestCase::DoRun(), ns3::LenaHarqTestCase::DoRun(), ns3::LenaDataPhyErrorModelTestCase::DoRun(), ns3::LtePathlossModelSystemTestCase::DoRun(), ns3::LenaDlCtrlPhyErrorModelTestCase::DoRun(), ns3::RandomRoomPositionAllocatorTestCase::DoRun(), ns3::SameRoomPositionAllocatorTestCase::DoRun(), Install(), and main().
|
static |
Install the MobilityBuildingInfo to the set of nodes in a NodeContainer.
c | the NodeContainer including the nodes to be updated |
Definition at line 38 of file buildings-helper.cc.
References ns3::NodeContainer::Begin(), ns3::NodeContainer::End(), and Install().
|
static |
Make the given mobility model consistent, by determining whether its position falls inside any of the building in BuildingList, and updating accordingly the BuildingInfo aggregated with the MobilityModel.
bmm | the mobility model to be made consistent |
Definition at line 80 of file buildings-helper.cc.
References ns3::BuildingList::Begin(), ns3::BuildingList::End(), ns3::Object::GetObject(), ns3::MobilityModel::GetPosition(), NS_ABORT_MSG_UNLESS, and NS_LOG_LOGIC.
Referenced by ns3::BuildingsPathlossTestCase::CreateMobilityModel(), ns3::BuildingsShadowingTestCase::CreateMobilityModel(), main(), MakeMobilityModelConsistent(), ns3::RadioEnvironmentMapHelper::RunOneIteration(), and ns3::SameRoomPositionAllocator::SameRoomPositionAllocator().
|
static |
This method goes through the whole NodeList and, for each node in the list, calls BuildingsHelper::MakeConsistent() passing to it the MobilityModel of that node.
Definition at line 63 of file buildings-helper.cc.
References ns3::NodeList::Begin(), ns3::NodeList::End(), ns3::Object::GetObject(), MakeConsistent(), NS_ABORT_MSG_UNLESS, and NS_LOG_FUNCTION_NOARGS.
Referenced by ns3::RandomRoomPositionAllocatorTestCase::DoRun(), ns3::BuildingsHelperOneTestCase::DoRun(), ns3::SameRoomPositionAllocatorTestCase::DoRun(), and main().