![]() |
User Manual, Developers Guide and API Documentation |
![]() |
00001 /******************************************************************************* 00002 * This file is part of openWNS (open Wireless Network Simulator) 00003 * _____________________________________________________________________________ 00004 * 00005 * Copyright (C) 2004-2007 00006 * Chair of Communication Networks (ComNets) 00007 * Kopernikusstr. 5, D-52074 Aachen, Germany 00008 * phone: ++49-241-80-27910, 00009 * fax: ++49-241-80-22242 00010 * email: info@openwns.org 00011 * www: http://www.openwns.org 00012 * _____________________________________________________________________________ 00013 * 00014 * openWNS is free software; you can redistribute it and/or modify it under the 00015 * terms of the GNU Lesser General Public License version 2 as published by the 00016 * Free Software Foundation; 00017 * 00018 * openWNS is distributed in the hope that it will be useful, but WITHOUT ANY 00019 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 00020 * A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 00021 * details. 00022 * 00023 * You should have received a copy of the GNU Lesser General Public License 00024 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00025 * 00026 ******************************************************************************/ 00027 00028 #ifndef OFDMAPHY_RECEIVER_OFDMAASPECT_HPP 00029 #define OFDMAPHY_RECEIVER_OFDMAASPECT_HPP 00030 00031 #include <OFDMAPHY/receiver/ReceiverBase.hpp> 00032 00033 #include <RISE/receiver/MultiCarrier.hpp> 00034 #include <RISE/receiver/ReceiverInterface.hpp> 00035 00036 #include <WNS/PowerRatio.hpp> 00037 00038 #include <vector> 00039 00040 namespace rise { namespace medium { 00041 class PhysicalResource; 00042 } // medium 00043 } // rise 00044 00045 namespace ofdmaphy { namespace receiver { 00049 class OFDMAAspect : 00050 virtual public ReceiverBase, 00051 virtual public rise::receiver::ReceiverInterface, 00052 virtual public rise::receiver::MultiCarrierAspect 00053 { 00054 typedef std::vector<rise::medium::PhysicalResource*> PhysicalResourceContainer; 00055 00056 public: 00057 OFDMAAspect(wns::Ratio rnf); 00058 00060 virtual void 00061 tune(double f, double b, int numberOfSubCarriers); 00062 00064 virtual wns::Power 00065 getNoisePerSubChannel() const; 00066 00068 virtual wns::Power 00069 getNoise(int subCarrier) const; 00070 00072 wns::Ratio 00073 getNoiseFigure() const; 00074 00076 virtual int 00077 getSubCarrierIndex(double f); 00078 00079 protected: 00081 PhysicalResourceContainer physicalResources; 00082 00084 int 00085 getCurrentNumberOfSubCarriers() const 00086 { return currentNumberOfSubCarriers; } 00087 00088 private: 00090 wns::Ratio receiverNoiseFigure; 00091 00093 int currentNumberOfSubCarriers; 00094 00096 double carrierBandwidth; 00097 double lowestFrequency; 00098 double firstCarrierMidFrequency; 00099 }; 00100 00101 } 00102 } 00103 00104 #endif // not defined __RISE_OFDMA_HPP 00105 00106 00107
1.5.5