![]() |
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_RRHANDLERSHORTCUT_HPP 00029 #define LTE_CONTROLPLANE_RRHANDLERSHORTCUT_HPP 00030 00031 #include <LTE/helper/HasModeName.hpp> 00032 #include <LTE/macg/MACg.hpp> 00033 #include <DLL/Layer2.hpp> 00034 00035 #include <WNS/ldk/ShortcutFU.hpp> 00036 #include <WNS/service/dll/Address.hpp> 00037 #include <WNS/ldk/CommandTypeSpecifier.hpp> 00038 #include <WNS/ldk/HasReceptor.hpp> 00039 #include <WNS/ldk/HasConnector.hpp> 00040 #include <WNS/ldk/HasDeliverer.hpp> 00041 00042 namespace lte { namespace controlplane { 00043 00044 class RRHandlerShortcut: 00045 public wns::ldk::ShortcutFU<wns::service::dll::UnicastAddress, RRHandlerShortcut*>, 00046 public wns::ldk::CommandTypeSpecifier<>, 00047 public wns::ldk::HasReceptor<>, 00048 public wns::ldk::HasConnector<>, 00049 public wns::ldk::HasDeliverer<>, 00050 public lte::helper::HasModeName 00051 { 00052 public: 00053 RRHandlerShortcut(wns::ldk::fun::FUN*, const wns::pyconfig::View&); 00054 00055 virtual 00056 ~RRHandlerShortcut(); 00057 00058 virtual void 00059 onFUNCreated(); 00060 00061 protected: 00062 wns::ldk::fun::FUN* fun_; 00063 00064 dll::ILayer2* layer2_; 00065 00066 struct Friends { 00067 Friends() {macg=NULL;}; 00068 lte::macg::MACg* macg; 00069 } friends; 00070 }; 00071 00072 class RRHandlerShortcutUT: 00073 public RRHandlerShortcut, 00074 public wns::Cloneable<RRHandlerShortcutUT> 00075 { 00076 public: 00077 RRHandlerShortcutUT(wns::ldk::fun::FUN*, const wns::pyconfig::View&); 00078 00079 virtual 00080 ~RRHandlerShortcutUT(); 00081 00085 virtual bool 00086 isReceiver(); 00087 00091 virtual wns::service::dll::UnicastAddress 00092 getSourceAddress(); 00093 00097 virtual wns::service::dll::UnicastAddress 00098 getDestinationAddress(const wns::ldk::CompoundPtr&); 00099 00103 virtual bool 00104 isBroadcast(const wns::ldk::CompoundPtr&); 00105 }; 00106 00107 class RRHandlerShortcutBS: 00108 public RRHandlerShortcut, 00109 public wns::Cloneable<RRHandlerShortcutBS> 00110 { 00111 public: 00112 RRHandlerShortcutBS(wns::ldk::fun::FUN*, const wns::pyconfig::View&); 00113 00114 virtual 00115 ~RRHandlerShortcutBS(); 00116 00120 virtual bool 00121 isReceiver(); 00122 00126 virtual wns::service::dll::UnicastAddress 00127 getSourceAddress(); 00128 00132 virtual wns::service::dll::UnicastAddress 00133 getDestinationAddress(const wns::ldk::CompoundPtr&); 00134 00138 virtual bool 00139 isBroadcast(const wns::ldk::CompoundPtr&); 00140 }; 00141 00142 } // controlplane 00143 } // lte 00144 00145 #endif // LTE_CONTROLPLANE_RRHANDLERSHORTCUT_HPP
1.5.5