![]() |
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 #ifndef WNS_LDK_FCF_FRAMEBUILDER_H 00028 #define WNS_LDK_FCF_FRAMEBUILDER_H 00029 00030 #include <list> 00031 00032 #include <WNS/ldk/ldk.hpp> 00033 #include <WNS/pyconfig/Parser.hpp> 00034 #include <WNS/ldk/multiplexer/Dispatcher.hpp> 00035 00036 #include <WNS/ldk/fcf/PhaseDescriptor.hpp> 00037 #include <WNS/ldk/fcf/NewFrameProviderObserver.hpp> 00038 00039 namespace wns { namespace ldk { 00040 00041 class ILayer; 00042 00043 namespace fcf { 00044 00045 00142 class TimingControlInterface; 00143 class CompoundCollectorInterface; 00144 00146 00153 class FrameBuilder 00154 : public wns::ldk::multiplexer::Dispatcher, 00155 public wns::ldk::fcf::NewFrameProvider 00156 { 00157 public: 00158 typedef std::list< PhaseDescriptorPtr > Descriptors; 00159 00160 FrameBuilder( wns::ldk::fun::FUN* fun, const wns::pyconfig::View& config ); 00161 ~FrameBuilder(); 00162 00163 void onFUNCreated(); 00164 00166 simTimeType getFrameDuration() const { return frameDuration_; } 00167 00169 Descriptors getAllPhaseDescriptors() const { return descriptors_; } 00170 00172 void start(); 00173 00175 void pause(); 00176 00178 void stop(); 00179 00180 virtual void finishedPhase( CompoundCollectorInterface* collector ); 00181 00182 TimingControlInterface* 00183 getTimingControl() const 00184 { 00185 return timingControl_; 00186 } 00187 private: 00188 00189 Descriptors descriptors_; 00190 simTimeType frameDuration_; 00191 simTimeType symbolDuration_; 00192 00193 TimingControlInterface* timingControl_; 00194 wns::logger::Logger logger; 00195 }; 00196 } 00197 }} 00198 #endif 00199 00200
1.5.5