fixed rem with buildings
authorNicola Baldo <nbaldo@cttc.es>
Tue, 17 Jan 2012 13:49:56 +0100
changeset 8567 00942b9ba28a
parent 8566 3a5ccdb7bec1
child 8568 fc43230a29f5
fixed rem with buildings
src/lte/examples/lena-rem-sector-antenna.cc
src/lte/helper/radio-environment-map-helper.cc
--- a/src/lte/examples/lena-rem-sector-antenna.cc	Tue Jan 17 13:49:10 2012 +0100
+++ b/src/lte/examples/lena-rem-sector-antenna.cc	Tue Jan 17 13:49:56 2012 +0100
@@ -89,7 +89,7 @@
                                0.0, roomHeight);
   building->SetBuildingType (Building::Residential);
   building->SetExtWallsType (Building::ConcreteWithWindows);
-  building->SetNFloors (0);
+  building->SetNFloors (1);
   building->SetNRoomsX (nRooms);
   building->SetNRoomsY (nRooms);
   mobility.SetMobilityModel ("ns3::BuildingsMobilityModel");
@@ -232,8 +232,8 @@
   BuildingsHelper::MakeMobilityModelConsistent ();
   Simulator::Run ();
 
-  GtkConfigStore config;
-  config.ConfigureAttributes ();
+  // GtkConfigStore config;
+  // config.ConfigureAttributes ();
 
   Simulator::Destroy ();
   return 0;
--- a/src/lte/helper/radio-environment-map-helper.cc	Tue Jan 17 13:49:10 2012 +0100
+++ b/src/lte/helper/radio-environment-map-helper.cc	Tue Jan 17 13:49:56 2012 +0100
@@ -139,6 +139,8 @@
           RemPoint p;
           p.phy = CreateObject<RemSpectrumPhy> ();
           p.bmm = CreateObject<BuildingsMobilityModel> ();
+          p.node = CreateObject<Node> ();
+          p.node->AggregateObject (p.bmm);
           p.phy->SetMobility (p.bmm);
           p.bmm->SetPosition (Vector (x, y, m_z));
           m_rem.back ().push_back (p);