src/wifi/doc/wifi.rst
changeset 7665 a9d19a94df20
parent 7332 5ff75a2fe637
child 9136 96b16f69f91b
equal deleted inserted replaced
7664:c71211df3a90 7665:a9d19a94df20
   156 
   156 
   157 to get the defaults.  Note the distinction above in creating a helper object vs.
   157 to get the defaults.  Note the distinction above in creating a helper object vs.
   158 an actual simulation object.  In |ns3|, helper objects (used at the helper API
   158 an actual simulation object.  In |ns3|, helper objects (used at the helper API
   159 only) are created on the stack (they could also be created with operator new and
   159 only) are created on the stack (they could also be created with operator new and
   160 later deleted).  However, the actual |ns3| objects typically inherit from 
   160 later deleted).  However, the actual |ns3| objects typically inherit from 
   161 ``class ns3::Object`` and are assigned to a smart pointer.  See the chapter on
   161 ``class ns3::Object`` and are assigned to a smart pointer.  See the chapter in
   162 :ref:`Object model` for a discussion of the |ns3| object model, if you are not
   162 the |ns3| manual for a discussion of the |ns3| object model, if you are not
   163 familiar with it.
   163 familiar with it.
   164 
   164 
   165 *Todo: Add notes about how to configure attributes with this helper API*
   165 *Todo: Add notes about how to configure attributes with this helper API*
   166 
   166 
   167 YansWifiPhyHelper
   167 YansWifiPhyHelper
   241   NetDeviceContainer wifiContainer = WifiHelper::Install (wifiPhyHelper, wifiMacHelper, c);
   241   NetDeviceContainer wifiContainer = WifiHelper::Install (wifiPhyHelper, wifiMacHelper, c);
   242 
   242 
   243 This creates the WifiNetDevice which includes also a WifiRemoteStationManager, a
   243 This creates the WifiNetDevice which includes also a WifiRemoteStationManager, a
   244 WifiMac, and a WifiPhy (connected to the matching WifiChannel).
   244 WifiMac, and a WifiPhy (connected to the matching WifiChannel).
   245 
   245 
   246 There are many |ns3| :ref:`Attributes` that can be set on the above helpers to
   246 There are many |ns3| attributes that can be set on the above helpers to
   247 deviate from the default behavior; the example scripts show how to do some of
   247 deviate from the default behavior; the example scripts show how to do some of
   248 this reconfiguration.
   248 this reconfiguration.
   249 
   249 
   250 AdHoc WifiNetDevice configuration 
   250 AdHoc WifiNetDevice configuration 
   251 +++++++++++++++++++++++++++++++++
   251 +++++++++++++++++++++++++++++++++
   266 **********************************
   266 **********************************
   267 
   267 
   268 The WifiChannel subclass can be used to connect together a set of
   268 The WifiChannel subclass can be used to connect together a set of
   269 ``ns3::WifiNetDevice`` network interfaces. The class ``ns3::WifiPhy`` is the
   269 ``ns3::WifiNetDevice`` network interfaces. The class ``ns3::WifiPhy`` is the
   270 object within the WifiNetDevice that receives bits from the channel.  
   270 object within the WifiNetDevice that receives bits from the channel.  
   271 For the channel propagation modeling, the propagation module is used; see section :ref:`propagation` for details.
   271 For the channel propagation modeling, the propagation module is used; see section :ref:`Propagation` for details.
   272 
   272 
   273 
   273 
   274 This section summarizes the description of the BER calculations found in the
   274 This section summarizes the description of the BER calculations found in the
   275 yans paper taking into account the Forward Error Correction present in 802.11a
   275 yans paper taking into account the Forward Error Correction present in 802.11a
   276 and describes the algorithm we implemented to decide whether or not a packet can
   276 and describes the algorithm we implemented to decide whether or not a packet can