SUMO - Simulation of Urban MObility
NINavTeqHelper.h
Go to the documentation of this file.
1 /****************************************************************************/
9 // Some parser methods shared around several formats containing NavTeq-Nets
10 /****************************************************************************/
11 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
12 // Copyright (C) 2001-2016 DLR (http://www.dlr.de/) and contributors
13 /****************************************************************************/
14 //
15 // This file is part of SUMO.
16 // SUMO is free software: you can redistribute it and/or modify
17 // it under the terms of the GNU General Public License as published by
18 // the Free Software Foundation, either version 3 of the License, or
19 // (at your option) any later version.
20 //
21 /****************************************************************************/
22 #ifndef NINavTeqHelper_h
23 #define NINavTeqHelper_h
24 
25 
26 // ===========================================================================
27 // included modules
28 // ===========================================================================
29 #ifdef _MSC_VER
30 #include <windows_config.h>
31 #else
32 #include <config.h>
33 #endif
34 
35 #include <string>
36 #include <utils/common/StdDefs.h>
39 
40 
41 // ===========================================================================
42 // class declarations
43 // ===========================================================================
44 class NBEdge;
45 
46 
47 // ===========================================================================
48 // class definitions
49 // ===========================================================================
58 public:
71  static SUMOReal getSpeed(const std::string& id,
72  const std::string& speedClassS);
73 
74 
83  static int getLaneNumber(const std::string& id,
84  const std::string& laneNoS, SUMOReal speed);
85 
86 
96  static void addVehicleClasses(NBEdge& e, const std::string& classS);
97 
99  static void addVehicleClassesV6(NBEdge& e, const std::string& classS);
100 
101 };
102 
103 
104 #endif
105 
106 /****************************************************************************/
107 
The representation of a single edge during network building.
Definition: NBEdge.h:71
static void addVehicleClasses(NBEdge &e, const std::string &classS)
Adds vehicle classes parsing the given list of allowed vehicles.
static SUMOReal getSpeed(const std::string &id, const std::string &speedClassS)
Returns the speed evaluating the given Navteq-description.
Some parser methods shared around several formats containing NavTeq-Nets.
static void addVehicleClassesV6(NBEdge &e, const std::string &classS)
same as addVehicleClasses but for version 6+
#define SUMOReal
Definition: config.h:213
static int getLaneNumber(const std::string &id, const std::string &laneNoS, SUMOReal speed)
Returns the lane number evaluating the given Navteq-description.