![]() |
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 IP_LOWERCONVERGENCE_HPP 00029 #define IP_LOWERCONVERGENCE_HPP 00030 00031 #include <IP/IPHeader.hpp> 00032 #include <IP/container/DataLink.hpp> 00033 00034 #include <WNS/ldk/CommandTypeSpecifier.hpp> 00035 #include <WNS/ldk/HasReceptor.hpp> 00036 #include <WNS/ldk/HasConnector.hpp> 00037 #include <WNS/ldk/HasDeliverer.hpp> 00038 #include <WNS/ldk/fun/FUN.hpp> 00039 #include <WNS/ldk/Compound.hpp> 00040 00041 #include <WNS/service/dll/DataTransmission.hpp> 00042 #include <WNS/service/dll/Handler.hpp> 00043 #include <WNS/service/dll/Address.hpp> 00044 #include <WNS/pyconfig/View.hpp> 00045 00046 namespace ip { 00047 00053 class LowerConvergence : 00054 public wns::ldk::CommandTypeSpecifier<>, 00055 public wns::ldk::HasReceptor<>, 00056 public wns::ldk::HasConnector<>, 00057 public wns::ldk::HasDeliverer<>, 00058 public wns::Cloneable<LowerConvergence>, 00059 virtual public wns::ldk::FunctionalUnit, 00060 virtual public wns::service::dll::Handler 00061 { 00062 00063 public: 00067 LowerConvergence(wns::ldk::fun::FUN*, const wns::pyconfig::View& pyco); 00068 00069 ~LowerConvergence(); 00070 00074 virtual void 00075 doSendData(const wns::ldk::CompoundPtr& compound); 00076 00080 virtual void 00081 doOnData(const wns::ldk::CompoundPtr& compound); 00082 00086 virtual void 00087 onFUNCreated(); 00088 00092 void 00093 onData(const wns::osi::PDUPtr& pdu, wns::service::dll::FlowID dllFlowID); 00094 00095 void 00096 setDLLs(container::DataLinkContainer dlc); 00097 00098 private: 00102 virtual bool 00103 doIsAccepting(const wns::ldk::CompoundPtr& compound) const; 00104 00108 virtual void 00109 doWakeup(); 00110 00115 wns::ldk::CommandReaderInterface* ipHeaderReader; 00116 00117 00121 wns::pyconfig::View pyco; 00122 00126 wns::logger::Logger log; 00127 00128 container::DataLinkContainer dlls; 00129 }; 00130 00131 } // ip 00132 #endif // IP_NODE_COMPONENT_IPV4_LOWERCONVERGENCE_HPP
1.5.5