User Manual, Developers Guide and API Documentation

Roadmap.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_MOBILITY_ROADMAP_HPP
00029 #define RISE_SCENARIO_MOBILITY_ROADMAP_HPP
00030 
00031 #include <RISE/scenario/mobility/Mobility.hpp>
00032 #include <WNS/distribution/Distribution.hpp>
00033 
00034 namespace rise { namespace scenario { namespace mobility {
00035 
00036     namespace roadmap {
00037         class MapUser;
00038         class Map;
00039     }
00040 
00049     class Roadmap :
00050         public Mobility
00051     {
00052       public:
00053         // pyconfig::Parser constructor
00054         explicit
00055         Roadmap(const wns::pyconfig::View& mobilityView);
00056 
00057         // Destructor
00058         virtual
00059         ~Roadmap();
00060 
00064         virtual void
00065         move();
00066 
00070         virtual void
00071         periodically();
00072 
00073       private:
00077         typedef std::map<std::string, roadmap::Map*> RoadmapRegistry;
00078 
00082         static RoadmapRegistry& getRoadmapRegistry();
00083 
00087         roadmap::Map* map;
00088 
00092         roadmap::MapUser* user;
00093 
00097         wns::distribution::Distribution* velocityDistribution;
00098     }; // Roadmap
00099 
00100 } // mobility
00101 } // scenario
00102 } // rise
00103 
00104 #endif  // RISE_SCENARIO_MOBILITY_ROADMAP_HPP

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