Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
NINavTeqHelper.h
Go to the documentation of this file.
1/****************************************************************************/
2// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3// Copyright (C) 2001-2024 German Aerospace Center (DLR) and others.
4// This program and the accompanying materials are made available under the
5// terms of the Eclipse Public License 2.0 which is available at
6// https://www.eclipse.org/legal/epl-2.0/
7// This Source Code may also be made available under the following Secondary
8// Licenses when the conditions for such availability set forth in the Eclipse
9// Public License 2.0 are satisfied: GNU General Public License, version 2
10// or later which is available at
11// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13/****************************************************************************/
20// Some parser methods shared around several formats containing NavTeq-Nets
21/****************************************************************************/
22#pragma once
23#include <config.h>
24
25#include <string>
29
30
31// ===========================================================================
32// class declarations
33// ===========================================================================
34class NBEdge;
35
36
37// ===========================================================================
38// class definitions
39// ===========================================================================
48public:
61 static double getSpeed(const std::string& id,
62 const std::string& speedClassS);
63
64
73 static int getLaneNumber(const std::string& id,
74 const std::string& laneNoS, double speed);
75
76
86 static void addVehicleClasses(NBEdge& e, const std::string& classS, const SVCPermissions allPermissions, const SVCPermissions defaultPermissions);
87
89 static void addVehicleClassesV6(NBEdge& e, const std::string& classS, const SVCPermissions allPermissions, const SVCPermissions defaultPermissions);
90
91private:
92 static bool addCommonVehicleClasses(NBEdge& e, const std::string& classS, const int offset);
93
94};
long long int SVCPermissions
bitset where each bit declares whether a certain SVC may use this edge/lane
The representation of a single edge during network building.
Definition NBEdge.h:92
Some parser methods shared around several formats containing NavTeq-Nets.
static void addVehicleClasses(NBEdge &e, const std::string &classS, const SVCPermissions allPermissions, const SVCPermissions defaultPermissions)
Adds vehicle classes parsing the given list of allowed vehicles.
static void addVehicleClassesV6(NBEdge &e, const std::string &classS, const SVCPermissions allPermissions, const SVCPermissions defaultPermissions)
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.
static double getSpeed(const std::string &id, const std::string &speedClassS)
Returns the speed evaluating the given Navteq-description.
static bool addCommonVehicleClasses(NBEdge &e, const std::string &classS, const int offset)