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 /****************************************************************************/
16 // Some parser methods shared around several formats containing NavTeq-Nets
17 /****************************************************************************/
18 #ifndef NINavTeqHelper_h
19 #define NINavTeqHelper_h
20 
21 
22 // ===========================================================================
23 // included modules
24 // ===========================================================================
25 #include <config.h>
26 
27 #include <string>
28 #include <utils/common/StdDefs.h>
31 
32 
33 // ===========================================================================
34 // class declarations
35 // ===========================================================================
36 class NBEdge;
37 
38 
39 // ===========================================================================
40 // class definitions
41 // ===========================================================================
50 public:
63  static double getSpeed(const std::string& id,
64  const std::string& speedClassS);
65 
66 
75  static int getLaneNumber(const std::string& id,
76  const std::string& laneNoS, double speed);
77 
78 
88  static void addVehicleClasses(NBEdge& e, const std::string& classS);
89 
91  static void addVehicleClassesV6(NBEdge& e, const std::string& classS);
92 
93 };
94 
95 
96 #endif
97 
98 /****************************************************************************/
99 
NINavTeqHelper::addVehicleClasses
static void addVehicleClasses(NBEdge &e, const std::string &classS)
Adds vehicle classes parsing the given list of allowed vehicles.
Definition: NINavTeqHelper.cpp:99
NBEdge
The representation of a single edge during network building.
Definition: NBEdge.h:91
NINavTeqHelper::addVehicleClassesV6
static void addVehicleClassesV6(NBEdge &e, const std::string &classS)
same as addVehicleClasses but for version 6+
Definition: NINavTeqHelper.cpp:152
SUMOVehicleClass.h
NINavTeqHelper::getLaneNumber
static int getLaneNumber(const std::string &id, const std::string &laneNoS, double speed)
Returns the lane number evaluating the given Navteq-description.
Definition: NINavTeqHelper.cpp:69
UtilExceptions.h
config.h
NINavTeqHelper
Some parser methods shared around several formats containing NavTeq-Nets.
Definition: NINavTeqHelper.h:49
StdDefs.h
NINavTeqHelper::getSpeed
static double getSpeed(const std::string &id, const std::string &speedClassS)
Returns the speed evaluating the given Navteq-description.
Definition: NINavTeqHelper.cpp:37