|
|
| 31 |
#include "ns3/nstime.h" |
31 |
#include "ns3/nstime.h" |
| 32 |
#include "ns3/ptr.h" |
32 |
#include "ns3/ptr.h" |
| 33 |
#include "ns3/random-variable-stream.h" |
33 |
#include "ns3/random-variable-stream.h" |
|
|
34 |
#include "ns3/mobility-model.h" |
| 34 |
#include "wifi-phy.h" |
35 |
#include "wifi-phy.h" |
| 35 |
#include "wifi-mode.h" |
36 |
#include "wifi-mode.h" |
| 36 |
#include "wifi-preamble.h" |
37 |
#include "wifi-preamble.h" |
|
|
| 195 |
* |
196 |
* |
| 196 |
* \param device the device this PHY is associated with |
197 |
* \param device the device this PHY is associated with |
| 197 |
*/ |
198 |
*/ |
| 198 |
void SetDevice (Ptr<Object> device); |
199 |
void SetDevice (Ptr<NetDevice> device); |
| 199 |
/** |
200 |
/** |
| 200 |
* Sets the mobility model. |
201 |
* \brief assign a mobility model to this device |
|
|
202 |
* |
| 203 |
* This method allows a user to specify a mobility model that should be |
| 204 |
* associated with this physical layer. Calling this method is optional |
| 205 |
* and only necessary if the user wants to override the mobility model |
| 206 |
* that is aggregated to the node. |
| 201 |
* |
207 |
* |
| 202 |
* \param mobility the mobility model this PHY is associated with |
208 |
* \param mobility the mobility model this PHY is associated with |
| 203 |
*/ |
209 |
*/ |
| 204 |
void SetMobility (Ptr<Object> mobility); |
210 |
void SetMobility (Ptr<MobilityModel> mobility); |
| 205 |
/** |
211 |
/** |
| 206 |
* Return the RX noise figure (dBm). |
212 |
* Return the RX noise figure (dBm). |
| 207 |
* |
213 |
* |
|
|
| 243 |
* |
249 |
* |
| 244 |
* \return the device this PHY is associated with |
250 |
* \return the device this PHY is associated with |
| 245 |
*/ |
251 |
*/ |
| 246 |
Ptr<Object> GetDevice (void) const; |
252 |
Ptr<NetDevice> GetDevice (void) const; |
| 247 |
/** |
253 |
/** |
| 248 |
* Return the mobility model this PHY is associated with. |
254 |
* Return the mobility model this PHY is associated with. |
|
|
255 |
* This method will return either the mobility model that has been |
| 256 |
* explicitly set by a call to YansWifiPhy::SetMobility(), or else |
| 257 |
* will return the mobility model (if any) that has been aggregated |
| 258 |
* to the node. |
| 249 |
* |
259 |
* |
| 250 |
* \return the mobility model this PHY is associated with |
260 |
* \return the mobility model this PHY is associated with |
| 251 |
*/ |
261 |
*/ |
| 252 |
Ptr<Object> GetMobility (void); |
262 |
Ptr<MobilityModel> GetMobility (void); |
| 253 |
|
263 |
|
| 254 |
/** |
264 |
/** |
| 255 |
* Return the minimum available transmission power level (dBm). |
265 |
* Return the minimum available transmission power level (dBm). |
|
|
| 496 |
|
506 |
|
| 497 |
Ptr<YansWifiChannel> m_channel; //!< YansWifiChannel that this YansWifiPhy is connected to |
507 |
Ptr<YansWifiChannel> m_channel; //!< YansWifiChannel that this YansWifiPhy is connected to |
| 498 |
uint16_t m_channelNumber; //!< Operating channel number |
508 |
uint16_t m_channelNumber; //!< Operating channel number |
| 499 |
Ptr<Object> m_device; //!< Pointer to the device |
509 |
Ptr<NetDevice> m_device; //!< Pointer to the device |
| 500 |
Ptr<Object> m_mobility; //!< Pointer to the mobility model |
510 |
Ptr<MobilityModel> m_mobility; //!< Pointer to the mobility model |
| 501 |
|
511 |
|
| 502 |
uint32_t m_numberOfTransmitters; //!< Number of transmitters |
512 |
uint32_t m_numberOfTransmitters; //!< Number of transmitters |
| 503 |
uint32_t m_numberOfReceivers; //!< Number of receivers |
513 |
uint32_t m_numberOfReceivers; //!< Number of receivers |