OLD | NEW |
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) 2007,2008, 2009 INRIA, UDcast | 3 * Copyright (c) 2007,2008, 2009 INRIA, UDcast |
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 using namespace ns3; | 63 using namespace ns3; |
64 | 64 |
65 NS_LOG_COMPONENT_DEFINE ("wimaxIpV4Simulation"); | 65 NS_LOG_COMPONENT_DEFINE ("wimaxIpV4Simulation"); |
66 | 66 |
67 int main (int argc, char *argv[]) | 67 int main (int argc, char *argv[]) |
68 { | 68 { |
69 // default values | 69 // default values |
70 int nbSS = 4, duration = 7, schedType = 0; | 70 int nbSS = 4, duration = 7, schedType = 0; |
71 bool verbose = false; | 71 bool verbose = false; |
72 WimaxHelper::SchedulerType scheduler = WimaxHelper::SCHED_TYPE_SIMPLE; | 72 WimaxHelper::SchedulerType scheduler = WimaxHelper::SCHED_TYPE_SIMPLE; |
| 73 |
| 74 #if 0 |
73 LogComponentEnable ("UdpClient", LOG_LEVEL_INFO); | 75 LogComponentEnable ("UdpClient", LOG_LEVEL_INFO); |
74 LogComponentEnable ("UdpServer", LOG_LEVEL_INFO); | 76 LogComponentEnable ("UdpServer", LOG_LEVEL_INFO); |
75 | 77 #endif |
76 | 78 |
77 CommandLine cmd; | 79 CommandLine cmd; |
78 cmd.AddValue ("nbSS", "number of subscriber station to create", nbSS); | 80 cmd.AddValue ("nbSS", "number of subscriber station to create", nbSS); |
79 cmd.AddValue ("scheduler", "type of scheduler to use with the network devices"
, schedType); | 81 cmd.AddValue ("scheduler", "type of scheduler to use with the network devices"
, schedType); |
80 cmd.AddValue ("duration", "duration of the simulation in seconds", duration); | 82 cmd.AddValue ("duration", "duration of the simulation in seconds", duration); |
81 cmd.AddValue ("verbose", "turn on all WimaxNetDevice log components", verbose)
; | 83 cmd.AddValue ("verbose", "turn on all WimaxNetDevice log components", verbose)
; |
82 cmd.Parse (argc, argv); | 84 cmd.Parse (argc, argv); |
83 | 85 |
84 switch (schedType) | 86 switch (schedType) |
85 { | 87 { |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 } | 216 } |
215 delete[] ss; | 217 delete[] ss; |
216 | 218 |
217 bs = 0; | 219 bs = 0; |
218 | 220 |
219 Simulator::Destroy (); | 221 Simulator::Destroy (); |
220 NS_LOG_INFO ("Done."); | 222 NS_LOG_INFO ("Done."); |
221 | 223 |
222 return 0; | 224 return 0; |
223 } | 225 } |
OLD | NEW |