NIVissimSource.h

Go to the documentation of this file.
00001 /****************************************************************************/
00007 // -------------------
00008 /****************************************************************************/
00009 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
00010 // Copyright 2001-2010 DLR (http://www.dlr.de/) and contributors
00011 /****************************************************************************/
00012 //
00013 //   This program is free software; you can redistribute it and/or modify
00014 //   it under the terms of the GNU General Public License as published by
00015 //   the Free Software Foundation; either version 2 of the License, or
00016 //   (at your option) any later version.
00017 //
00018 /****************************************************************************/
00019 #ifndef NIVissimSource_h
00020 #define NIVissimSource_h
00021 
00022 
00023 // ===========================================================================
00024 // included modules
00025 // ===========================================================================
00026 #ifdef _MSC_VER
00027 #include <windows_config.h>
00028 #else
00029 #include <config.h>
00030 #endif
00031 
00032 
00033 #include <string>
00034 #include <map>
00035 
00036 // ===========================================================================
00037 // class definitions
00038 // ===========================================================================
00042 class NIVissimSource {
00043 public:
00044     NIVissimSource(const std::string &id, const std::string &name,
00045                    const std::string &edgeid, SUMOReal q, bool exact,
00046                    int vehicle_combination, SUMOReal beg, SUMOReal end);
00047     ~NIVissimSource();
00048     static bool dictionary(const std::string &id, const std::string &name,
00049                            const std::string &edgeid, SUMOReal q, bool exact,
00050                            int vehicle_combination, SUMOReal beg, SUMOReal end);
00051     static bool dictionary(const std::string &id, NIVissimSource *o);
00052     static NIVissimSource *dictionary(const std::string &id);
00053     static void clearDict();
00054 private:
00055     std::string myID;
00056     std::string myName;
00057     std::string myEdgeID;
00058     SUMOReal myQ;
00059     bool myExact;
00060     int myVehicleCombination;
00061     SUMOReal myTimeBeg;
00062     SUMOReal myTimeEnd;
00063 
00064 private:
00065     typedef std::map<std::string, NIVissimSource*> DictType;
00066     static DictType myDict;
00067 };
00068 
00069 
00070 #endif
00071 
00072 /****************************************************************************/
00073 

Generated on Wed May 5 00:06:34 2010 for Sumo - Simulation of Urban MObility by  doxygen 1.5.6