SUMOVehicleClass.cpp File Reference


Detailed Description

Author:
Daniel Krajzewicz
Date:
2006-01-24
Version:
Id
SUMOVehicleClass.cpp 8461 2010-03-18 08:47:56Z behrisch

Definition in file SUMOVehicleClass.cpp.

#include <config.h>
#include <string>
#include <map>
#include "SUMOVehicleClass.h"
#include <utils/common/TplConvert.h>
#include <utils/common/ToString.h>
#include <utils/common/MsgHandler.h>
#include <utils/common/StringTokenizer.h>

Go to the source code of this file.

Functions

void addToShapeNames (SUMOVehicleShape id, const std::string &name) throw ()
SUMOVehicleClass getVehicleClassID (const std::string &name) throw ()
 Returns the class id of the abstract class given by its name.
std::string getVehicleClassName (SUMOVehicleClass id) throw ()
 Returns the class name of the abstract class given by its id.
SUMOEmissionClass getVehicleEmissionTypeID (const std::string &name) throw (ProcessError)
 Returns the class id of the emission class given by its name.
std::string getVehicleEmissionTypeName (SUMOEmissionClass id) throw ()
 Returns the class name of the emission class given by its id.
SUMOVehicleShape getVehicleShapeID (const std::string &name) throw ()
 Returns the class id of the shape class given by its name.
std::string getVehicleShapeName (SUMOVehicleShape id) throw ()
 Returns the class name of the shape class given by its id.
void initGuiShapeNames () throw ()
void parseVehicleClasses (const std::vector< std::string > &classesS, std::vector< SUMOVehicleClass > &classes) throw ()
 Parses the given vector of class names into their enum-representation.
void parseVehicleClasses (const std::string &classesS, const std::string &allowedS, const std::string &disallowedS, std::vector< SUMOVehicleClass > &allowed, std::vector< SUMOVehicleClass > &disallowed, bool &warnedAboutDeprecatedVClass) throw ()
 Parses the given definition of allowed/disallowed vehicle classes into the given containers.
std::string sSVC_BICYCLE ("bicycle")
std::string sSVC_BUS ("bus")
std::string sSVC_CITYRAIL ("cityrail")
std::string sSVC_DELIVERY ("delivery")
std::string sSVC_HOV ("hov")
std::string sSVC_IGNORING ("ignoring")
std::string sSVC_LIGHTRAIL ("lightrail")
std::string sSVC_MOTORCYCLE ("motorcycle")
std::string sSVC_PASSENGER ("passenger")
std::string sSVC_PEDESTRIAN ("pedestrian")
std::string sSVC_PRIVATE ("private")
std::string sSVC_PUBLIC_ARMY ("public_army")
std::string sSVC_PUBLIC_AUTHORITY ("public_authority")
std::string sSVC_PUBLIC_EMERGENCY ("public_emergency")
std::string sSVC_PUBLIC_TRANSPORT ("public_transport")
std::string sSVC_RAIL_FAST ("rail_fast")
std::string sSVC_RAIL_SLOW ("rail_slow")
std::string sSVC_TAXI ("taxi")
std::string sSVC_TRANSPORT ("transport")
std::string sSVC_VIP ("vip")

Variables

std::map< SUMOVehicleShape,
std::string > 
gVehicleShapeID2Name
std::map< std::string,
SUMOVehicleShape
gVehicleShapeName2ID


Function Documentation

void addToShapeNames ( SUMOVehicleShape  id,
const std::string &  name 
) throw ()

Definition at line 274 of file SUMOVehicleClass.cpp.

References gVehicleShapeID2Name, and gVehicleShapeName2ID.

Referenced by initGuiShapeNames().

00274                                                                     {
00275     gVehicleShapeID2Name[id] = name;
00276     gVehicleShapeName2ID[name] = id;
00277 }

SUMOVehicleClass getVehicleClassID ( const std::string &  name  )  throw ()

