User Manual, Developers Guide and API Documentation

PHY.cpp

Go to the documentation of this file.
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 #include <WIMAC/parameter/PHY.hpp>
00027 #include <WIMAC/Logger.hpp>
00028 
00029 using namespace wimac::parameter;
00030 
00031 void
00032 PHY::init(const wns::pyconfig::View& config)
00033 {
00034     LOG_INFO("Loading WiMAC PHY parameters from config");
00035 
00036     channelBandwidth = config.get<double>("channelBandwidth");
00037     symbolDuration = config.get<double>("symbolDuration");
00038     frameDuration = config.get<double>("frameDuration");
00039     symbolsPerFrame = config.get<int>("symbolsFrame");
00040     ttg = config.get<double>("ttg");
00041     rtg = config.get<double>("rtg");
00042     dataSubCarrier = config.get<int>("dataSubCarrier");
00043     subChannels = config.get<int>("subchannels");
00044     subCarrierPerSubChannel = config.get<int>("subcarrierPerSubchannel");
00045     minimumBitsPerSymbol = config.get<int>("minimumBitsPerSymbol");
00046     dlPreamble = config.get<int>("dlPreamble");
00047     fch = config.get<int>("fch");
00048     frameHead = config.get<int>("frameHead");
00049     mapBase = config.get<int>("mapBase");
00050     ie = config.get<int>("ie");
00051 }
00052 
00053 

Generated on Fri May 25 03:32:14 2012 for openWNS by  doxygen 1.5.5