![]() |
User Manual, Developers Guide and API Documentation |
![]() |
00001 /****************************************************************************** 00002 * WiMeMac * 00003 * This file is part of openWNS (open Wireless Network Simulator) 00004 * _____________________________________________________________________________ 00005 * 00006 * Copyright (C) 2004-2011 00007 * Chair of Communication Networks (ComNets) 00008 * Kopernikusstr. 5, 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 WIMEMAC_MANAGEMENT_PROTOCOLCALCULATORPLUGINS_DURATION_HPP 00030 #define WIMEMAC_MANAGEMENT_PROTOCOLCALCULATORPLUGINS_DURATION_HPP 00031 00032 #include <WIMEMAC/management/protocolCalculatorPlugins/FrameLength.hpp> 00033 #include <WIMEMAC/convergence/PhyMode.hpp> 00034 00035 #include <WNS/pyconfig/View.hpp> 00036 #include <WNS/simulator/Time.hpp> 00037 00038 00039 namespace wimemac { namespace management { 00040 class ProtocolCalculator; 00041 }} 00042 00043 namespace wimemac { namespace management { namespace protocolCalculatorPlugins { 00052 class Duration 00053 { 00054 public: 00055 Duration( wimemac::management::protocolCalculatorPlugins::FrameLength* fl_, const wns::pyconfig::View& config ); 00056 00057 virtual ~Duration() {}; 00058 00059 wns::simulator::Time 00060 PPDU(Bit psduLength, const wimemac::convergence::PhyMode& pm) const; 00061 00062 wns::simulator::Time 00063 PSDU(Bit psduLength, const wimemac::convergence::PhyMode& pm) const; 00064 00065 wns::simulator::Time 00066 preamble(const wimemac::convergence::PhyMode& pm) const; 00067 00068 wns::simulator::Time 00069 MSDU_PPDU(Bit msduFrameSize, const wimemac::convergence::PhyMode& pm) const; 00070 00071 wns::simulator::Time 00072 MSDU_PSDU(Bit msduFrameSize, const wimemac::convergence::PhyMode& pm) const; 00073 00074 wns::simulator::Time 00075 PSDU_PPDU(Bit psduFrameSize, const wimemac::convergence::PhyMode& pm) const; 00076 00077 const wns::simulator::Time tsym; 00078 00079 private: 00080 const wimemac::management::protocolCalculatorPlugins::FrameLength* fl; 00081 00082 00083 }; 00084 } // protocolCalculatorPlugins 00085 } // management 00086 } // wimemac 00087 00088 #endif
1.5.5