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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 std::string ulOutFname = "UlRlcStats"; | 135 std::string ulOutFname = "UlRlcStats"; |
136 ulOutFname.append (tag.str ()); | 136 ulOutFname.append (tag.str ()); |
137 | 137 |
138 lteHelper->EnableMacTraces (); | 138 lteHelper->EnableMacTraces (); |
139 lteHelper->EnableRlcTraces (); | 139 lteHelper->EnableRlcTraces (); |
140 | 140 |
141 Simulator::Run (); | 141 Simulator::Run (); |
142 Simulator::Destroy (); | 142 Simulator::Destroy (); |
143 return 0; | 143 return 0; |
144 } | 144 } |
LEFT | RIGHT |