![]() |
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 __IDVECTORCACHE_HPP 00029 #define __IDVECTORCACHE_HPP 00030 00031 #include <RISE/transceiver/cache/propagationcache.hpp> 00032 00033 #include <WNS/container/FastList.hpp> 00034 #include <WNS/PowerRatio.hpp> 00035 00036 #include <vector> 00037 #include <stdint.h> 00038 00039 namespace rise { 00040 class PropCacheEntry; 00042 00045 class IdVectorCache : public PropagationCache { 00046 public: 00048 IdVectorCache(receiver::ReceiverInterface* r); 00050 virtual ~IdVectorCache(); 00051 00056 wns::Ratio getLoss(Transmitter* t, double frequency); 00057 00062 void invalidatePropagationEntries(Transmitter* t); 00066 void invalidatePropagationEntries(); 00067 00068 private: 00069 typedef wns::container::FastList<Transmitter*> TransmitterContainer; 00070 typedef TransmitterContainer::iterator TransmitterIterator; 00071 00073 typedef std::vector<PropCacheEntry> CacheVector; 00075 00080 CacheVector pathlossShadowGain; 00082 TransmitterContainer transmitters; 00086 void attach(Transmitter* t, unsigned long int tId); 00087 }; 00088 } 00089 00090 #endif 00091 00092
1.5.5