Returns the class id of the abstract class given by its name.

Parameters:
[in] name The name of the abstract vehicle class
Returns:
The internal representation of this class

Definition at line 158 of file SUMOVehicleClass.cpp.

References sSVC_BICYCLE(), sSVC_BUS(), sSVC_CITYRAIL(), sSVC_DELIVERY(), sSVC_HOV(), sSVC_IGNORING(), sSVC_LIGHTRAIL(), sSVC_MOTORCYCLE(), sSVC_PASSENGER(), sSVC_PEDESTRIAN(), sSVC_PRIVATE(), sSVC_PUBLIC_ARMY(), sSVC_PUBLIC_AUTHORITY(), sSVC_PUBLIC_EMERGENCY(), sSVC_PUBLIC_TRANSPORT(), sSVC_RAIL_FAST(), sSVC_RAIL_SLOW(), sSVC_TAXI(), sSVC_TRANSPORT(), sSVC_VIP(), SVC_BICYCLE, SVC_BUS, SVC_CITYRAIL, SVC_DELIVERY, SVC_HOV, SVC_IGNORING, SVC_LIGHTRAIL, SVC_MOTORCYCLE, SVC_PASSENGER, SVC_PEDESTRIAN, SVC_PRIVATE, SVC_PUBLIC_ARMY, SVC_PUBLIC_AUTHORITY, SVC_PUBLIC_EMERGENCY, SVC_PUBLIC_TRANSPORT, SVC_RAIL_FAST, SVC_RAIL_SLOW, SVC_TAXI, SVC_TRANSPORT, SVC_UNKNOWN, and SVC_VIP.

Referenced by NBEdgeCont::applyOptions(), NIXMLEdgesHandler::myStartElement(), SUMOVehicleParserHelper::parseVehicleClass(), and parseVehicleClasses().

00158                                                  {
00159     SUMOVehicleClass ret = SVC_UNKNOWN;
00160     if (name.find(sSVC_PRIVATE)!=std::string::npos) {
00161         ret = (SUMOVehicleClass)((int) ret | (int) SVC_PRIVATE);
00162     }
00163     if (name.find(sSVC_PUBLIC_TRANSPORT)!=std::string::npos) {
00164         ret = (SUMOVehicleClass)((int) ret | (int) SVC_PUBLIC_TRANSPORT);
00165     }
00166     if (name.find(sSVC_PUBLIC_EMERGENCY)!=std::string::npos) {
00167         ret = (SUMOVehicleClass)((int) ret | (int) SVC_PUBLIC_EMERGENCY);
00168     }
00169     if (name.find(sSVC_PUBLIC_AUTHORITY)!=std::string::npos) {
00170         ret = (SUMOVehicleClass)((int) ret | (int) SVC_PUBLIC_AUTHORITY);
00171     }
00172     if (name.find(sSVC_PUBLIC_ARMY)!=std::string::npos) {
00173         ret = (SUMOVehicleClass)((int) ret | (int) SVC_PUBLIC_ARMY);
00174     }
00175     if (name.find(sSVC_VIP)!=std::string::npos) {
00176         ret = (SUMOVehicleClass)((int) ret | (int) SVC_VIP);
00177     }
00178     if (name.find(sSVC_IGNORING)!=std::string::npos) {
00179         ret = (SUMOVehicleClass)((int) ret | (int) SVC_IGNORING);
00180     }
00181 
00182 
00183     if (name.find(sSVC_PASSENGER)!=std::string::npos) {
00184         ret = (SUMOVehicleClass)((int) ret | (int) SVC_PASSENGER);
00185     }
00186     if (name.find(sSVC_HOV)!=std::string::npos) {
00187         ret = (SUMOVehicleClass)((int) ret | (int) SVC_HOV);
00188     }
00189     if (name.find(sSVC_TAXI)!=std::string::npos) {
00190         ret = (SUMOVehicleClass)((int) ret | (int) SVC_TAXI);
00191     }
00192     if (name.find(sSVC_BUS)!=std::string::npos) {
00193         ret = (SUMOVehicleClass)((int) ret | (int) SVC_BUS);
00194     }
00195     if (name.find(sSVC_DELIVERY)!=std::string::npos) {
00196         ret = (SUMOVehicleClass)((int) ret | (int) SVC_DELIVERY);
00197     }
00198     if (name.find(sSVC_TRANSPORT)!=std::string::npos) {
00199         ret = (SUMOVehicleClass)((int) ret | (int) SVC_TRANSPORT);
00200     }
00201     if (name.find(sSVC_LIGHTRAIL)!=std::string::npos) {
00202         ret = (SUMOVehicleClass)((int) ret | (int) SVC_LIGHTRAIL);
00203     }
00204     if (name.find(sSVC_CITYRAIL)!=std::string::npos) {
00205         ret = (SUMOVehicleClass)((int) ret | (int) SVC_CITYRAIL);
00206     }
00207     if (name.find(sSVC_RAIL_SLOW)!=std::string::npos) {
00208         ret = (SUMOVehicleClass)((int) ret | (int) SVC_RAIL_SLOW);
00209     }
00210     if (name.find(sSVC_RAIL_FAST)!=std::string::npos) {
00211         ret = (SUMOVehicleClass)((int) ret | (int) SVC_RAIL_FAST);
00212     }
00213     if (name.find(sSVC_MOTORCYCLE)!=std::string::npos) {
00214         ret = (SUMOVehicleClass)((int) ret | (int) SVC_MOTORCYCLE);
00215     }
00216     if (name.find(sSVC_BICYCLE)!=std::string::npos) {
00217         ret = (SUMOVehicleClass)((int) ret | (int) SVC_BICYCLE);
00218     }
00219     if (name.find(sSVC_PEDESTRIAN)!=std::string::npos) {
00220         ret = (SUMOVehicleClass)((int) ret | (int) SVC_PEDESTRIAN);
00221     }
00222 
00223     return ret;
00224 }

