src/lte/examples/lena-dual-stripe.cc
changeset 8747 2aec19a85c73
parent 8710 2607329559dd
child 8779 4d8f6e172656
--- a/src/lte/examples/lena-dual-stripe.cc	Fri May 11 13:04:51 2012 +0200
+++ b/src/lte/examples/lena-dual-stripe.cc	Fri May 11 13:05:37 2012 +0200
@@ -222,6 +222,8 @@
   cmd.AddValue ("simTime", "Total duration of the simulation [s]", simTime);
   cmd.AddValue ("generateRem", "if true, will generate a REM and then abort the simulation;"
                 "if false, will run the simulation normally (without generating any REM)", generateRem);
+  cmd.AddValue ("printBuildingList", "if true, will save a list of buildings with their positions to file;"
+                "if false, will run the simulation normally (without generating any REM)", printBuildingList);
   cmd.AddValue ("epc", "if true, will setup the EPC to simulate an end-to-end topology;"
                 "if false, only the LTE radio access will be simulated.", epc);
   cmd.AddValue ("epcDl", "if true, will activate data flows in the downlink when EPC is being used. "
@@ -348,6 +350,7 @@
 
   // home UEs located in the same apartment in which there are the Home eNBs
   positionAlloc = CreateObject<SameRoomPositionAllocator> (homeEnbs);
+  mobility.SetPositionAllocator (positionAlloc);
   mobility.Install (homeUes);
   NetDeviceContainer homeUeDevs = lteHelper->InstallUeDevice (homeUes);
   lteHelper->AttachToClosestEnb (homeUeDevs, homeEnbDevs);