![]() |
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_SENDER_HPP 00029 #define OFDMAPHY_SENDER_HPP 00030 00031 #include <OFDMAPHY/Transmitter.hpp> 00032 00033 #include <RISE/antenna/Antenna.hpp> 00034 #include <RISE/stations/station.hpp> 00035 #include <RISE/manager/systemmanager.hpp> 00036 00037 #include <WNS/node/component/Component.hpp> 00038 #include <WNS/logger/Logger.hpp> 00039 00040 namespace ofdmaphy { 00041 00042 class Sender: 00043 public rise::Station, 00044 public wns::node::component::Component 00045 { 00046 typedef rise::BroadcastTransmissionObjectPtr Broadcast; 00047 00048 public: 00049 Sender(wns::node::Interface* node, const wns::pyconfig::View& pyConfigView); 00050 00051 virtual 00052 ~Sender(); 00053 00054 virtual void 00055 onNodeCreated(); 00056 00057 virtual void 00058 onWorldCreated(); 00059 00060 virtual void 00061 onShutdown(); 00062 00063 virtual rise::SystemManager* 00064 getSystemManager() const; 00065 00066 virtual wns::node::Interface* 00067 getMyNode() const; 00068 00069 private: 00070 virtual void 00071 doStartup(); 00072 00073 virtual void 00074 startTransmission(); 00075 00077 virtual void receiveData(wns::osi::PDUPtr, wns::Power, wns::Power, wns::Ratio) 00078 { 00079 } 00080 00081 int subBand; 00082 00083 wns::logger::Logger logger; 00084 rise::SystemManager* systemManager; 00085 Transmitter<Sender>* transmitter; 00086 wns::Power txPower; 00087 }; 00088 } // ofdmaphy 00089 00090 #endif // NOT defined OFDMAPHY_SENDER_HPP 00091 00092
1.5.5