![]() |
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_FLOWHANDLERUT_HPP 00029 #define LTE_CONTROLPLANE_FLOWMANAGEMENT_FLOWHANDLERUT_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/events/CanTimeout.hpp> 00036 #include <WNS/service/dll/FlowID.hpp> 00037 00038 namespace lte { 00039 namespace controlplane { 00040 namespace flowmanagement { 00041 class FlowManagerUT; 00042 namespace flowhandler { 00043 class FlowHandlerUT : 00044 public FlowHandler, 00045 public wns::events::CanTimeout, 00046 public wns::Cloneable<FlowHandlerUT> 00047 { 00048 public: 00049 FlowHandlerUT(wns::ldk::fun::FUN* fun, const wns::pyconfig::View& config); 00050 virtual ~FlowHandlerUT(){}; 00051 00052 virtual void 00053 onFUNCreated(); 00054 00055 virtual void 00056 doOnData(const wns::ldk::CompoundPtr& compound); 00057 00058 virtual bool 00059 doIsAccepting(const wns::ldk::CompoundPtr& /*compound*/) const 00060 { 00061 return true; 00062 } 00063 00064 virtual void 00065 onTimeout(); 00066 00067 void 00068 flowReq(lte::helper::TransactionID _transactionId, 00069 wns::service::dll::UnicastAddress _destinationAddress, 00070 wns::service::dll::FlowID oldflowID, 00071 wns::service::qos::QoSClass qosClass); 00072 00073 void 00074 releaseFlow(wns::service::dll::FlowID flowID); 00075 00076 void 00077 createFlow(wns::service::dll::FlowID flowID); 00078 00079 private: 00080 void 00081 createFlow_req(lte::helper::TransactionID _transactionId, 00082 wns::service::dll::UnicastAddress _destinationAddress, 00083 wns::service::dll::FlowID oldflowID, 00084 wns::service::qos::QoSClass qosClass) const; 00085 00086 void 00087 createFlowReleaseReq(wns::service::dll::FlowID flowID); 00088 00089 void 00090 createFlow_ack(wns::service::dll::FlowID _flowID, 00091 wns::service::dll::UnicastAddress _destinationAddress) const; 00092 00093 void 00094 flowReleased(wns::service::dll::FlowID flowID); 00095 00096 double timeout; 00097 std::string commandname; 00098 00099 wns::ldk::fun::FUN* fun; 00100 dll::ILayer2* utLayer2; 00101 lte::controlplane::flowmanagement::FlowManagerUT* flowManagerUT; 00102 wns::container::Registry<wns::service::dll::FlowID, wns::service::dll::UnicastAddress> FlowIDOutToDestOut; 00103 }; 00104 } //flowHandler 00105 } //flowmanagement 00106 } //controlplane 00107 } //lte 00108 00109 #endif // LTE_CONTROLPLANE_FLOWMANAGEMENT_FLOWHANDLERUT_HPP
1.5.5