asyncsnrdecider.h

来自「基于omnet++开发的Mf框架下的802.11协议仿真。」· C头文件 代码 · 共 59 行

H
59
字号
/* -*- 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 + =
减小字号Ctrl + -
显示快捷键?