![]() |
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 LTE_CONTROLPLANE_FLOWMANAGEMENT_FLOWHANDLER_FLOWHANDLERBS_HPP 00029 #define LTE_CONTROLPLANE_FLOWMANAGEMENT_FLOWHANDLER_FLOWHANDLERBS_HPP 00030 00031 #include <LTE/controlplane/flowmanagement/flowhandler/FlowHandler.hpp> 00032 #include <LTE/helper/TransactionID.hpp> 00033 00034 #include <WNS/Cloneable.hpp> 00035 #include <WNS/service/dll/Address.hpp> 00036 00037 00038 namespace lte { 00039 00040 namespace controlplane { 00041 00042 namespace flowmanagement { 00043 class FlowManagerBS; 00044 00045 namespace flowhandler { 00046 00047 class FlowHandlerBS : 00048 public FlowHandler, 00049 public wns::Cloneable<FlowHandlerBS> 00050 { 00051 public: 00052 FlowHandlerBS(wns::ldk::fun::FUN* fun, const wns::pyconfig::View& config); 00053 virtual ~FlowHandlerBS(){}; 00054 00055 virtual void 00056 onFUNCreated(); 00057 00058 virtual bool 00059 doIsAccepting(const wns::ldk::CompoundPtr& /*compound*/) const 00060 { 00061 return true; 00062 } 00063 00064 virtual void 00065 doOnData(const wns::ldk::CompoundPtr& compound); 00066 00067 void 00068 flowConfirm(lte::helper::TransactionID _transactionId, 00069 wns::service::dll::FlowID _flowID, 00070 wns::service::dll::UnicastAddress _utAddress); 00071 00072 private: 00073 void 00074 createFlow_conf(lte::helper::TransactionID _transactionId, 00075 wns::service::dll::UnicastAddress _destination, 00076 wns::service::dll::FlowID _flowID, 00077 wns::service::dll::UnicastAddress _utAddress); 00078 00079 void 00080 createFlowReleaseAck(wns::service::dll::FlowID _flowID); 00081 00082 wns::ldk::fun::FUN* fun; 00083 dll::ILayer2* bsLayer2; 00084 lte::controlplane::flowmanagement::FlowManagerBS* flowManagerBS; 00085 wns::container::Registry<lte::helper::TransactionID, wns::service::dll::UnicastAddress> TransactionIDToDestination; 00086 wns::container::Registry<wns::service::dll::FlowID, wns::service::dll::UnicastAddress> FlowIDInToDestIn; 00087 }; 00088 } //flowHandler 00089 } //flowmanagement 00090 } //controlplane 00091 } //lte 00092 00093 #endif // LTE_CONTROLPLANE_FLOWMANAGEMENT_FLOWHANDLER_FLOWHANDLERBS_HPP
1.5.5