 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
42 return (
double) 1.0 / (double) 3.6;
44 return (
double) 200 / (double) 3.6;
46 return (
double) 120 / (double) 3.6;
48 return (
double) 100 / (double) 3.6;
50 return (
double) 80 / (double) 3.6;
52 return (
double) 70 / (double) 3.6;
54 return (
double) 50 / (double) 3.6;
56 return (
double) 30 / (double) 3.6;
58 return (
double) 5 / (double) 3.6;
60 throw ProcessError(
"Invalid speed code (edge '" +
id +
"').");
63 throw ProcessError(
"Non-numerical value for an edge's speed type occurred (edge '" +
id +
"').");
74 }
else if (nolanes / 10 > 0) {
77 switch (nolanes % 10) {
82 if (speed > 78.0 / 3.6) {
89 throw ProcessError(
"Invalid lane number (edge '" +
id +
"').");
93 throw ProcessError(
"Non-numerical value for an edge's lane number occurred (edge '" +
id +
"'.");
100 std::string classS =
"0000000000" + oclassS;
101 classS = classS.substr(classS.length() - 10);
103 if (classS[0] ==
'1') {
110 if (classS[1] ==
'1') {
114 if (classS[2] ==
'1') {
119 if (classS[3] ==
'1') {
123 if (classS[4] ==
'1') {
127 if (classS[5] ==
'1') {
132 if (classS[6] ==
'1') {
136 if (classS[7] ==
'1') {
141 if (classS[8] ==
'1') {
145 if (classS[9] ==
'1') {
153 std::string classS =
"0000000000" + oclassS;
154 classS = classS.substr(classS.length() - 12);
156 if (classS[0] ==
'1') {
163 if (classS[1] ==
'1') {
167 if (classS[2] ==
'1') {
171 if (classS[3] ==
'1') {
176 if (classS[4] ==
'1') {
180 if (classS[5] ==
'1') {
184 if (classS[6] ==
'1') {
189 if (classS[7] ==
'1') {
193 if (classS[8] ==
'1') {
198 if (classS[9] ==
'1') {
202 if (classS[10] ==
'1') {
206 if (classS[11] ==
'1') {
public emergency vehicles
static void addVehicleClasses(NBEdge &e, const std::string &classS)
Adds vehicle classes parsing the given list of allowed vehicles.
vehicle is a small delivery vehicle
void setPermissions(SVCPermissions permissions, int lane=-1)
set allowed/disallowed classes for the given lane or for all lanes if -1 is given
The representation of a single edge during network building.
static void addVehicleClassesV6(NBEdge &e, const std::string &classS)
same as addVehicleClasses but for version 6+
vehicle is a large transport vehicle
vehicle is a passenger car (a "normal" car)
static int getLaneNumber(const std::string &id, const std::string &laneNoS, double speed)
Returns the lane number evaluating the given Navteq-description.
static int toInt(const std::string &sData)
converts a string into the integer value described by it by calling the char-type converter,...
const SVCPermissions SVCAll
all VClasses are allowed
vehicle is a large transport vehicle
void allowVehicleClass(int lane, SUMOVehicleClass vclass)
set allowed class for the given lane or for all lanes if -1 is given
static double getSpeed(const std::string &id, const std::string &speedClassS)
Returns the speed evaluating the given Navteq-description.