SUMO - Simulation of Urban MObility
NINavTeqHelper.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
19 // Some parser methods shared around several formats containing NavTeq-Nets
20 /****************************************************************************/
21 #ifndef NINavTeqHelper_h
22 #define NINavTeqHelper_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 <utils/common/StdDefs.h>
38 
39 
40 // ===========================================================================
41 // class declarations
42 // ===========================================================================
43 class NBEdge;
44 
45 
46 // ===========================================================================
47 // class definitions
48 // ===========================================================================
57 public:
70  static double getSpeed(const std::string& id,
71  const std::string& speedClassS);
72 
73 
82  static int getLaneNumber(const std::string& id,
83  const std::string& laneNoS, double speed);
84 
85 
95  static void addVehicleClasses(NBEdge& e, const std::string& classS);
96 
98  static void addVehicleClassesV6(NBEdge& e, const std::string& classS);
99 
100 };
101 
102 
103 #endif
104 
105 /****************************************************************************/
106 
static double getSpeed(const std::string &id, const std::string &speedClassS)
Returns the speed evaluating the given Navteq-description.
The representation of a single edge during network building.
Definition: NBEdge.h:70
static void addVehicleClasses(NBEdge &e, const std::string &classS)
Adds vehicle classes parsing the given list of allowed vehicles.
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+
static int getLaneNumber(const std::string &id, const std::string &laneNoS, double speed)
Returns the lane number evaluating the given Navteq-description.