User Manual, Developers Guide and API Documentation

Scenario.hpp

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-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 RISE_SCENARIO_SCENARIO_HPP
00029 #define RISE_SCENARIO_SCENARIO_HPP
00030 
00031 #include <RISE/antenna/Antenna.hpp>
00032 
00033 #include <WNS/StaticFactory.hpp>
00034 #include <WNS/pyconfig/View.hpp>
00035 #include <WNS/Position.hpp>
00036 #include <WNS/PowerRatio.hpp>
00037 #include <WNS/Types.hpp>
00038 #include <WNS/Broker.hpp>
00039 #include <WNS/Singleton.hpp>
00040 
00041 #include <WNS/rng/RNGen.hpp>
00042 
00043 #include <map>
00044 #include <string>
00045 
00046 
00047 namespace rise
00048 {
00049     class SystemManager;
00050 
00051     namespace scenario
00052     {
00053         namespace sceneryfile {
00054             class SceneryFile;
00055         }
00056 
00057         class Scenario
00058         {
00059         public:
00060 
00065             enum morphologyType
00066             {
00067                 noMorphology = 0, sameMorphology, urban, subUrban, quasiOpen, open,
00068                 forest, sea, vehicular, multiwall, outdoor
00069             };
00070 
00075             enum topographyType
00076             {
00077                 noTopography = 0, quasiSmooth, metropolitan
00078             };
00079 
00080             explicit
00081             Scenario(const wns::pyconfig::View& config);
00082 
00083             virtual
00084             ~Scenario();
00085 
00086             wns::rng::RNGen&
00087             getRNG() const
00088             {
00089                 return *wns::module::Base::getService<wns::rng::RNGen*>("SPEETCL-RNG");
00090             }
00091 
00092             void
00093             openSceneryFile(const std::string& filename, const std::string& filetype);
00094 
00095             const sceneryfile::SceneryFile&
00096             getSceneryFile(const std::string& filename) const;
00097 
00098         private:
00099             typedef std::map<std::string, sceneryfile::SceneryFile*> SceneryFilesMap;
00100 
00101             SceneryFilesMap sceneryFiles;
00102 
00103         };
00104 
00105         typedef wns::Broker<Scenario> ScenarioBroker;
00106         typedef wns::SingletonHolder<ScenarioBroker> GlobalScenarioBroker;
00107     }
00108 }
00109 
00110 #endif // NOT defined RISE_SCENARIO_SCENARIO_HPP

Generated on Fri May 25 03:31:58 2012 for openWNS by  doxygen 1.5.5