std::string getVehicleClassName ( SUMOVehicleClass  id  )  throw ()

Returns the class name of the abstract class given by its id.

Parameters:
[in] id The id of the abstract vehicle class
Returns:
The string representation of this class

Definition at line 85 of file SUMOVehicleClass.cpp.

References sSVC_BICYCLE(), sSVC_BUS(), sSVC_CITYRAIL(), sSVC_DELIVERY(), sSVC_HOV(), sSVC_IGNORING(), sSVC_LIGHTRAIL(), sSVC_MOTORCYCLE(), sSVC_PASSENGER(), sSVC_PEDESTRIAN(), sSVC_PRIVATE(), sSVC_PUBLIC_ARMY(), sSVC_PUBLIC_AUTHORITY(), sSVC_PUBLIC_EMERGENCY(), sSVC_PUBLIC_TRANSPORT(), sSVC_RAIL_FAST(), sSVC_RAIL_SLOW(), sSVC_TAXI(), sSVC_TRANSPORT(), sSVC_VIP(), SVC_BICYCLE, SVC_BUS, SVC_CITYRAIL, SVC_DELIVERY, SVC_HOV, SVC_IGNORING, SVC_LIGHTRAIL, SVC_MOTORCYCLE, SVC_PASSENGER, SVC_PEDESTRIAN, SVC_PRIVATE, SVC_PUBLIC_ARMY, SVC_PUBLIC_AUTHORITY, SVC_PUBLIC_EMERGENCY, SVC_PUBLIC_TRANSPORT, SVC_RAIL_FAST, SVC_RAIL_SLOW, SVC_TAXI, SVC_TRANSPORT, and SVC_VIP.

Referenced by TraCIServerAPI_VehicleType::processGet(), TraCIServerAPI_Lane::processGet(), SUMOVTypeParameter::write(), NBEdge::writeLane(), and NBEdge::writeLanesPlain().

