A Discrete-Event Network Simulator
API
wifi-phy-configuration.cc
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2016 Tom Henderson
4  *
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
7  * published by the Free Software Foundation;
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
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
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  * Author: Tom Henderson <tomh@tomh.org>
19  */
20 
21 // This example shows (and tests) some possible configurations for
22 // the Wi-Fi physical layer, particularly the interaction between
23 // WifiHelper.SetStandard () and the physical layer channel number,
24 // center frequency, and channel width.
25 
26 #include "ns3/log.h"
27 #include "ns3/command-line.h"
28 #include "ns3/config-store.h"
29 #include "ns3/config.h"
30 #include "ns3/boolean.h"
31 #include "ns3/uinteger.h"
32 #include "ns3/string.h"
33 #include "ns3/ssid.h"
34 #include "ns3/yans-wifi-phy.h"
35 #include "ns3/yans-wifi-helper.h"
36 #include "ns3/wifi-net-device.h"
37 
38 using namespace ns3;
39 
40 NS_LOG_COMPONENT_DEFINE ("WifiPhyConfigurationExample");
41 
44 {
45  Ptr<WifiNetDevice> wnd = nc.Get (0)->GetObject<WifiNetDevice> ();
46  Ptr<WifiPhy> wp = wnd->GetPhy ();
47  return wp->GetObject<YansWifiPhy> ();
48 }
49 
50 void
52 {
53  if (enabled)
54  {
55  ConfigStore outputConfig;
56  outputConfig.ConfigureAttributes ();
57  }
58 }
59 
60 int main (int argc, char *argv[])
61 {
62  uint32_t testCase = 0;
63  bool printAttributes = false;
64 
66  cmd.AddValue ("testCase", "Test case", testCase);
67  cmd.AddValue ("printAttributes", "If true, print out attributes", printAttributes);
68  cmd.Parse (argc, argv);
69 
70  NodeContainer wifiStaNode;
71  wifiStaNode.Create (1);
73  wifiApNode.Create (1);
74 
77  phy.SetChannel (channel.Create ());
79  wifi.SetRemoteStationManager ("ns3::IdealWifiManager");
80 
81  // Configure and declare other generic components of this example
82  Ssid ssid;
83  ssid = Ssid ("wifi-phy-configuration");
84  WifiMacHelper macSta;
85  macSta.SetType ("ns3::StaWifiMac",
86  "Ssid", SsidValue (ssid),
87  "ActiveProbing", BooleanValue (false));
88  WifiMacHelper macAp;
89  macAp.SetType ("ns3::ApWifiMac",
90  "Ssid", SsidValue (ssid),
91  "BeaconInterval", TimeValue (MicroSeconds (102400)),
92  "BeaconGeneration", BooleanValue (true));
93  NetDeviceContainer staDevice;
94  NetDeviceContainer apDevice;
95  Ptr<YansWifiPhy> phySta;
96  Config::SetDefault ("ns3::ConfigStore::Filename", StringValue ("output-attributes-" + std::to_string (testCase) + ".txt"));
97  Config::SetDefault ("ns3::ConfigStore::FileFormat", StringValue ("RawText"));
98  Config::SetDefault ("ns3::ConfigStore::Mode", StringValue ("Save"));
99 
100  switch (testCase)
101  {
102  case 0:
103  // Default configuration, without WifiHelper::SetStandard or WifiHelper
104  phySta = CreateObject<YansWifiPhy> ();
105  // The default results in an invalid configuration of channel 0,
106  // width 20, and frequency 0 MHz
107  NS_ASSERT (phySta->GetChannelNumber () == 0);
108  NS_ASSERT (phySta->GetChannelWidth () == 20);
109  NS_ASSERT (phySta->GetFrequency () == 0);
110  PrintAttributesIfEnabled (printAttributes);
111  break;
112 
113  // The following cases test the setting of WifiPhyStandard alone;
114  // i.e. without further channel number/width/frequency configuration
115 
116  case 1:
117  // By default, WifiHelper will use WIFI_PHY_STANDARD_80211a
118  staDevice = wifi.Install (phy, macSta, wifiStaNode.Get (0));
119  apDevice = wifi.Install (phy, macAp, wifiApNode.Get (0));
120  phySta = GetYansWifiPhyPtr (staDevice);
121  // We expect channel 36, width 20, frequency 5180
122  NS_ASSERT (phySta->GetChannelNumber () == 36);
123  NS_ASSERT (phySta->GetChannelWidth () == 20);
124  NS_ASSERT (phySta->GetFrequency () == 5180);
125  PrintAttributesIfEnabled (printAttributes);
126  break;
127  case 2:
128  wifi.SetStandard (WIFI_PHY_STANDARD_80211b);
129  staDevice = wifi.Install (phy, macSta, wifiStaNode.Get (0));
130  apDevice = wifi.Install (phy, macAp, wifiApNode.Get (0));
131  phySta = GetYansWifiPhyPtr (staDevice);
132  // We expect channel 1, width 22, frequency 2412
133  NS_ASSERT (phySta->GetChannelNumber () == 1);
134  NS_ASSERT (phySta->GetChannelWidth () == 22);
135  NS_ASSERT (phySta->GetFrequency () == 2412);
136  PrintAttributesIfEnabled (printAttributes);
137  break;
138  case 3:
139  wifi.SetStandard (WIFI_PHY_STANDARD_80211g);
140  staDevice = wifi.Install (phy, macSta, wifiStaNode.Get (0));
141  apDevice = wifi.Install (phy, macAp, wifiApNode.Get (0));
142  phySta = GetYansWifiPhyPtr (staDevice);
143  // We expect channel 1, width 20, frequency 2412
144  NS_ASSERT (phySta->GetChannelNumber () == 1);
145  NS_ASSERT (phySta->GetChannelWidth () == 20);
146  NS_ASSERT (phySta->GetFrequency () == 2412);
147  PrintAttributesIfEnabled (printAttributes);
148  break;
149  case 4:
150  wifi.SetStandard (WIFI_PHY_STANDARD_80211n_5GHZ);
151  staDevice = wifi.Install (phy, macSta, wifiStaNode.Get (0));
152  apDevice = wifi.Install (phy, macAp, wifiApNode.Get (0));
153  phySta = GetYansWifiPhyPtr (staDevice);
154  // We expect channel 36, width 20, frequency 5180
155  NS_ASSERT (phySta->GetChannelNumber () == 36);
156  NS_ASSERT (phySta->GetChannelWidth () == 20);
157  NS_ASSERT (phySta->GetFrequency () == 5180);
158  PrintAttributesIfEnabled (printAttributes);
159  break;
160  case 5:
162  staDevice = wifi.Install (phy, macSta, wifiStaNode.Get (0));
163  apDevice = wifi.Install (phy, macAp, wifiApNode.Get (0));
164  phySta = GetYansWifiPhyPtr (staDevice);
165  // We expect channel 1, width 20, frequency 2412
166  NS_ASSERT (phySta->GetChannelNumber () == 1);
167  NS_ASSERT (phySta->GetChannelWidth () == 20);
168  NS_ASSERT (phySta->GetFrequency () == 2412);
169  PrintAttributesIfEnabled (printAttributes);
170  break;
171  case 6:
172  wifi.SetStandard (WIFI_PHY_STANDARD_80211ac);
173  staDevice = wifi.Install (phy, macSta, wifiStaNode.Get (0));
174  apDevice = wifi.Install (phy, macAp, wifiApNode.Get (0));
175  phySta = GetYansWifiPhyPtr (staDevice);
176  // We expect channel 42, width 80, frequency 5210
177  NS_ASSERT (phySta->GetChannelNumber () == 42);
178  NS_ASSERT (phySta->GetChannelWidth () == 80);
179  NS_ASSERT (phySta->GetFrequency () == 5210);
180  PrintAttributesIfEnabled (printAttributes);
181  break;
182  case 7:
183  wifi.SetStandard (WIFI_PHY_STANDARD_80211_10MHZ);
184  staDevice = wifi.Install (phy, macSta, wifiStaNode.Get (0));
185  apDevice = wifi.Install (phy, macAp, wifiApNode.Get (0));
186  phySta = GetYansWifiPhyPtr (staDevice);
187  // We expect channel 172, width 10, frequency 5860
188  NS_ASSERT (phySta->GetChannelNumber () == 172);
189  NS_ASSERT (phySta->GetChannelWidth () == 10);
190  NS_ASSERT (phySta->GetFrequency () == 5860);
191  PrintAttributesIfEnabled (printAttributes);
192  break;
193  case 8:
194  wifi.SetStandard (WIFI_PHY_STANDARD_80211_5MHZ);
195  staDevice = wifi.Install (phy, macSta, wifiStaNode.Get (0));
196  apDevice = wifi.Install (phy, macAp, wifiApNode.Get (0));
197  phySta = GetYansWifiPhyPtr (staDevice);
198  // We expect channel 0, width 5, frequency 5860
199  // Channel 0 because 5MHz channels are not officially defined
200  NS_ASSERT (phySta->GetChannelNumber () == 0);
201  NS_ASSERT (phySta->GetChannelWidth () == 5);
202  NS_ASSERT (phySta->GetFrequency () == 5860);
203  PrintAttributesIfEnabled (printAttributes);
204  break;
205  case 9:
206  wifi.SetStandard (WIFI_PHY_STANDARD_holland);
207  staDevice = wifi.Install (phy, macSta, wifiStaNode.Get (0));
208  apDevice = wifi.Install (phy, macAp, wifiApNode.Get (0));
209  phySta = GetYansWifiPhyPtr (staDevice);
210  // We expect channel 36, width 20, frequency 5180
211  NS_ASSERT (phySta->GetChannelNumber () == 36);
212  NS_ASSERT (phySta->GetChannelWidth () == 20);
213  NS_ASSERT (phySta->GetFrequency () == 5180);
214  PrintAttributesIfEnabled (printAttributes);
215  break;
216  case 10:
217  wifi.SetStandard (WIFI_PHY_STANDARD_80211n_5GHZ);
218  phy.Set ("ChannelNumber", UintegerValue (44));
219  staDevice = wifi.Install (phy, macSta, wifiStaNode.Get (0));
220  apDevice = wifi.Install (phy, macAp, wifiApNode.Get (0));
221  phySta = GetYansWifiPhyPtr (staDevice);
222  // We expect channel 44, width 20, frequency 5220
223  NS_ASSERT (phySta->GetChannelNumber () == 44);
224  NS_ASSERT (phySta->GetChannelWidth () == 20);
225  NS_ASSERT (phySta->GetFrequency () == 5220);
226  PrintAttributesIfEnabled (printAttributes);
227  break;
228 
229  case 11:
230  wifi.SetStandard (WIFI_PHY_STANDARD_80211n_5GHZ);
231  phy.Set ("ChannelNumber", UintegerValue (44));
232  staDevice = wifi.Install (phy, macSta, wifiStaNode.Get (0));
233  apDevice = wifi.Install (phy, macAp, wifiApNode.Get (0));
234  phySta = GetYansWifiPhyPtr (staDevice);
235  // Post-install reconfiguration to channel number 40
236  Config::Set ("/NodeList/0/DeviceList/*/$ns3::WifiNetDevice/Phy/$ns3::YansWifiPhy/ChannelNumber", UintegerValue (40));
237  Config::Set ("/NodeList/1/DeviceList/*/$ns3::WifiNetDevice/Phy/$ns3::YansWifiPhy/ChannelNumber", UintegerValue (40));
238  // We expect channel 40, width 20, frequency 5200
239  NS_ASSERT (phySta->GetChannelNumber () == 40);
240  NS_ASSERT (phySta->GetChannelWidth () == 20);
241  NS_ASSERT (phySta->GetFrequency () == 5200);
242  PrintAttributesIfEnabled (printAttributes);
243  break;
244 
245  case 12:
246  wifi.SetStandard (WIFI_PHY_STANDARD_80211n_5GHZ);
247  phy.Set ("ChannelNumber", UintegerValue (44));
248  staDevice = wifi.Install (phy, macSta, wifiStaNode.Get (0));
249  apDevice = wifi.Install (phy, macAp, wifiApNode.Get (0));
250  phySta = GetYansWifiPhyPtr (staDevice);
251  // Post-install reconfiguration to channel width 40 MHz
252  Config::Set ("/NodeList/0/DeviceList/*/$ns3::WifiNetDevice/Phy/$ns3::YansWifiPhy/ChannelWidth", UintegerValue (40));
253  Config::Set ("/NodeList/1/DeviceList/*/$ns3::WifiNetDevice/Phy/$ns3::YansWifiPhy/ChannelWidth", UintegerValue (40));
254  // Although channel 44 is configured originally for 20 MHz, we
255  // allow it to be used for 40 MHz here
256  NS_ASSERT (phySta->GetChannelNumber () == 44);
257  NS_ASSERT (phySta->GetChannelWidth () == 40);
258  NS_ASSERT (phySta->GetFrequency () == 5220);
259  PrintAttributesIfEnabled (printAttributes);
260  break;
261 
262  case 13:
263  Config::SetDefault ("ns3::WifiPhy::ChannelNumber", UintegerValue (44));
264  wifi.SetStandard (WIFI_PHY_STANDARD_80211n_5GHZ);
265  staDevice = wifi.Install (phy, macSta, wifiStaNode.Get (0));
266  apDevice = wifi.Install (phy, macAp, wifiApNode.Get (0));
267  phySta = GetYansWifiPhyPtr (staDevice);
268  // Post-install reconfiguration to channel width 40 MHz
269  Config::Set ("/NodeList/0/DeviceList/*/$ns3::WifiNetDevice/Phy/$ns3::YansWifiPhy/ChannelWidth", UintegerValue (40));
270  Config::Set ("/NodeList/1/DeviceList/*/$ns3::WifiNetDevice/Phy/$ns3::YansWifiPhy/ChannelWidth", UintegerValue (40));
271  // Although channel 44 is configured originally for 20 MHz, we
272  // allow it to be used for 40 MHz here
273  NS_ASSERT (phySta->GetChannelNumber () == 44);
274  NS_ASSERT (phySta->GetChannelWidth () == 40);
275  NS_ASSERT (phySta->GetFrequency () == 5220);
276  PrintAttributesIfEnabled (printAttributes);
277  break;
278 
279  case 14:
280  // Test that setting Frequency to a non-standard value will zero the
281  // channel number
282  Config::SetDefault ("ns3::WifiPhy::Frequency", UintegerValue (5281));
283  wifi.SetStandard (WIFI_PHY_STANDARD_80211n_5GHZ);
284  staDevice = wifi.Install (phy, macSta, wifiStaNode.Get (0));
285  apDevice = wifi.Install (phy, macAp, wifiApNode.Get (0));
286  phySta = GetYansWifiPhyPtr (staDevice);
287  // We expect channel number to be zero since frequency doesn't match
288  NS_ASSERT (phySta->GetChannelNumber () == 0);
289  NS_ASSERT (phySta->GetChannelWidth () == 20);
290  NS_ASSERT (phySta->GetFrequency () == 5281);
291  PrintAttributesIfEnabled (printAttributes);
292  break;
293 
294  case 15:
295  // Test that setting Frequency to a standard value will set the
296  // channel number correctly
297  Config::SetDefault ("ns3::WifiPhy::Frequency", UintegerValue (5500));
298  wifi.SetStandard (WIFI_PHY_STANDARD_80211n_5GHZ);
299  staDevice = wifi.Install (phy, macSta, wifiStaNode.Get (0));
300  apDevice = wifi.Install (phy, macAp, wifiApNode.Get (0));
301  phySta = GetYansWifiPhyPtr (staDevice);
302  // We expect channel number to be 100 due to frequency 5500
303  NS_ASSERT (phySta->GetChannelNumber () == 100);
304  NS_ASSERT (phySta->GetChannelWidth () == 20);
305  NS_ASSERT (phySta->GetFrequency () == 5500);
306  PrintAttributesIfEnabled (printAttributes);
307  break;
308 
309  case 16:
310  // Define a new channel number
311  wifi.SetStandard (WIFI_PHY_STANDARD_80211n_5GHZ);
312  staDevice = wifi.Install (phy, macSta, wifiStaNode.Get (0));
313  apDevice = wifi.Install (phy, macAp, wifiApNode.Get (0));
314  phySta = GetYansWifiPhyPtr (staDevice);
315  // This case will error exit due to invalid channel number unless
316  // we provide the DefineChannelNumber() below
317  phySta->DefineChannelNumber (99, WIFI_PHY_STANDARD_80211n_5GHZ, 5185, 40);
318  phySta->SetAttribute ("ChannelNumber", UintegerValue (99));
319  PrintAttributesIfEnabled (printAttributes);
320  break;
321 
322  case 17:
323  // Test how channel number behaves when frequency is non-standard
324  wifi.SetStandard (WIFI_PHY_STANDARD_80211n_5GHZ);
325  staDevice = wifi.Install (phy, macSta, wifiStaNode.Get (0));
326  apDevice = wifi.Install (phy, macAp, wifiApNode.Get (0));
327  phySta = GetYansWifiPhyPtr (staDevice);
328  phySta->SetAttribute ("Frequency", UintegerValue (5181));
329  // We expect channel number to be 0 due to unknown center frequency 5181
330  NS_ASSERT (phySta->GetChannelNumber () == 0);
331  NS_ASSERT (phySta->GetChannelWidth () == 20);
332  NS_ASSERT (phySta->GetFrequency () == 5181);
333  phySta->SetAttribute ("Frequency", UintegerValue (5180));
334  // We expect channel number to be 36 due to known center frequency 5180
335  NS_ASSERT (phySta->GetChannelNumber () == 36);
336  NS_ASSERT (phySta->GetChannelWidth () == 20);
337  NS_ASSERT (phySta->GetFrequency () == 5180);
338  phySta->SetAttribute ("Frequency", UintegerValue (5179));
339  // We expect channel number to be 0 due to unknown center frequency 5179
340  NS_ASSERT (phySta->GetChannelNumber () == 0);
341  NS_ASSERT (phySta->GetChannelWidth () == 20);
342  NS_ASSERT (phySta->GetFrequency () == 5179);
343  phySta->SetAttribute ("ChannelNumber", UintegerValue (36));
344  NS_ASSERT (phySta->GetChannelNumber () == 36);
345  NS_ASSERT (phySta->GetChannelWidth () == 20);
346  NS_ASSERT (phySta->GetFrequency () == 5180);
347  PrintAttributesIfEnabled (printAttributes);
348  break;
349 
350  case 18:
351  // Set both channel and frequency to consistent values
352  wifi.SetStandard (WIFI_PHY_STANDARD_80211n_5GHZ);
353  staDevice = wifi.Install (phy, macSta, wifiStaNode.Get (0));
354  apDevice = wifi.Install (phy, macAp, wifiApNode.Get (0));
355  phySta = GetYansWifiPhyPtr (staDevice);
356  phySta->SetAttribute ("Frequency", UintegerValue (5200));
357  phySta->SetAttribute ("ChannelNumber", UintegerValue (40));
358  NS_ASSERT (phySta->GetChannelNumber () == 40);
359  NS_ASSERT (phySta->GetChannelWidth () == 20);
360  NS_ASSERT (phySta->GetFrequency () == 5200);
361  // Set both channel and frequency to inconsistent values
362  phySta->SetAttribute ("Frequency", UintegerValue (5200));
363  phySta->SetAttribute ("ChannelNumber", UintegerValue (36));
364  // We expect channel number to be 36
365  NS_ASSERT (phySta->GetChannelNumber () == 36);
366  NS_ASSERT (phySta->GetChannelWidth () == 20);
367  NS_ASSERT (phySta->GetFrequency () == 5180);
368  phySta->SetAttribute ("ChannelNumber", UintegerValue (36));
369  phySta->SetAttribute ("Frequency", UintegerValue (5200));
370  // We expect channel number to be 40
371  NS_ASSERT (phySta->GetChannelNumber () == 40);
372  NS_ASSERT (phySta->GetChannelWidth () == 20);
373  NS_ASSERT (phySta->GetFrequency () == 5200);
374  phySta->SetAttribute ("Frequency", UintegerValue (5179));
375  phySta->SetAttribute ("ChannelNumber", UintegerValue (36));
376  // We expect channel number to be 36
377  NS_ASSERT (phySta->GetChannelNumber () == 36);
378  NS_ASSERT (phySta->GetChannelWidth () == 20);
379  NS_ASSERT (phySta->GetFrequency () == 5180);
380  phySta->SetAttribute ("ChannelNumber", UintegerValue (36));
381  phySta->SetAttribute ("Frequency", UintegerValue (5179));
382  // We expect channel number to be 0
383  NS_ASSERT (phySta->GetChannelNumber () == 0);
384  NS_ASSERT (phySta->GetChannelWidth () == 20);
385  NS_ASSERT (phySta->GetFrequency () == 5179);
386  PrintAttributesIfEnabled (printAttributes);
387  break;
388 
389  default:
390  std::cerr << "Invalid testcase number " << testCase << std::endl;
391  exit (1);
392  break;
393  }
394 
395  // No need to Simulator::Run (); this is a configuration example
397 }
ERP-OFDM PHY (Clause 19, Section 19.5)
Introspection did not find any typical Config paths.
Definition: config-store.h:59
Ptr< NetDevice > Get(uint32_t i) const
Get the Ptr<NetDevice> stored in this container at a given index.
OFDM PHY for the 5 GHz band (Clause 17 with 5 MHz channel bandwidth)
bool DefineChannelNumber(uint8_t channelNumber, WifiPhyStandard standard, uint16_t frequency, uint16_t channelWidth)
Add a channel definition to the WifiPhy.
Definition: wifi-phy.cc:1122
AttributeValue implementation for Boolean.
Definition: boolean.h:36
HT PHY for the 5 GHz band (clause 20)
Hold variables of type string.
Definition: string.h:41
Make it easy to create and manage PHY objects for the yans model.
static YansWifiChannelHelper Default(void)
Create a channel helper in a default working state.
void Set(std::string path, const AttributeValue &value)
Definition: config.cc:805
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file...
Definition: assert.h:67
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition: log.h:204
OFDM PHY for the 5 GHz band (Clause 17 with 10 MHz channel bandwidth)
void PrintAttributesIfEnabled(bool enabled)
cmd
Definition: second.py:35
HT PHY for the 2.4 GHz band (clause 20)
static YansWifiPhyHelper Default(void)
Create a phy helper in a default working state.
helps to create WifiNetDevice objects
Definition: wifi-helper.h:299
channel
Definition: third.py:85
phy
Definition: third.py:86
uint16_t GetChannelWidth(void) const
Definition: wifi-phy.cc:1357
AttributeValue implementation for Time.
Definition: nstime.h:1124
Hold an unsigned integer type.
Definition: uinteger.h:44
ssid
Definition: third.py:93
holds a vector of ns3::NetDevice pointers
Hold together all Wifi-related objects.
wifiApNode
Definition: third.py:83
Parse command-line arguments.
Definition: command-line.h:213
static void Destroy(void)
Execute the events scheduled with ScheduleDestroy().
Definition: simulator.cc:134
This is intended to be the configuration used in this paper: Gavin Holland, Nitin Vaidya and Paramvir...
Ptr< T > GetObject(void) const
Get a pointer to the requested aggregated Object.
Definition: object.h:459
Ptr< WifiPhy > GetPhy(void) const
Every class exported by the ns3 library is enclosed in the ns3 namespace.
keep track of a set of node pointers.
uint16_t GetFrequency(void) const
Definition: wifi-phy.cc:1337
802.11 PHY layer modelThis PHY implements a model of 802.11a.
Definition: yans-wifi-phy.h:47
DSSS PHY (Clause 15) and HR/DSSS PHY (Clause 18)
Ptr< YansWifiPhy > GetYansWifiPhyPtr(const NetDeviceContainer &nc)
manage and create wifi channel objects for the yans model.
uint8_t GetChannelNumber(void) const
Return current channel number.
Definition: wifi-phy.cc:1509
create MAC layers for a ns3::WifiNetDevice.
The IEEE 802.11 SSID Information Element.
Definition: ssid.h:35
virtual void SetType(std::string type, std::string n0="", const AttributeValue &v0=EmptyAttributeValue(), std::string n1="", const AttributeValue &v1=EmptyAttributeValue(), std::string n2="", const AttributeValue &v2=EmptyAttributeValue(), std::string n3="", const AttributeValue &v3=EmptyAttributeValue(), std::string n4="", const AttributeValue &v4=EmptyAttributeValue(), std::string n5="", const AttributeValue &v5=EmptyAttributeValue(), std::string n6="", const AttributeValue &v6=EmptyAttributeValue(), std::string n7="", const AttributeValue &v7=EmptyAttributeValue(), std::string n8="", const AttributeValue &v8=EmptyAttributeValue(), std::string n9="", const AttributeValue &v9=EmptyAttributeValue(), std::string n10="", const AttributeValue &v10=EmptyAttributeValue())
wifi
Definition: third.py:89
void ConfigureAttributes(void)
Configure the attribute values.
AttributeValue implementation for Ssid.
Definition: ssid.h:110
void SetDefault(std::string name, const AttributeValue &value)
Definition: config.cc:810
Ptr< Node > Get(uint32_t i) const
Get the Ptr<Node> stored in this container at a given index.
Time MicroSeconds(uint64_t value)
Construct a Time in the indicated unit.
Definition: nstime.h:1078
void Create(uint32_t n)
Create n nodes and append pointers to them to the end of this NodeContainer.
void SetAttribute(std::string name, const AttributeValue &value)
Set a single attribute, raising fatal errors if unsuccessful.
Definition: object-base.cc:185