⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 asyncsnrdecider.h

📁 基于omnet++开发的Mf框架下的802.11协议仿真。
💻 H
字号:
/* -*- mode:c++ -*- ********************************************************
 * file:        AsyncSnrDecider.h
 *
 * author:      Yupeng.hu
 *
 * copyright:   (C) 2006 HUNAN Universtiy, ChangSha China
 *
 ***************************************************************************
 * part of:     Async Simulation
 * description: - Async Description
 *
 ***************************************************************************
 * changelog:   $Revision$
 *              last modified:   $Date: 2006-7-3 10:21 $
 *              by:              $Author: Yupeng.hu $
 ***************************************************************************/


#ifndef SYNCSNR_DECIDER_H
#define SYNCSNR_DECIDER_H

#include <BasicDecider.h>

/**
   \brief a simple snr decider...

   This decider simply takes a look at the sduList contained in the
   received PhySDU packet and checks whether one of the mentioned snr
   levels is lower than the snrThresholdLevel which has to be read in at
   the beginning of a simulation. (suggestion: from the omnetpp.ini
   file!)

   
*/
class AsyncSnrDecider : public BasicDecider {

    Module_Class_Members( AsyncSnrDecider, BasicDecider, 0 );

 protected:
    /**
       \brief Level for decision

       When a packet contains an snr level lower than
       snrThresholdLevel it will be considered as lost. This
       parameter has to be specified in the beginning of a simulation
       (omnetpp.ini) in dBm.
    */
    double snrThresholdLevel; /** \brief in mW */

 public:
    virtual void initialize(int);

 protected:
    bool snrOverThreshold(SnrList &) const;
    virtual void handleLowerMsg(AirFrame*, SnrList &);
};

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -