Update building user manuel (usage of rooms)
authorMarco Miozzo <marco.miozzo@cttc.es>
Wed, 14 Sep 2011 11:04:21 +0200
changeset 8232 b529e6378d43
parent 8231 7cee600cd204
child 8233 0b9d402b3b1d
Update building user manuel (usage of rooms)
src/lte/doc/source/lte-building-user.rst
--- a/src/lte/doc/source/lte-building-user.rst	Wed Sep 14 11:03:56 2011 +0200
+++ b/src/lte/doc/source/lte-building-user.rst	Wed Sep 14 11:04:21 2011 +0200
@@ -51,18 +51,18 @@
     #include <ns3/buildings-propagation-loss-model.h>
     #include <ns3/building.h>
 
-#. Propagation model selection
+#. Propagation model selection::
 
     Ptr<LenaHelper> lena = CreateObject<LenaHelper> ();
   
     lena->SetAttribute ("PropagationModel", StringValue ("ns3::BuildingsPropagationLossModel"));
 
-#. Mobility model selection
+#. Mobility model selection::
 
     MobilityHelper mobility;
     mobility.SetMobilityModel ("ns3::BuildingsMobilityModel");
 
-#. Node creation and positioning
+#. Node creation and positioning::
 
     ueNodes.Create (1);
     mobility.Install (ueNodes);
@@ -74,7 +74,7 @@
     double z_axis = 0.0;
     mm->SetPosition (Vector (x_axis, y_axis, z_axis));
 
-#. Building creation
+#. Building creation::
 
     double x_min = 0.0;
     double x_max = 10.0;
@@ -91,12 +91,15 @@
 
    This will instantiate a residential building with base of 10 x 20 meters and height of 10 meters with concrete with windows as external walls, three floors and a grid of rooms of 3 x 2.
 
-#. Building and nodes interactions
+#. Building and nodes interactions::
 
     mm->SetIndoor (building);
     mm->SetFloorNumber (2);
+    mm->SetRoomNumberX (1);
+    mm->SetRoomNumberY (1);
 
-   This informs node's mobility model the fact that the node is inside the building at the second floor. It has to be noted that the simulator does not check the consistence between the node's position and the bulding site, which is user's responsibility.
+   This informs node's mobility model the fact that the node is inside the building at the second floor in the corner room of the 3 x 2 grid. 
+   It has to be noted that the simulator does not check the consistence between the node's position and the building site, which is user's responsibility.