?? asyncsnrdecider.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 + -