00085                                                  {
00086     std::string ret;
00087     if ((id&SVC_PRIVATE)!=0) {
00088         ret += ("|" + sSVC_PRIVATE);
00089     }
00090     if ((id&SVC_PUBLIC_TRANSPORT)!=0) {
00091         ret += ("|" + sSVC_PUBLIC_TRANSPORT);
00092     }
00093     if ((id&SVC_PUBLIC_EMERGENCY)!=0) {
00094         ret += ("|" + sSVC_PUBLIC_EMERGENCY);
00095     }
00096     if ((id&SVC_PUBLIC_AUTHORITY)!=0) {
00097         ret += ("|" + sSVC_PUBLIC_AUTHORITY);
00098     }
00099     if ((id&SVC_PUBLIC_ARMY)!=0) {
00100         ret += ("|" + sSVC_PUBLIC_ARMY);
00101     }
00102     if ((id&SVC_VIP)!=0) {
00103         ret += ("|" + sSVC_VIP);
00104     }
00105     if ((id&SVC_IGNORING)!=0) {
00106         ret += ("|" + sSVC_IGNORING);
00107     }
00108 
00109     if ((id&SVC_PASSENGER)!=0) {
00110         ret += ("|" + sSVC_PASSENGER);
00111     }
00112     if ((id&SVC_HOV)!=0) {
00113         ret += ("|" + sSVC_HOV);
00114     }
00115     if ((id&SVC_TAXI)!=0) {
00116         ret += ("|" + sSVC_TAXI);
00117     }
00118     if ((id&SVC_BUS)!=0) {
00119         ret += ("|" + sSVC_BUS);
00120     }
00121     if ((id&SVC_DELIVERY)!=0) {
00122         ret += ("|" + sSVC_DELIVERY);
00123     }
00124     if ((id&SVC_TRANSPORT)!=0) {
00125         ret += ("|" + sSVC_TRANSPORT);
00126     }
00127     if ((id&SVC_LIGHTRAIL)!=0) {
00128         ret += ("|" + sSVC_LIGHTRAIL);
00129     }
00130     if ((id&SVC_CITYRAIL)!=0) {
00131         ret += ("|" + sSVC_CITYRAIL);
00132     }
00133     if ((id&SVC_RAIL_SLOW)!=0) {
00134         ret += ("|" + sSVC_RAIL_SLOW);
00135     }
00136     if ((id&SVC_RAIL_FAST)!=0) {
00137         ret += ("|" + sSVC_RAIL_FAST);
00138     }
00139     if ((id&SVC_MOTORCYCLE)!=0) {
00140         ret += ("|" + sSVC_MOTORCYCLE);
00141     }
00142     if ((id&SVC_BICYCLE)!=0) {
00143         ret += ("|" + sSVC_BICYCLE);
00144     }
00145     if ((id&SVC_PEDESTRIAN)!=0) {
00146         ret += ("|" + sSVC_PEDESTRIAN);
00147     }
00148 
00149     if (ret.length()>0) {
00150         return ret.substr(1);
00151     } else {
00152         return ret;
00153     }
00154 }

SUMOEmissionClass getVehicleEmissionTypeID ( const std::string &  name  )  throw (ProcessError)

Returns the class id of the emission class given by its name.

Parameters:
[in] name The name of the emission class
Returns:
The internal representation of this class

Definition at line 333 of file SUMOVehicleClass.cpp.

References TplConvert< E >::_2int(), SVE_HDV_12_1, SVE_HDV_3_1, SVE_HDV_6_1, SVE_P_LDV_14_1, SVE_P_LDV_7_1, SVE_UNKNOWN, and SVE_ZERO_EMISSIONS.

Referenced by SUMOVehicleParserHelper::parseEmissionClass().

