Eclipse 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-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
17 // Some parser methods shared around several formats containing NavTeq-Nets
18 /****************************************************************************/
19 #ifndef NINavTeqHelper_h
20 #define NINavTeqHelper_h
21 
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #include <config.h>
27 
28 #include <string>
29 #include <utils/common/StdDefs.h>
32 
33 
34 // ===========================================================================
35 // class declarations
36 // ===========================================================================
37 class NBEdge;
38 
39 
40 // ===========================================================================
41 // class definitions
42 // ===========================================================================
51 public:
64  static double getSpeed(const std::string& id,
65  const std::string& speedClassS);
66 
67 
76  static int getLaneNumber(const std::string& id,
77  const std::string& laneNoS, double speed);
78 
79 
89  static void addVehicleClasses(NBEdge& e, const std::string& classS);
90 
92  static void addVehicleClassesV6(NBEdge& e, const std::string& classS);
93 
94 };
95 
96 
97 #endif
98 
99 /****************************************************************************/
100 
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:86
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.