![]() |
User Manual, Developers Guide and API Documentation |
![]() |
00001 /****************************************************************************** 00002 * WiFiMac * 00003 * This file is part of openWNS (open Wireless Network Simulator) 00004 * _____________________________________________________________________________ 00005 * 00006 * Copyright (C) 2004-2007 00007 * Chair of Communication Networks (ComNets) 00008 * Kopernikusstr. 16, D-52074 Aachen, Germany 00009 * phone: ++49-241-80-27910, 00010 * fax: ++49-241-80-22242 00011 * email: info@openwns.org 00012 * www: http://www.openwns.org 00013 * _____________________________________________________________________________ 00014 * 00015 * openWNS is free software; you can redistribute it and/or modify it under the 00016 * terms of the GNU Lesser General Public License version 2 as published by the 00017 * Free Software Foundation; 00018 * 00019 * openWNS is distributed in the hope that it will be useful, but WITHOUT ANY 00020 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 00021 * A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 00022 * details. 00023 * 00024 * You should have received a copy of the GNU Lesser General Public License 00025 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00026 * 00027 ******************************************************************************/ 00028 00029 #ifndef WIFIMAC_MANAGEMENT_PROTOCOLCALCULATORPLUGINS_FRAMELENGTH_HPP 00030 #define WIFIMAC_MANAGEMENT_PROTOCOLCALCULATORPLUGINS_FRAMELENGTH_HPP 00031 00032 // must be the first include! 00033 #include <WNS/Python.hpp> 00034 00035 #include <WIFIMAC/management/protocolCalculatorPlugins/ConfigGetter.hpp> 00036 00037 #include <WNS/pyconfig/View.hpp> 00038 #include <WNS/simulator/Bit.hpp> 00039 00040 namespace wifimac { namespace management { namespace protocolCalculatorPlugins { 00047 class FrameLength 00048 { 00049 public: 00051 FrameLength( const wns::pyconfig::View& config ); 00052 00054 FrameLength( const ConfigGetter& config); 00055 00056 virtual ~FrameLength() {}; 00057 00059 Bit getPSDU(Bit msduFrameSize) const; 00060 00062 Bit getA_MPDU_PSDU(Bit mpduFrameSize, unsigned int n_aggFrames) const; 00063 00065 Bit getA_MPDU_PSDU(const std::vector<Bit>& mpduFrameSize) const; 00066 00068 Bit getA_MSDU_PSDU(Bit msduFrameSize, unsigned int n_aggFrames) const; 00069 00071 Bit getA_MSDU_PSDU(const std::vector<Bit>& msduFrameSize) const; 00072 00073 Bit pad(Bit frameSize, Bit multiple) const; 00074 00075 const Bit macDataHdr; 00076 const Bit macDataFCS; 00077 const Bit amsdu_subhdr; 00078 const Bit ampdu_delimiter; 00079 const Bit service; 00080 const Bit tail; 00081 const Bit ack; 00082 const Bit rts; 00083 const Bit cts; 00084 const Bit blockACK; 00085 const Bit blockACKreq; 00086 const Bit beacon; 00087 00088 }; 00089 } // protocolCalculatorPlugins 00090 } // management 00091 } // wifimac 00092 00093 #endif
1.5.5