![]() |
User Manual, Developers Guide and API Documentation |
![]() |
00001 /****************************************************************************** 00002 * WiMeMac * 00003 * This file is part of openWNS (open Wireless Network Simulator) 00004 * _____________________________________________________________________________ 00005 * 00006 * Copyright (C) 2004-2011 00007 * Chair of Communication Networks (ComNets) 00008 * Kopernikusstr. 5, D-52074 Aachen, Germany 00009 * phone: ++49-241-80-27910, 00010 * fax: ++49-241-80-22242 00011 * email: info@openwns.org 00012 * www: http://www.openwns.org 00013 * _____________________________________________________________________________ 00014 * 00015 * openWNS is free software; you can redistribute it and/or modify it under the 00016 * terms of the GNU Lesser General Public License version 2 as published by the 00017 * Free Software Foundation; 00018 * 00019 * openWNS is distributed in the hope that it will be useful, but WITHOUT ANY 00020 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 00021 * A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 00022 * details. 00023 * 00024 * You should have received a copy of the GNU Lesser General Public License 00025 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00026 * 00027 ******************************************************************************/ 00028 00029 #ifndef WIMEMAC_MANAGEMENT_PROTOCOLCALCULATOR_HPP 00030 #define WIMEMAC_MANAGEMENT_PROTOCOLCALCULATOR_HPP 00031 00032 #include <WIMEMAC/management/protocolCalculatorPlugins/ErrorProbability.hpp> 00033 #include <WIMEMAC/management/protocolCalculatorPlugins/FrameLength.hpp> 00034 #include <WIMEMAC/management/protocolCalculatorPlugins/Duration.hpp> 00035 00036 #include <WNS/ldk/ManagementServiceInterface.hpp> 00037 #include <WNS/logger/Logger.hpp> 00038 00039 namespace wimemac { namespace management { 00040 00049 class ProtocolCalculator: 00050 public wns::ldk::ManagementService 00051 { 00052 public: 00053 ProtocolCalculator( wns::ldk::ManagementServiceRegistry*, const wns::pyconfig::View& config ); 00054 virtual ~ProtocolCalculator() { 00055 delete errorProbability; 00056 }; 00057 00060 protocolCalculatorPlugins::ErrorProbability* 00061 getErrorProbability() const; 00062 00067 protocolCalculatorPlugins::FrameLength* 00068 getFrameLength() const; 00069 00074 protocolCalculatorPlugins::Duration* 00075 getDuration() const; 00076 00077 00078 private: 00079 void 00080 onMSRCreated(); 00081 00082 wns::logger::Logger logger; 00083 const wns::pyconfig::View config; 00084 00085 protocolCalculatorPlugins::ErrorProbability* errorProbability; 00086 protocolCalculatorPlugins::FrameLength* frameLength; 00087 protocolCalculatorPlugins::Duration* duration; 00088 }; 00089 } // management 00090 } // wimemac 00091 00092 #endif
1.5.5