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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 | 53 |
54 ConfigStore inputConfig; | 54 ConfigStore inputConfig; |
55 inputConfig.ConfigureDefaults (); | 55 inputConfig.ConfigureDefaults (); |
56 | 56 |
57 // parse again so you can override default values from the command line | 57 // parse again so you can override default values from the command line |
58 cmd.Parse (argc, argv); | 58 cmd.Parse (argc, argv); |
59 | 59 |
60 // determine the string tag that identifies this simulation run | 60 // determine the string tag that identifies this simulation run |
61 // this tag is then appended to all filenames | 61 // this tag is then appended to all filenames |
62 | 62 |
63 IntegerValue runValue; | 63 UintegerValue runValue; |
64 GlobalValue::GetValueByName ("RngRun", runValue); | 64 GlobalValue::GetValueByName ("RngRun", runValue); |
65 | 65 |
66 std::ostringstream tag; | 66 std::ostringstream tag; |
67 tag << "_enbDist" << std::setw (3) << std::setfill ('0') << std::fixed << std
::setprecision (0) << enbDist | 67 tag << "_enbDist" << std::setw (3) << std::setfill ('0') << std::fixed << std
::setprecision (0) << enbDist |
68 << "_radius" << std::setw (3) << std::setfill ('0') << std::fixed << std
::setprecision (0) << radius | 68 << "_radius" << std::setw (3) << std::setfill ('0') << std::fixed << std
::setprecision (0) << radius |
69 << "_numUes" << std::setw (3) << std::setfill ('0') << numUes | 69 << "_numUes" << std::setw (3) << std::setfill ('0') << numUes |
70 << "_rngRun" << std::setw (3) << std::setfill ('0') << runValue.Get ()
; | 70 << "_rngRun" << std::setw (3) << std::setfill ('0') << runValue.Get ()
; |
71 | 71 |
72 Ptr<LteHelper> lteHelper = CreateObject<LteHelper> (); | 72 Ptr<LteHelper> lteHelper = CreateObject<LteHelper> (); |
73 | 73 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 // print the pathloss values at the end of the simulation | 169 // print the pathloss values at the end of the simulation |
170 std::cout << std::endl << "Downlink pathloss:" << std::endl; | 170 std::cout << std::endl << "Downlink pathloss:" << std::endl; |
171 dlPathlossDb.Print (); | 171 dlPathlossDb.Print (); |
172 std::cout << std::endl << "Uplink pathloss:" << std::endl; | 172 std::cout << std::endl << "Uplink pathloss:" << std::endl; |
173 ulPathlossDb.Print (); | 173 ulPathlossDb.Print (); |
174 | 174 |
175 | 175 |
176 Simulator::Destroy (); | 176 Simulator::Destroy (); |
177 return 0; | 177 return 0; |
178 } | 178 } |
LEFT | RIGHT |