00333                                                                     {
00334     try {
00335         if (name=="") {
00336             return SVE_UNKNOWN;
00337         } else if (name=="zero") {
00338             return SVE_ZERO_EMISSIONS;
00339         } else if (name.find("HDV_3_")==0) {
00340             return (SUMOEmissionClass)(SVE_HDV_3_1 - 1 + TplConvert<char>::_2int(name.substr(name.rfind("_")+1).c_str()));
00341         } else if (name.find("HDV_6_")==0) {
00342             return (SUMOEmissionClass)(SVE_HDV_6_1 - 1 + TplConvert<char>::_2int(name.substr(name.rfind("_")+1).c_str()));
00343         } else if (name.find("HDV_12_")==0) {
00344             return (SUMOEmissionClass)(SVE_HDV_12_1 - 1 + TplConvert<char>::_2int(name.substr(name.rfind("_")+1).c_str()));
00345         } else if (name.find("P_7_")==0) {
00346             return (SUMOEmissionClass)(SVE_P_LDV_7_1 - 1 + TplConvert<char>::_2int(name.substr(name.rfind("_")+1).c_str()));
00347         } else if (name.find("P_14_")==0) {
00348             return (SUMOEmissionClass)(SVE_P_LDV_14_1 - 1 + TplConvert<char>::_2int(name.substr(name.rfind("_")+1).c_str()));
00349         }
00350     } catch (NumberFormatException &) {
00351         throw ProcessError("Unknown emission type '" + name + "'.");
00352     }
00353     return SVE_UNKNOWN;
00354 }

std::string getVehicleEmissionTypeName ( SUMOEmissionClass  id  )  throw ()

Returns the class name of the emission class given by its id.

Parameters:
[in] id The id of the emission class
Returns:
The string representation of this class

Definition at line 358 of file SUMOVehicleClass.cpp.

References SVE_ZERO_EMISSIONS, and toString().

Referenced by TraCIServerAPI_VehicleType::processGet(), and SUMOVTypeParameter::write().

00358                                                          {
00359     if (id==SVE_ZERO_EMISSIONS) {
00360         return "zero";
00361     }
00362     if (id<0) {
00363         return "";
00364     } else if (id<3) {
00365         return "HDV_3_" + toString(int(id));
00366     } else if (id<3+6) {
00367         return "HDV_6_" + toString(int(id-3));
00368     } else if (id<3+6+12) {
00369         return "HDV_12_" + toString(int(id-3-6));
00370     } else if (id<3+6+12+7) {
00371         return "P_7_" + toString(int(id-3-6-12));
00372     } else if (id<3+6+12+7+14) {
00373         return "P_14_" + toString(int(id-3-6-12-7));
00374     }
00375     return "";
00376 }

SUMOVehicleShape getVehicleShapeID ( const std::string &  name  )  throw ()

Returns the class id of the shape class given by its name.

Parameters:
[in] name The name of the shape class
Returns:
The internal representation of this class

!!throw InvalidArgument("Unknown vehicle shape '" + name + "' occured.");

Definition at line 318 of file SUMOVehicleClass.cpp.

References gVehicleShapeName2ID, and SVS_UNKNOWN.

Referenced by SUMOVehicleParserHelper::parseGuiShape().

00318                                                  {
00319     if (name=="") {
00320         return SVS_UNKNOWN;
00321     }
00322     if (gVehicleShapeName2ID.find(name)!=gVehicleShapeName2ID.end()) {
00323         return gVehicleShapeName2ID[name];
00324     }
00325     return SVS_UNKNOWN;
00327 }

std::string getVehicleShapeName ( SUMOVehicleShape  id  )  throw ()

Returns the class name of the shape class given by its id.

Parameters:
[in] id The id of the shape class
Returns:
The string representation of this class

Definition at line 309 of file SUMOVehicleClass.cpp.

References gVehicleShapeID2Name, and SVS_UNKNOWN.

Referenced by TraCIServerAPI_VehicleType::processGet(), and SUMOVTypeParameter::write().

