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, 2013 Centre Tecnologic de Telecomunicacions de Catalunya
(CTTC) | 3 * Copyright (c) 2011, 2013 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 NS_LOG_COMPONENT_DEFINE ("EpcFirstExample"); | 45 NS_LOG_COMPONENT_DEFINE ("EpcFirstExample"); |
46 | 46 |
47 int | 47 int |
48 main (int argc, char *argv[]) | 48 main (int argc, char *argv[]) |
49 { | 49 { |
50 | 50 |
51 uint16_t nEnbs = 1; | 51 uint16_t nEnbs = 1; |
52 uint16_t nUesPerEnb = 1; | 52 uint16_t nUesPerEnb = 1; |
53 double simTime = 10.1; | 53 double simTime = 10.1; |
54 double distance = 1000.0; | 54 double distance = 1000.0; |
55 double interPacketInterval = 1000; | 55 uint64_t interPacketInterval = 1000; |
56 | 56 |
57 // Command line arguments | 57 // Command line arguments |
58 CommandLine cmd; | 58 CommandLine cmd; |
59 cmd.AddValue("nEnbs", "Number of eNBs", nEnbs); | 59 cmd.AddValue("nEnbs", "Number of eNBs", nEnbs); |
60 cmd.AddValue("nUesPerEnb", "Number of UEs per eNB", nUesPerEnb); | 60 cmd.AddValue("nUesPerEnb", "Number of UEs per eNB", nUesPerEnb); |
61 cmd.AddValue("simTime", "Total duration of the simulation [s])", simTime); | 61 cmd.AddValue("simTime", "Total duration of the simulation [s])", simTime); |
62 cmd.AddValue("distance", "Distance between eNBs [m]", distance); | 62 cmd.AddValue("distance", "Distance between eNBs [m]", distance); |
63 cmd.AddValue("interPacketInterval", "Inter packet interval [ms])", interPacket
Interval); | 63 cmd.AddValue("interPacketInterval", "Inter packet interval [ms])", interPacket
Interval); |
64 cmd.Parse(argc, argv); | 64 cmd.Parse(argc, argv); |
65 | 65 |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 clientApps.Start (Seconds (startTimeSeconds->GetValue ()));·· | 189 clientApps.Start (Seconds (startTimeSeconds->GetValue ()));·· |
190 } | 190 } |
191 | 191 |
192 Simulator::Stop(Seconds(simTime)); | 192 Simulator::Stop(Seconds(simTime)); |
193 Simulator::Run(); | 193 Simulator::Run(); |
194 | 194 |
195 Simulator::Destroy(); | 195 Simulator::Destroy(); |
196 return 0; | 196 return 0; |
197 } | 197 } |
198 | 198 |
LEFT | RIGHT |