![]() |
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-2009 00006 * Chair of Communication Networks (ComNets) 00007 * Kopernikusstr. 5, D-52074 Aachen, Germany 00008 * email: info@openwns.org 00009 * www: http://www.openwns.org 00010 * _____________________________________________________________________________ 00011 * 00012 * openWNS is free software; you can redistribute it and/or modify it under the 00013 * terms of the GNU Lesser General Public License version 2 as published by the 00014 * Free Software Foundation; 00015 * 00016 * openWNS is distributed in the hope that it will be useful, but WITHOUT ANY 00017 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 00018 * A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 00019 * details. 00020 * 00021 * You should have received a copy of the GNU Lesser General Public License 00022 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00023 * 00024 ******************************************************************************/ 00025 00026 00027 #include <WIMAC/WiMAC.hpp> 00028 00029 #include <WNS/pyconfig/Parser.hpp> 00030 #include <WNS/pyconfig/View.hpp> 00031 00032 #include <WIMAC/Logger.hpp> 00033 #include <WIMAC/parameter/PHY.hpp> 00034 #include <WIMAC/StationManager.hpp> 00035 00036 using namespace wimac; 00037 00038 STATIC_FACTORY_REGISTER_WITH_CREATOR(WiMAC, wns::module::Base, "wimac", wns::PyConfigViewCreator); 00039 00040 WiMAC::WiMAC(const wns::pyconfig::View& _pyConfigView) : 00041 wns::module::Module<WiMAC>(_pyConfigView) 00042 { 00043 LOG_INFO( "creating module: WiMAC" ); 00044 } 00045 00046 void WiMAC::configure() 00047 { 00048 wns::pyconfig::View pyco = getPyConfigView().getView("logger"); 00049 WiMACLogger::getInstance()->configure(pyco); 00050 00051 // not available (and not needed) in testing mode 00052 if (!getPyConfigView().isNone("parametersPHY")) 00053 { 00054 pyco = getPyConfigView().getView("parametersPHY"); 00055 parameter::ThePHY::getInstance()->init(pyco); 00056 } 00057 } 00058 00059 void WiMAC::startUp() 00060 { 00061 } 00062 00063 void WiMAC::shutDown() 00064 { 00065 }
1.5.5