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) 2005,2006,2007 INRIA | 3 * Copyright (c) 2005,2006,2007 INRIA |
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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 Gnuplot gnuplot = Gnuplot ("reference-rates.png"); | 173 Gnuplot gnuplot = Gnuplot ("reference-rates.png"); |
174 | 174 |
175 Experiment experiment; | 175 Experiment experiment; |
176 WifiHelper wifi = WifiHelper::Default (); | 176 WifiHelper wifi = WifiHelper::Default (); |
177 wifi.SetStandard (WIFI_PHY_STANDARD_80211a); | 177 wifi.SetStandard (WIFI_PHY_STANDARD_80211a); |
178 NqosWifiMacHelper wifiMac = NqosWifiMacHelper::Default (); | 178 NqosWifiMacHelper wifiMac = NqosWifiMacHelper::Default (); |
179 YansWifiPhyHelper wifiPhy = YansWifiPhyHelper::Default (); | 179 YansWifiPhyHelper wifiPhy = YansWifiPhyHelper::Default (); |
180 YansWifiChannelHelper wifiChannel = YansWifiChannelHelper::Default (); | 180 YansWifiChannelHelper wifiChannel = YansWifiChannelHelper::Default (); |
181 Gnuplot2dDataset dataset; | 181 Gnuplot2dDataset dataset; |
182 | 182 |
183 wifiMac.SetType ("ns3::AdhocWifiMac"); | 183 wifiMac.SetType ("ns3::AdhocWifiMac", |
| 184 "QosSupported", BooleanValue (false)); |
184 | 185 |
185 NS_LOG_DEBUG ("54"); | 186 NS_LOG_DEBUG ("54"); |
186 experiment = Experiment ("54mb"); | 187 experiment = Experiment ("54mb"); |
187 wifi.SetRemoteStationManager ("ns3::ConstantRateWifiManager", | 188 wifi.SetRemoteStationManager ("ns3::ConstantRateWifiManager", |
188 "DataMode", StringValue ("OfdmRate54Mbps")); | 189 "DataMode", StringValue ("OfdmRate54Mbps")); |
189 dataset = experiment.Run (wifi, wifiPhy, wifiMac, wifiChannel); | 190 dataset = experiment.Run (wifi, wifiPhy, wifiMac, wifiChannel); |
190 gnuplot.AddDataset (dataset); | 191 gnuplot.AddDataset (dataset); |
191 | 192 |
192 NS_LOG_DEBUG ("48"); | 193 NS_LOG_DEBUG ("48"); |
193 experiment = Experiment ("48mb"); | 194 experiment = Experiment ("48mb"); |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 NS_LOG_DEBUG ("ideal"); | 279 NS_LOG_DEBUG ("ideal"); |
279 experiment = Experiment ("ideal"); | 280 experiment = Experiment ("ideal"); |
280 wifi.SetRemoteStationManager ("ns3::IdealWifiManager"); | 281 wifi.SetRemoteStationManager ("ns3::IdealWifiManager"); |
281 dataset = experiment.Run (wifi, wifiPhy, wifiMac, wifiChannel); | 282 dataset = experiment.Run (wifi, wifiPhy, wifiMac, wifiChannel); |
282 gnuplot.AddDataset (dataset); | 283 gnuplot.AddDataset (dataset); |
283 | 284 |
284 gnuplot.GenerateOutput (std::cout); | 285 gnuplot.GenerateOutput (std::cout); |
285 | 286 |
286 return 0; | 287 return 0; |
287 } | 288 } |
OLD | NEW |