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;
64 throw ProcessError(
TLF(
"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) {
94 throw ProcessError(
TLF(
"Non-numerical value for an edge's lane number occurred (edge '%').",
id));
101 bool haveCar =
false;
103 if (classS[offset] ==
'1') {
111 if (classS[offset + 1] ==
'1') {
117 if (classS[offset + 2] ==
'1') {
124 if (classS[offset + 3] ==
'1') {
133 if (classS[offset + 4] ==
'1') {
140 if (classS[offset + 5] ==
'1') {
154 std::string classS =
"0000000000" + oclassS;
155 classS = classS.substr(classS.length() - 10);
157 if (classS[0] ==
'1') {
161 bool haveCar =
false;
164 if (classS[1] ==
'1') {
175 if (classS[8] ==
'1') {
181 if (classS[9] ==
'1') {
191 std::string classS =
"0000000000" + oclassS;
192 classS = classS.substr(classS.length() - 12);
194 if (classS[0] ==
'1') {
198 bool haveCar =
false;
201 if (classS[1] ==
'1') {
208 if (classS[2] ==
'1') {
217 if (classS[9] ==
'1') {
223 if (classS[10] ==
'1') {
229 if (classS[11] ==
'1') {
long long int SVCPermissions
bitset where each bit declares whether a certain SVC may use this edge/lane
@ SVC_HOV
vehicle is a HOV
@ SVC_TRUCK
vehicle is a large transport vehicle
@ SVC_COACH
vehicle is a coach
@ SVC_PASSENGER
vehicle is a passenger car (a "normal" car)
@ SVC_BICYCLE
vehicle is a bicycle
@ SVC_TRAILER
vehicle is a large transport vehicle
@ SVC_DELIVERY
vehicle is a small delivery vehicle
@ SVC_MOTORCYCLE
vehicle is a motorcycle
@ SVC_EMERGENCY
public emergency vehicles
@ SVC_TAXI
vehicle is a taxi
@ SVC_BUS
vehicle is a bus
@ SVC_PEDESTRIAN
pedestrian
The representation of a single edge during network building.
void setPermissions(SVCPermissions permissions, int lane=-1)
set allowed/disallowed classes for the given lane or for all lanes if -1 is given
void disallowVehicleClass(int lane, SUMOVehicleClass vclass)
set disallowed class for the given lane or for all lanes if -1 is given
void allowVehicleClass(int lane, SUMOVehicleClass vclass)
set allowed class for the given lane or for all lanes if -1 is given
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)
static int toInt(const std::string &sData)
converts a string into the integer value described by it by calling the char-type converter,...