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) 2016 Tom Henderson | 3 * Copyright (c) 2016 Tom Henderson |
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 |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 * GNU General Public License for more details. | 12 * GNU General Public License for more details. |
13 * | 13 * |
14 * You should have received a copy of the GNU General Public License | 14 * You should have received a copy of the GNU General Public License |
15 * along with this program; if not, write to the Free Software | 15 * along with this program; if not, write to the Free Software |
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
17 * | 17 * |
18 * Author: Tom Henderson <tomh@tomh.org> | 18 * Author: Tom Henderson <tomh@tomh.org> |
19 */ | 19 */ |
20 | 20 |
| 21 #include "ns3/core-module.h" |
| 22 #include "ns3/config-store-module.h" |
| 23 #include "ns3/wifi-module.h" |
| 24 |
| 25 |
21 // This example shows (and tests) some possible configurations for | 26 // This example shows (and tests) some possible configurations for |
22 // the Wi-Fi physical layer, particularly the interaction between | 27 // the Wi-Fi physical layer, particularly the interaction between |
23 // WifiHelper.SetStandard () and the physical layer channel number, | 28 // WifiHelper.SetStandard () and the physical layer channel number, |
24 // center frequency, and channel width. | 29 // center frequency, and channel width. |
25 | 30 |
26 using namespace ns3; | 31 using namespace ns3; |
27 | 32 |
28 NS_LOG_COMPONENT_DEFINE ("WifiPhyConfigurationExample"); | 33 NS_LOG_COMPONENT_DEFINE ("WifiPhyConfigurationExample"); |
29 | 34 |
30 | 35 |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 | 382 |
378 default: | 383 default: |
379 std::cerr << "Invalid testcase number " << testCase << std::endl; | 384 std::cerr << "Invalid testcase number " << testCase << std::endl; |
380 exit (1); | 385 exit (1); |
381 break; | 386 break; |
382 } | 387 } |
383 | 388 |
384 // No need to Simulator::Run (); this is a configuration example | 389 // No need to Simulator::Run (); this is a configuration example |
385 Simulator::Destroy (); | 390 Simulator::Destroy (); |
386 } | 391 } |
LEFT | RIGHT |