00309                                                  {
00310     if (id==SVS_UNKNOWN) {
00311         return "";
00312     }
00313     return gVehicleShapeID2Name[id];
00314 }

void initGuiShapeNames (  )  throw ()

Definition at line 281 of file SUMOVehicleClass.cpp.

References addToShapeNames(), SVS_BICYCLE, SVS_BUS, SVS_BUS_CITY, SVS_BUS_CITY_FLEXIBLE, SVS_BUS_OVERLAND, SVS_DELIVERY, SVS_E_VEHICLE, SVS_MOTORCYCLE, SVS_PASSENGER, SVS_PASSENGER_HATCHBACK, SVS_PASSENGER_SEDAN, SVS_PASSENGER_VAN, SVS_PASSENGER_WAGON, SVS_PEDESTRIAN, SVS_RAIL, SVS_RAIL_CARGO, SVS_RAIL_CITY, SVS_RAIL_FAST, SVS_RAIL_LIGHT, SVS_RAIL_SLOW, SVS_TRANSPORT, SVS_TRANSPORT_1TRAILER, and SVS_TRANSPORT_SEMITRAILER.

Referenced by main().

00281                             {
00282     addToShapeNames(SVS_PEDESTRIAN, "pedestrian");
00283     addToShapeNames(SVS_BICYCLE, "bicycle");
00284     addToShapeNames(SVS_MOTORCYCLE, "motorcycle");
00285     addToShapeNames(SVS_PASSENGER, "passenger");
00286     addToShapeNames(SVS_PASSENGER_SEDAN, "passenger/sedan");
00287     addToShapeNames(SVS_PASSENGER_HATCHBACK, "passenger/hatchback");
00288     addToShapeNames(SVS_PASSENGER_WAGON, "passenger/wagon");
00289     addToShapeNames(SVS_PASSENGER_VAN, "passenger/van");
00290     addToShapeNames(SVS_DELIVERY, "delivery");
00291     addToShapeNames(SVS_TRANSPORT, "transport");
00292     addToShapeNames(SVS_TRANSPORT_SEMITRAILER, "transport/semitrailer");
00293     addToShapeNames(SVS_TRANSPORT_1TRAILER, "transport/trailer");
00294     addToShapeNames(SVS_BUS, "bus");
00295     addToShapeNames(SVS_BUS_CITY, "bus/city");
00296     addToShapeNames(SVS_BUS_CITY_FLEXIBLE, "bus/flexible");
00297     addToShapeNames(SVS_BUS_OVERLAND, "bus/overland");
00298     addToShapeNames(SVS_RAIL, "rail");
00299     addToShapeNames(SVS_RAIL_LIGHT, "rail/light");
00300     addToShapeNames(SVS_RAIL_CITY, "rail/city");
00301     addToShapeNames(SVS_RAIL_SLOW, "rail/slow");
00302     addToShapeNames(SVS_RAIL_FAST, "rail/fast");
00303     addToShapeNames(SVS_RAIL_CARGO, "rail/cargo");
00304     addToShapeNames(SVS_E_VEHICLE, "evehicle");
00305 }

void parseVehicleClasses ( const std::vector< std::string > &  classesS,
std::vector< SUMOVehicleClass > &  classes 
) throw ()

Parses the given vector of class names into their enum-representation.

Parameters:
[in] classesS The names vector to parse
[out] classes The parsed classes

Definition at line 261 of file SUMOVehicleClass.cpp.

References getVehicleClassID().

00262                                                                   {
00263     for (std::vector<std::string>::const_iterator i=classesS.begin(); i!=classesS.end(); ++i) {
00264         classes.push_back(getVehicleClassID(*i));
00265     }
00266 }

void parseVehicleClasses ( const std::string &  classesS,
const std::string &  allowedS,
const std::string &  disallowedS,
std::vector< SUMOVehicleClass > &  allowed,
std::vector< SUMOVehicleClass > &  disallowed,
bool warnedAboutDeprecatedVClass 
) throw ()

