User Manual, Developers Guide and API Documentation

transmissionobjectbf.hpp

Go to the documentation of this file.
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 _TRANSMISSIONOBJECTBF_HPP
00029 #define _TRANSMISSIONOBJECTBF_HPP
00030 
00031 #include <RISE/transmissionobjects/unicasttransmissionobject.hpp>
00032 #include <RISE/antenna/Beamforming.hpp>
00033 
00034 namespace rise { namespace antenna {
00035         class Beamforming;
00036 }
00037 }
00038 
00039 namespace rise
00040 {
00042     class TransmissionObjectBF :
00043         virtual public UnicastTransmissionObject
00044     {
00045     public:
00047         TransmissionObjectBF(Transmitter* _transmitter,
00048                              receiver::ReceiverInterface* _aReceiver,
00049                              wns::Power _txPower,
00050                              rise::antenna::PatternPtr _pattern,
00051                              unsigned long int _linkMode = 0,
00052                              int numberOfSpatialStreams = 1);
00053 
00055         TransmissionObjectBF(Transmitter* _transmitter,
00056                              receiver::ReceiverInterface* _aReceiver,
00057                              antenna::Beamforming* _antennaBF,
00058                              wns::osi::PDUPtr _payload,
00059                              wns::Power _txPower,
00060                              rise::antenna::PatternPtr _pattern,
00061                              unsigned long int _linkMode = 0,
00062                              int numberOfSpatialStreams = 1);
00063 
00065         TransmissionObjectBF(Transmitter* _transmitter,
00066                              receiver::ReceiverInterface* _aReceiver,
00067                              wns::Power _txPower,
00068                              const wns::service::phy::phymode::PhyModeInterfacePtr _phyModePtr,
00069                              rise::antenna::PatternPtr _pattern,
00070                              unsigned long int _linkMode = 0);
00071 
00073         TransmissionObjectBF(Transmitter* _transmitter,
00074                              receiver::ReceiverInterface* _aReceiver,
00075                              antenna::Beamforming* _antennaBF,
00076                              wns::osi::PDUPtr _payload,
00077                              wns::Power _txPower,
00078                              const wns::service::phy::phymode::PhyModeInterfacePtr _phyModePtr,
00079                              rise::antenna::PatternPtr _pattern,
00080                              unsigned long int _linkMode = 0);
00081 
00083         virtual ~TransmissionObjectBF();
00084 
00085         virtual wns::Ratio getTransmittersAntennaGain(const wns::Position& receiverPosition) const;
00086 
00087     private:
00088         antenna::Beamforming* antennaBF;
00089         rise::antenna::PatternPtr pattern;
00090     };
00091 }
00092 
00093 #endif

Generated on Sun May 27 03:31:58 2012 for openWNS by  doxygen 1.5.5