50 return (
double) 1.0 / (double) 3.6;
52 return (
double) 200 / (double) 3.6;
54 return (
double) 120 / (double) 3.6;
56 return (
double) 100 / (double) 3.6;
58 return (
double) 80 / (double) 3.6;
60 return (
double) 70 / (double) 3.6;
62 return (
double) 50 / (double) 3.6;
64 return (
double) 30 / (double) 3.6;
66 return (
double) 5 / (double) 3.6;
68 throw ProcessError(
"Invalid speed code (edge '" +
id +
"').");
71 throw ProcessError(
"Non-numerical value for an edge's speed type occured (edge '" +
id +
"').");
82 }
else if (nolanes / 10 > 0) {
85 switch (nolanes % 10) {
90 if (speed > 78.0 / 3.6) {
97 throw ProcessError(
"Invalid lane number (edge '" +
id +
"').");
101 throw ProcessError(
"Non-numerical value for an edge's lane number occured (edge '" +
id +
"'.");
108 std::string classS =
"0000000000" + oclassS;
109 classS = classS.substr(classS.length() - 10);
111 if (classS[0] ==
'1') {
118 if (classS[1] ==
'1') {
122 if (classS[2] ==
'1') {
127 if (classS[3] ==
'1') {
131 if (classS[4] ==
'1') {
135 if (classS[5] ==
'1') {
140 if (classS[6] ==
'1') {
144 if (classS[7] ==
'1') {
149 if (classS[8] ==
'1') {
153 if (classS[9] ==
'1') {
161 std::string classS =
"0000000000" + oclassS;
162 classS = classS.substr(classS.length() - 12);
164 if (classS[0] ==
'1') {
171 if (classS[1] ==
'1') {
175 if (classS[2] ==
'1') {
179 if (classS[3] ==
'1') {
184 if (classS[4] ==
'1') {
188 if (classS[5] ==
'1') {
192 if (classS[6] ==
'1') {
197 if (classS[7] ==
'1') {
201 if (classS[8] ==
'1') {
206 if (classS[9] ==
'1') {
210 if (classS[10] ==
'1') {
214 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
vehicle is a passenger car (a "normal" car)
static void addVehicleClassesV6(NBEdge &e, const std::string &classS)
same as addVehicleClasses but for version 6+
static int _2int(const E *const data)
converts a char-type array into the integer value described by it
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