User Manual, Developers Guide and API Documentation

StationForwarding.hpp

Go to the documentation of this file.
00001 /******************************************************************************
00002  * WiFiMac                                                                    *
00003  * This file is part of openWNS (open Wireless Network Simulator)
00004  * _____________________________________________________________________________
00005  *
00006  * Copyright (C) 2004-2007
00007  * Chair of Communication Networks (ComNets)
00008  * Kopernikusstr. 16, D-52074 Aachen, Germany
00009  * phone: ++49-241-80-27910,
00010  * fax: ++49-241-80-22242
00011  * email: info@openwns.org
00012  * www: http://www.openwns.org
00013  * _____________________________________________________________________________
00014  *
00015  * openWNS is free software; you can redistribute it and/or modify it under the
00016  * terms of the GNU Lesser General Public License version 2 as published by the
00017  * Free Software Foundation;
00018  *
00019  * openWNS is distributed in the hope that it will be useful, but WITHOUT ANY
00020  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
00021  * A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
00022  * details.
00023  *
00024  * You should have received a copy of the GNU Lesser General Public License
00025  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00026  *
00027  ******************************************************************************/
00028 
00029 #ifndef WIFIMAC_PATHSELECTION_STATIONFORWARDING_HPP
00030 #define WIFIMAC_PATHSELECTION_STATIONFORWARDING_HPP
00031 
00032 #include <WIFIMAC/Layer2.hpp>
00033 #include <WIFIMAC/pathselection/ForwardingCommand.hpp>
00034 #include <WIFIMAC/pathselection/IPathSelection.hpp>
00035 
00036 #include <WNS/ldk/ManagementServiceInterface.hpp>
00037 #include <WNS/logger/Logger.hpp>
00038 #include <WNS/ldk/fu/Plain.hpp>
00039 #include <WNS/service/dll/Address.hpp>
00040 
00041 #include <DLL/UpperConvergence.hpp>
00042 
00043 
00044 namespace wifimac { namespace pathselection {
00045 
00052     class StationForwarding :
00053         public wns::ldk::fu::Plain<StationForwarding, ForwardingCommand>
00054     {
00055     public:
00057         StationForwarding(wns::ldk::fun::FUN* fun, const wns::pyconfig::View& config);
00058 
00060         virtual
00061         ~StationForwarding();
00062 
00063     private:
00065         virtual bool
00066         doIsAccepting(const wns::ldk::CompoundPtr& _compound) const;
00067 
00070         virtual void doSendData(const wns::ldk::CompoundPtr& _compound);
00071 
00073         virtual void
00074         doWakeup();
00075 
00077         virtual void
00078         doOnData(const wns::ldk::CompoundPtr& _compound);
00079 
00081         virtual void onFUNCreated();
00082 
00084         const wns::pyconfig::View config;
00085 
00087         wns::logger::Logger logger;
00088 
00090         const std::string ucName;
00091 
00093         wifimac::Layer2* layer2;
00094     };
00095 } // mac
00096 } // wifimac
00097 
00098 #endif // WIFIMAC_SCHEDULER_HPP

Generated on Sat May 26 03:32:10 2012 for openWNS by  doxygen 1.5.5