![]() |
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_ASSOCIATIONHANDLER_ASSOCIATIONHANDLERAP_HPP 00029 #define LTE_CONTROLPLANE_ASSOCIATIONHANDLER_ASSOCIATIONHANDLERAP_HPP 00030 00031 #include <LTE/controlplane/associationHandler/AssociationHandler.hpp> 00032 #include <LTE/macr/PhyUser.hpp> 00033 00034 #include <WNS/Cloneable.hpp> 00035 00036 namespace lte { namespace controlplane { 00037 00038 class AssociationsProxyBS; 00039 00040 namespace associationHandler { 00041 00042 class AssociationHandlerBS : 00043 public AssociationHandler, 00044 public wns::Cloneable<AssociationHandlerBS> 00045 { 00046 public: 00047 AssociationHandlerBS(wns::ldk::fun::FUN* fun, const wns::pyconfig::View& config); 00048 virtual ~AssociationHandlerBS(){}; 00049 00050 virtual void 00051 onFUNCreated(); 00052 00053 virtual void 00054 doOnData(const wns::ldk::CompoundPtr& compound); 00055 00056 virtual void 00057 disassociationOnTimeout(const wns::service::dll::UnicastAddress adr, const std::string perMode); 00058 00059 int getMyDuplexGroup(int frameNr, bool isDL); 00060 int getPeerDuplexGroup(wns::service::dll::UnicastAddress user); 00061 private: 00062 00063 lte::controlplane::AssociationsProxyBS* associationsProxy; 00064 00065 // Pointer to the Phy User, used in the 00066 // callback procedure 00067 lte::macr::PhyUser* phyUser; 00068 00069 void 00070 createAssociation_ack(wns::service::dll::UnicastAddress destination, 00071 wns::service::dll::UnicastAddress user, 00072 std::string perMode, 00073 lte::controlplane::flowmanagement::IFlowSwitching::ControlPlaneFlowIDs _controlPlaneFlowIDs) const; 00074 00075 void 00076 createDisassociation_ack(wns::service::dll::UnicastAddress destination, 00077 wns::service::dll::UnicastAddress user, 00078 bool preserve, std::string perMode, 00079 boost::function<void()> callback) const; 00080 00081 //UTsī duplex groups 00082 std::map<wns::service::dll::UnicastAddress, int> duplexGroups; 00083 }; 00084 } 00085 } 00086 } 00087 00088 #endif // LTE_CONTROLPLANE_ASSOCIATIONHANDLER_ASSOCIATIONHANDLERBS_HPP
1.5.5