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 30 matching lines...) Expand all Loading... |
41 | 41 |
42 NS_LOG_COMPONENT_DEFINE ("EpcFirstExample"); | 42 NS_LOG_COMPONENT_DEFINE ("EpcFirstExample"); |
43 | 43 |
44 int | 44 int |
45 main (int argc, char *argv[]) | 45 main (int argc, char *argv[]) |
46 { | 46 { |
47 | 47 |
48 uint16_t numberOfNodes = 2; | 48 uint16_t numberOfNodes = 2; |
49 double simTime = 1.1; | 49 double simTime = 1.1; |
50 double distance = 60.0; | 50 double distance = 60.0; |
51 double interPacketInterval = 100; | 51 uint64_t interPacketInterval = 100; |
52 bool useCa = false; | 52 bool useCa = false; |
53 | 53 |
54 // Command line arguments | 54 // Command line arguments |
55 CommandLine cmd; | 55 CommandLine cmd; |
56 cmd.AddValue("numberOfNodes", "Number of eNodeBs + UE pairs", numberOfNodes); | 56 cmd.AddValue("numberOfNodes", "Number of eNodeBs + UE pairs", numberOfNodes); |
57 cmd.AddValue("simTime", "Total duration of the simulation [s])", simTime); | 57 cmd.AddValue("simTime", "Total duration of the simulation [s])", simTime); |
58 cmd.AddValue("distance", "Distance between eNBs [m]", distance); | 58 cmd.AddValue("distance", "Distance between eNBs [m]", distance); |
59 cmd.AddValue("interPacketInterval", "Inter packet interval [ms])", interPacket
Interval); | 59 cmd.AddValue("interPacketInterval", "Inter packet interval [ms])", interPacket
Interval); |
60 cmd.AddValue("useCa", "Whether to use carrier aggregation.", useCa); | 60 cmd.AddValue("useCa", "Whether to use carrier aggregation.", useCa); |
61 cmd.Parse(argc, argv); | 61 cmd.Parse(argc, argv); |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 Simulator::Run(); | 194 Simulator::Run(); |
195 | 195 |
196 /*GtkConfigStore config; | 196 /*GtkConfigStore config; |
197 config.ConfigureAttributes();*/ | 197 config.ConfigureAttributes();*/ |
198 | 198 |
199 Simulator::Destroy(); | 199 Simulator::Destroy(); |
200 return 0; | 200 return 0; |
201 | 201 |
202 } | 202 } |
203 | 203 |
LEFT | RIGHT |