|
INET Framework for OMNeT++/OMNEST
|
00001 /*************************************************************************** 00002 * file: Decider80211.h 00003 * 00004 * authors: David Raguin / Marc Loebbers 00005 * 00006 * copyright: (C) 2004 Telecommunication Networks Group (TKN) at 00007 * Technische Universitaet Berlin, Germany. 00008 * 00009 * This program is free software; you can redistribute it 00010 * and/or modify it under the terms of the GNU General Public 00011 * License as published by the Free Software Foundation; either 00012 * version 2 of the License, or (at your option) any later 00013 * version. 00014 * For further information see file COPYING 00015 * in the top level directory 00016 *************************************************************************** 00017 * part of: framework implementation developed by tkn 00018 **************************************************************************/ 00019 00020 00021 #ifndef DECIDER_80211_H 00022 #define DECIDER_80211_H 00023 00024 #include <omnetpp.h> 00025 00026 #include <BasicDecider.h> 00027 00042 class INET_API Decider80211 : public BasicDecider 00043 { 00044 protected: 00046 virtual void initialize(int); 00047 00052 virtual void handleLowerMsg(AirFrame*, SnrList&); 00053 00055 double dB2fraction(double); 00056 00058 virtual bool isPacketOK(double, int); 00059 00060 protected: 00062 double bitrate; 00066 double snirThreshold; 00067 00068 }; 00069 #endif 00070 00071