43 return (
double) 1.0 / (double) 3.6;
45 return (
double) 200 / (double) 3.6;
47 return (
double) 120 / (double) 3.6;
49 return (
double) 100 / (double) 3.6;
51 return (
double) 80 / (double) 3.6;
53 return (
double) 70 / (double) 3.6;
55 return (
double) 50 / (double) 3.6;
57 return (
double) 30 / (double) 3.6;
59 return (
double) 5 / (double) 3.6;
61 throw ProcessError(
"Invalid speed code (edge '" +
id +
"').");
64 throw ProcessError(
"Non-numerical value for an edge's speed type occurred (edge '" +
id +
"').");
75 }
else if (nolanes / 10 > 0) {
78 switch (nolanes % 10) {
83 if (speed > 78.0 / 3.6) {
90 throw ProcessError(
"Invalid lane number (edge '" +
id +
"').");
94 throw ProcessError(
"Non-numerical value for an edge's lane number occurred (edge '" +
id +
"'.");
101 std::string classS =
"0000000000" + oclassS;
102 classS = classS.substr(classS.length() - 10);
104 if (classS[0] ==
'1') {
111 if (classS[1] ==
'1') {
115 if (classS[2] ==
'1') {
120 if (classS[3] ==
'1') {
124 if (classS[4] ==
'1') {
128 if (classS[5] ==
'1') {
133 if (classS[6] ==
'1') {
137 if (classS[7] ==
'1') {
142 if (classS[8] ==
'1') {
146 if (classS[9] ==
'1') {
154 std::string classS =
"0000000000" + oclassS;
155 classS = classS.substr(classS.length() - 12);
157 if (classS[0] ==
'1') {
164 if (classS[1] ==
'1') {
168 if (classS[2] ==
'1') {
172 if (classS[3] ==
'1') {
177 if (classS[4] ==
'1') {
181 if (classS[5] ==
'1') {
185 if (classS[6] ==
'1') {
190 if (classS[7] ==
'1') {
194 if (classS[8] ==
'1') {
199 if (classS[9] ==
'1') {
203 if (classS[10] ==
'1') {
207 if (classS[11] ==
'1') {
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.
vehicle is a small delivery vehicle
static void addVehicleClasses(NBEdge &e, const std::string &classS)
Adds vehicle classes parsing the given list of allowed vehicles.
void setPermissions(SVCPermissions permissions, int lane=-1)
set allowed/disallowed classes for the given lane or for all lanes if -1 is given ...
const SVCPermissions SVCAll
all VClasses are allowed
vehicle is a large transport vehicle
static int toInt(const std::string &sData)
converts a string into the integer value described by it by calling the char-type converter...
vehicle is a passenger car (a "normal" car)
static void addVehicleClassesV6(NBEdge &e, const std::string &classS)
same as addVehicleClasses but for version 6+
vehicle is a large transport vehicle
static int getLaneNumber(const std::string &id, const std::string &laneNoS, double speed)
Returns the lane number evaluating the given Navteq-description.
void allowVehicleClass(int lane, SUMOVehicleClass vclass)
set allowed class for the given lane or for all lanes if -1 is given
public emergency vehicles