src/wifi/model/regular-wifi-mac.h
changeset 10459 f2e90c12a44f
parent 10424 9d29c9a5ddcb
child 10483 e3a02ed14587
equal deleted inserted replaced
10458:20987b07dbd4 10459:f2e90c12a44f
   256   and a pointer to the corresponding channel access function */
   256   and a pointer to the corresponding channel access function */
   257   typedef std::map<AcIndex, Ptr<EdcaTxopN> > EdcaQueues;
   257   typedef std::map<AcIndex, Ptr<EdcaTxopN> > EdcaQueues;
   258   /** This is a map from Access Category index to the corresponding
   258   /** This is a map from Access Category index to the corresponding
   259   channel access function */
   259   channel access function */
   260   EdcaQueues m_edca;
   260   EdcaQueues m_edca;
       
   261 
       
   262   /** Accessor for the DCF object */
       
   263   Ptr<DcaTxop> GetDcaTxop (void) const;
       
   264 
       
   265   /** Accessor for the AC_VO channel access function */
       
   266   Ptr<EdcaTxopN> GetVOQueue (void) const;
       
   267   /** Accessor for the AC_VI channel access function */
       
   268   Ptr<EdcaTxopN> GetVIQueue (void) const;
       
   269   /** Accessor for the AC_BE channel access function */
       
   270   Ptr<EdcaTxopN> GetBEQueue (void) const;
       
   271   /** Accessor for the AC_BK channel access function */
       
   272   Ptr<EdcaTxopN> GetBKQueue (void) const;
   261 
   273 
   262   /**
   274   /**
   263    * \param standard the phy standard to be used
   275    * \param standard the phy standard to be used
   264    *
   276    *
   265    * This method is called by ns3::WifiMac::ConfigureStandard to
   277    * This method is called by ns3::WifiMac::ConfigureStandard to
   406    *
   418    *
   407    * \param ac the Access Category index of the queue to initialise.
   419    * \param ac the Access Category index of the queue to initialise.
   408    */
   420    */
   409   void SetupEdcaQueue (enum AcIndex ac);
   421   void SetupEdcaQueue (enum AcIndex ac);
   410 
   422 
   411   /**
       
   412    * Return the DCF.
       
   413    *
       
   414    * \return a DCF instance
       
   415    */
       
   416   Ptr<DcaTxop> GetDcaTxop (void) const;
       
   417 
       
   418   /**
       
   419    * Return the EDCAF instance for the voice access class.
       
   420    *
       
   421    * \return a AC_VO EDCAF instance
       
   422    */
       
   423   Ptr<EdcaTxopN> GetVOQueue (void) const;
       
   424   /**
       
   425    * Return the EDCAF instance for the video access class.
       
   426    *
       
   427    * \return a AC_VI EDCAF instance
       
   428    */
       
   429   Ptr<EdcaTxopN> GetVIQueue (void) const;
       
   430   /**
       
   431    * Return the EDCAF instance for the best effort access class.
       
   432    *
       
   433    * \return a AC_BE EDCAF instance
       
   434    */
       
   435   Ptr<EdcaTxopN> GetBEQueue (void) const;
       
   436   /**
       
   437    * Return the EDCAF instance for the background access class.
       
   438    *
       
   439    * \return a AC_BK EDCAF instance
       
   440    */
       
   441   Ptr<EdcaTxopN> GetBKQueue (void) const;
       
   442 
       
   443   TracedCallback<const WifiMacHeader &> m_txOkCallback;
   423   TracedCallback<const WifiMacHeader &> m_txOkCallback;
   444   TracedCallback<const WifiMacHeader &> m_txErrCallback;
   424   TracedCallback<const WifiMacHeader &> m_txErrCallback;
   445 };
   425 };
   446 
   426 
   447 } // namespace ns3
   427 } // namespace ns3