User Manual, Developers Guide and API Documentation

RANG.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 LTE_MAIN_RANG_HPP
00029 #define LTE_MAIN_RANG_HPP
00030 
00031 #include <LTE/main/IRANG.hpp>
00032 #include <LTE/main/Layer2.hpp>
00033 #include <LTE/helper/TransactionID.hpp>
00034 
00035 #include <DLL/RANG.hpp>
00036 #include <DLL/Layer2.hpp>
00037 #include <DLL/StationManager.hpp>
00038 
00039 #include <WNS/service/dll/FlowID.hpp>
00040 #include <WNS/ldk/fun/Main.hpp>
00041 #include <WNS/module/Base.hpp>
00042 #include <WNS/logger/Logger.hpp>
00043 #include <WNS/node/component/Component.hpp>
00044 #include <WNS/events/PeriodicTimeout.hpp>
00045 #include <WNS/container/Registry.hpp>
00046 #include <WNS/container/Pool.hpp>
00047 
00048 namespace lte {
00049     namespace upperconvergence{
00050     class ENBUpperConvergence;
00051     }
00052     namespace main {
00053 
00054     class RANG :
00055         public dll::RANG,
00056         public rang::IFlowManagement
00057     {
00058     public:
00059         RANG(wns::node::Interface*, const wns::pyconfig::View&);
00060         
00061         virtual ~RANG(){};
00062 
00065         virtual void
00066         sendData(
00067              const wns::service::dll::UnicastAddress& _peer,
00068              const wns::osi::PDUPtr& _data,
00069              wns::service::dll::protocolNumber protocol,
00070              wns::service::dll::FlowID _dllFlowID);
00071 
00072         wns::service::dll::FlowID
00073         onFlowRequest(lte::helper::TransactionID _transactionId,
00074               lte::upperconvergence::ENBUpperConvergence* _bsUpperConvergence,
00075               wns::service::dll::UnicastAddress utAddress);
00076 
00077         void
00078         onFlowRelease(wns::service::dll::FlowID flowID);
00079 
00080         void
00081         registerIRuleControl(wns::service::dll::IRuleControl*);
00082 
00083         void
00084         deleteFlow(wns::service::dll::FlowID flowID);
00085 
00086     private:
00087         typedef wns::container::Registry<wns::service::dll::FlowID, wns::service::dll::UnicastAddress> FlowIDTable;
00088 
00089         wns::pyconfig::View config;
00090 
00091         wns::logger::Logger logger;
00092         
00093         wns::container::Pool<int> flowIDPool;
00094 
00095         wns::service::dll::IRuleControl* ruleControl;
00096 
00097         // saves FlowIDs to Basestation mapping
00098         wns::container::Registry<wns::service::dll::FlowID, lte::upperconvergence::ENBUpperConvergence*> FlowIDToBS;
00099 
00100         FlowIDTable flowIDForUT;
00101     };
00102   }
00103 }
00104 
00105 #endif // LTE_MAIN_RANG_HPP

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