src/wifi/model/yans-wifi-channel.h
changeset 10139 17a71cd49da3
parent 8981 7e1c95c4d1a7
child 10424 9d29c9a5ddcb
equal deleted inserted replaced
10138:2f8e35b43d11 10139:17a71cd49da3
    24 #include <stdint.h>
    24 #include <stdint.h>
    25 #include "ns3/packet.h"
    25 #include "ns3/packet.h"
    26 #include "wifi-channel.h"
    26 #include "wifi-channel.h"
    27 #include "wifi-mode.h"
    27 #include "wifi-mode.h"
    28 #include "wifi-preamble.h"
    28 #include "wifi-preamble.h"
       
    29 #include "wifi-tx-vector.h"
    29 
    30 
    30 namespace ns3 {
    31 namespace ns3 {
    31 
    32 
    32 class NetDevice;
    33 class NetDevice;
    33 class PropagationLossModel;
    34 class PropagationLossModel;
    80    * currently invoked only from WifiPhy::Send. YansWifiChannel
    81    * currently invoked only from WifiPhy::Send. YansWifiChannel
    81    * delivers packets only between PHYs with the same m_channelNumber,
    82    * delivers packets only between PHYs with the same m_channelNumber,
    82    * e.g. PHYs that are operating on the same channel.
    83    * e.g. PHYs that are operating on the same channel.
    83    */
    84    */
    84   void Send (Ptr<YansWifiPhy> sender, Ptr<const Packet> packet, double txPowerDbm,
    85   void Send (Ptr<YansWifiPhy> sender, Ptr<const Packet> packet, double txPowerDbm,
    85              WifiMode wifiMode, WifiPreamble preamble) const;
    86              WifiTxVector txVector, WifiPreamble preamble) const;
    86 
    87 
    87  /**
    88  /**
    88   * Assign a fixed random variable stream number to the random variables
    89   * Assign a fixed random variable stream number to the random variables
    89   * used by this model.  Return the number of streams (possibly zero) that
    90   * used by this model.  Return the number of streams (possibly zero) that
    90   * have been assigned.
    91   * have been assigned.
    98   YansWifiChannel& operator = (const YansWifiChannel &);
    99   YansWifiChannel& operator = (const YansWifiChannel &);
    99   YansWifiChannel (const YansWifiChannel &);
   100   YansWifiChannel (const YansWifiChannel &);
   100 
   101 
   101   typedef std::vector<Ptr<YansWifiPhy> > PhyList;
   102   typedef std::vector<Ptr<YansWifiPhy> > PhyList;
   102   void Receive (uint32_t i, Ptr<Packet> packet, double rxPowerDbm,
   103   void Receive (uint32_t i, Ptr<Packet> packet, double rxPowerDbm,
   103                 WifiMode txMode, WifiPreamble preamble) const;
   104                 WifiTxVector txVector, WifiPreamble preamble) const;
   104 
   105 
   105 
   106 
   106   PhyList m_phyList;
   107   PhyList m_phyList;
   107   Ptr<PropagationLossModel> m_loss;
   108   Ptr<PropagationLossModel> m_loss;
   108   Ptr<PropagationDelayModel> m_delay;
   109   Ptr<PropagationDelayModel> m_delay;