LEFT | RIGHT |
(no file at all) | |
1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC) | 3 * Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC) |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 2 as | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 inputConfig.ConfigureDefaults (); | 52 inputConfig.ConfigureDefaults (); |
53 | 53 |
54 // parse again so you can override default values from the command line | 54 // parse again so you can override default values from the command line |
55 cmd.Parse (argc, argv); | 55 cmd.Parse (argc, argv); |
56 | 56 |
57 // Geometry of the scenario (in meters) | 57 // Geometry of the scenario (in meters) |
58 // Assume squared building | 58 // Assume squared building |
59 double nodeHeight = 1.5; | 59 double nodeHeight = 1.5; |
60 double roomHeight = 3; | 60 double roomHeight = 3; |
61 double roomLength = 8; | 61 double roomLength = 8; |
62 uint32_t nRooms = std::ceil (std::sqrt (nEnbPerFloor)); | 62 uint32_t nRooms = static_cast<uint32_t> (std::ceil (std::sqrt (nEnbPerFloor)))
; |
63 uint32_t nEnb; | 63 uint32_t nEnb; |
64 | 64 |
65 Ptr<LteHelper> lteHelper = CreateObject<LteHelper> (); | 65 Ptr<LteHelper> lteHelper = CreateObject<LteHelper> (); |
66 //lteHelper->EnableLogComponents (); | 66 //lteHelper->EnableLogComponents (); |
67 //LogComponentEnable ("BuildingsPropagationLossModel", LOG_LEVEL_ALL); | 67 //LogComponentEnable ("BuildingsPropagationLossModel", LOG_LEVEL_ALL); |
68 if (nFloors == 0) | 68 if (nFloors == 0) |
69 { | 69 { |
70 lteHelper->SetAttribute ("PathlossModel", | 70 lteHelper->SetAttribute ("PathlossModel", |
71 StringValue ("ns3::FriisPropagationLossModel")); | 71 StringValue ("ns3::FriisPropagationLossModel")); |
72 nEnb = nEnbPerFloor; | 72 nEnb = nEnbPerFloor; |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 lteHelper->EnableTraces (); | 199 lteHelper->EnableTraces (); |
200 | 200 |
201 Simulator::Run (); | 201 Simulator::Run (); |
202 | 202 |
203 /*GtkConfigStore config; | 203 /*GtkConfigStore config; |
204 config.ConfigureAttributes ();*/ | 204 config.ConfigureAttributes ();*/ |
205 | 205 |
206 Simulator::Destroy (); | 206 Simulator::Destroy (); |
207 return 0; | 207 return 0; |
208 } | 208 } |
LEFT | RIGHT |