Bug 3018

Summary: Indoor/outdoor status is not updated when the node moves
Product: ns-3 Reporter: Michele Polese <michele.polese>
Component: buildingsAssignee: Biljana Bojović <bbojovic>
Status: NEW ---    
Severity: normal CC: michele.polese, ns-bugs, zorazeali
Priority: P5    
Version: ns-3-dev   
Hardware: PC   
OS: Linux   
Attachments: patch
Example

Description Michele Polese 2018-11-23 12:12:31 EST
Created attachment 3226 [details]
patch

Currently, if a node moves from outside a building to inside a building (or vice versa), the state of the associated MobilityBuildingInfo object is not updated. You can try the attached example and check. 
The only way to update the MobilityBuildingInfo state is (probably) calling BuildingsHelper::MakeMobilityModelConsistent() multiple times (periodically) during the simulation, but this is not efficient and precise.
The attached patch verifies the consistency of the MobilityBuildingInfo object every time IsIndoor or IsOutdoor are called. This however has an impact (which I did not quantify) on the simulation time in case of wireless simulations with buildings.
Please let me know if my understanding of this issue is correct, and what you think of the proposed solution!
Thanks,
Michele
Comment 1 Michele Polese 2018-11-23 12:14:21 EST
Created attachment 3227 [details]
Example
Comment 2 Zoraze Ali 2019-08-26 12:03:42 EDT
Please see: https://gitlab.com/nsnam/ns-3-dev/issues/80