SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NIVissimVehTypeClass.h
Go to the documentation of this file.
1 /****************************************************************************/
8 // -------------------
9 /****************************************************************************/
10 // SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
11 // Copyright (C) 2002-2014 DLR (http://www.dlr.de/) and contributors
12 /****************************************************************************/
13 //
14 // This file is part of SUMO.
15 // SUMO is free software: you can redistribute it and/or modify
16 // it under the terms of the GNU General Public License as published by
17 // the Free Software Foundation, either version 3 of the License, or
18 // (at your option) any later version.
19 //
20 /****************************************************************************/
21 #ifndef NIVissimVehTypeClass_h
22 #define NIVissimVehTypeClass_h
23 
24 
25 // ===========================================================================
26 // included modules
27 // ===========================================================================
28 #ifdef _MSC_VER
29 #include <windows_config.h>
30 #else
31 #include <config.h>
32 #endif
33 
34 #include <string>
35 #include <map>
36 #include <utils/common/RGBColor.h>
37 
38 
39 // ===========================================================================
40 // class definitions
41 // ===========================================================================
46 public:
47  NIVissimVehTypeClass(int id, const std::string& name,
48  const RGBColor& color, std::vector<int>& types);
50  static bool dictionary(int id, const std::string& name,
51  const RGBColor& color, std::vector<int>& types);
52  static bool dictionary(int id, NIVissimVehTypeClass* o);
53  static NIVissimVehTypeClass* dictionary(int name);
54  static void clearDict();
55  SUMOReal meanSpeed() const;
56 private:
57  int myID;
58  std::string myName;
60  std::vector<int> myTypes;
61 private:
62  typedef std::map<int, NIVissimVehTypeClass*> DictType;
63  static DictType myDict;
64 };
65 
66 
67 #endif
68 
69 /****************************************************************************/
70