![]() |
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_MEASUREMENTASPECT_HPP 00029 #define OFDMAPHY_RECEIVER_MEASUREMENTASPECT_HPP 00030 00031 #include <OFDMAPHY/receiver/ReceiverBase.hpp> 00032 00033 #include <RISE/misc/pointer.hpp> 00034 00035 #include <WNS/node/Interface.hpp> 00036 #include <WNS/events/CanTimeout.hpp> 00037 #include <WNS/PowerRatio.hpp> 00038 #include <WNS/pyconfig/View.hpp> 00039 00040 namespace ofdmaphy { namespace receiver { 00041 00042 class FTFadingAspect; 00043 00047 class MeasurementAspect : 00048 virtual public ReceiverBase, 00049 protected wns::events::CanTimeout // regular intervals 00050 { 00051 friend class FTFadingAspect; 00052 00053 public: 00054 MeasurementAspect(const wns::pyconfig::View& config); 00055 virtual ~MeasurementAspect(); 00056 00057 protected: 00058 void 00059 startRegularMeasurementUpdates(); 00060 00062 virtual void 00063 onTimeout(); 00064 00066 virtual void 00067 doMeasurementsNow() = 0; 00068 00069 virtual simTimeType 00070 getMeasurementUpdateInterval() const 00071 { return measurementUpdateInterval; } 00072 00073 virtual void 00074 setMeasurementUpdateInterval(simTimeType _measurementUpdateInterval) 00075 { measurementUpdateInterval=_measurementUpdateInterval; } 00076 00077 virtual simTimeType 00078 getMeasurementUpdateOffset() const 00079 { return measurementUpdateOffset; } 00080 00081 virtual bool 00082 measurementUpdatesAreOn() const 00083 { return doMeasurementUpdates; } 00084 00085 virtual void 00086 registerSource(wns::node::Interface* source); 00087 00088 virtual PerSourceContainer& 00089 getPerSourceContainer(wns::node::Interface* source); 00090 00092 virtual wns::node::Interface* 00093 registerSource(rise::TransmissionObjectPtr t); 00094 00095 virtual void 00096 saveMeasuredFlatPathloss(wns::node::Interface* source, wns::Ratio pathloss); 00097 00099 bool doMeasurementUpdates; 00100 00102 simTimeType measurementUpdateInterval; 00103 simTimeType measurementUpdateOffset; 00104 00105 }; 00106 } 00107 } 00108 00109 #endif // not defined __RISE_OFDMA_HPP 00110 00111 00112
1.5.5