Parses the given definition of allowed/disallowed vehicle classes into the given containers.

Parameters:
[in] classesS Definition which classes are (dis-)allowed (old "vclasses" style)
[in] allowedS Definition which classes are allowed
[in] disallowedS Definition which classes are not allowed
[out] allowed The vector of allowed vehicle classes to fill
[out] disallowed The vector of disallowed vehicle classes to fill
[in,out] warnedAboutDeprecatedVClass Whether a warning about having used the deprecated definition was printed once

Definition at line 228 of file SUMOVehicleClass.cpp.

References getVehicleClassID(), MsgHandler::getWarningInstance(), StringTokenizer::hasNext(), MsgHandler::inform(), and StringTokenizer::next().

Referenced by NLHandler::addLane(), RONetHandler::parseLane(), TraCIServerAPI_Lane::processSet(), and TraCIServerAPI_Edge::processSet().

00233                                                                {
00234     if (classesS.length()!=0) {
00235         if (!warnedAboutDeprecatedVClass) {
00236             MsgHandler::getWarningInstance()->inform("The vclasses attribute is deprecated. Please rebuilt your network.");
00237             warnedAboutDeprecatedVClass = true;
00238         }
00239         StringTokenizer st(classesS, ";");
00240         while (st.hasNext()) {
00241             std::string next = st.next();
00242             if (next[0]=='-') {
00243                 disallowed.push_back(getVehicleClassID(next.substr(1)));
00244             } else {
00245                 allowed.push_back(getVehicleClassID(next));
00246             }
00247         }
00248     }
00249     StringTokenizer sta(allowedS, " ");
00250     while (sta.hasNext()) {
00251         allowed.push_back(getVehicleClassID(sta.next()));
00252     }
00253     StringTokenizer std(disallowedS, " ");
00254     while (std.hasNext()) {
00255         disallowed.push_back(getVehicleClassID(std.next()));
00256     }
00257 }

std::string sSVC_BICYCLE ( "bicycle"   ) 

std::string sSVC_BUS ( "bus"   ) 

std::string sSVC_CITYRAIL ( "cityrail"   ) 

std::string sSVC_DELIVERY ( "delivery"   ) 

std::string sSVC_HOV ( "hov"   ) 

std::string sSVC_IGNORING ( "ignoring"   ) 

std::string sSVC_LIGHTRAIL ( "lightrail"   ) 

std::string sSVC_MOTORCYCLE ( "motorcycle"   ) 

std::string sSVC_PASSENGER ( "passenger"   ) 

std::string sSVC_PEDESTRIAN ( "pedestrian"   ) 

std::string sSVC_PRIVATE ( "private"   ) 

std::string sSVC_PUBLIC_ARMY ( "public_army"   ) 

std::string sSVC_PUBLIC_AUTHORITY ( "public_authority"   ) 

std::string sSVC_PUBLIC_EMERGENCY ( "public_emergency"   ) 

std::string sSVC_PUBLIC_TRANSPORT ( "public_transport"   ) 

std::string sSVC_RAIL_FAST ( "rail_fast"   ) 

std::string sSVC_RAIL_SLOW ( "rail_slow"   ) 

std::string sSVC_TAXI ( "taxi"   ) 

std::string sSVC_TRANSPORT ( "transport"   ) 

std::string sSVC_VIP ( "vip"   ) 


Variable Documentation

std::map<SUMOVehicleShape, std::string> gVehicleShapeID2Name

Definition at line 76 of file SUMOVehicleClass.cpp.

Referenced by addToShapeNames(), and getVehicleShapeName().

std::map<std::string, SUMOVehicleShape> gVehicleShapeName2ID

Definition at line 77 of file SUMOVehicleClass.cpp.

Referenced by addToShapeNames(), and getVehicleShapeID().


Generated on Wed May 5 00:06:39 2010 for Sumo - Simulation of Urban MObility by  doxygen 1.5.6