|
SUMO - Simulation of Urban MObility
|
#include <config.h>#include <string>#include <set>#include <utils/common/UtilExceptions.h>#include <utils/common/StringBijection.h>#include <utils/xml/SUMOXMLDefinitions.h>Go to the source code of this file.
Definition in file SUMOVehicleClass.h.
| typedef std::set<SUMOVehicleClass> SUMOVehicleClasses |
Definition at line 294 of file SUMOVehicleClass.h.
| enum SUMOEmissionClass |
Definition of vehicle emission classes.
The order is important - HBEFA computation helper use it.
Definition at line 193 of file SUMOVehicleClass.h.
| enum SUMOVehicleClass |
Definition of vehicle classes to differ between different lane usage and authority types.
Bits:
From NavTeq:
Definition at line 126 of file SUMOVehicleClass.h.
| enum SUMOVehicleShape |
Definition of vehicle classes to differ between different appearences.
Definition at line 49 of file SUMOVehicleClass.h.
| int getVehicleClassCompoundID | ( | const std::string & | name | ) |
Returns the OR'ed id of the compound class given by its name.
| [in] | name | The name of the abstract vehicle class |
Definition at line 160 of file SUMOVehicleClass.cpp.
References SumoVehicleClassStrings, and SVC_UNKNOWN.
| std::string getVehicleClassCompoundName | ( | int | id | ) |
Definition at line 119 of file SUMOVehicleClass.cpp.
References SumoVehicleClassStrings.
| SUMOVehicleClass getVehicleClassID | ( | const std::string & | name | ) |
Returns the class id of the abstract class given by its name.
| [in] | name | The name of the abstract vehicle class |
Definition at line 151 of file SUMOVehicleClass.cpp.
References SumoVehicleClassStrings.
Referenced by NIXMLEdgesHandler::addLane(), NBEdgeCont::applyOptions(), SUMOVehicleParserHelper::parseVehicleClass(), parseVehicleClasses(), and TraCIServerAPI_VehicleType::setVariable().
| std::string getVehicleClassNames | ( | const SUMOVehicleClasses & | ids | ) |
Returns the ids of the given classes, divided using a ' '.
| [in] | ids | The ids to encode |
Definition at line 136 of file SUMOVehicleClass.cpp.
References toString().
Referenced by NIXMLEdgesHandler::addEdge(), NWWriter_XML::writeEdgesAndConnections(), and NWWriter_SUMO::writeLane().
| SUMOEmissionClass getVehicleEmissionTypeID | ( | const std::string & | name | ) |
Returns the class id of the emission class given by its name.
| [in] | name | The name of the emission class |
Definition at line 220 of file SUMOVehicleClass.cpp.
References TplConvert< E >::_2int(), SVE_HDV_12_1, SVE_HDV_3_1, SVE_HDV_6_1, SVE_HDV_A0_12_1, SVE_HDV_A0_3_1, SVE_HDV_A0_6_1, SVE_P_LDV_14_1, SVE_P_LDV_7_1, SVE_P_LDV_A0_14_1, SVE_P_LDV_A0_7_1, SVE_UNKNOWN, and SVE_ZERO_EMISSIONS.
Referenced by SUMOVehicleParserHelper::parseEmissionClass(), and TraCIServerAPI_VehicleType::setVariable().
| std::string getVehicleEmissionTypeName | ( | SUMOEmissionClass | id | ) |
Returns the class name of the emission class given by its id.
| [in] | id | The id of the emission class |
Definition at line 254 of file SUMOVehicleClass.cpp.
References SVE_ZERO_EMISSIONS, and toString().
Referenced by TraCIServerAPI_VehicleType::getVariable(), and SUMOVTypeParameter::write().
| SUMOVehicleShape getVehicleShapeID | ( | const std::string & | name | ) |
Returns the class id of the shape class given by its name.
| [in] | name | The name of the shape class |
Definition at line 203 of file SUMOVehicleClass.cpp.
References SumoVehicleShapeStrings.
Referenced by TraCIServerAPI_VehicleType::setVariable().
| std::string getVehicleShapeName | ( | SUMOVehicleShape | id | ) |
Returns the class name of the shape class given by its id.
| [in] | id | The id of the shape class |
Definition at line 213 of file SUMOVehicleClass.cpp.
References SumoVehicleShapeStrings.
Referenced by TraCIServerAPI_VehicleType::getVariable(), and SUMOVTypeParameter::write().
| void parseVehicleClasses | ( | const std::string & | allowedS, |
| const std::string & | disallowedS, | ||
| SUMOVehicleClasses & | allowed, | ||
| SUMOVehicleClasses & | disallowed | ||
| ) |
Parses the given definition of allowed/disallowed vehicle classes into the given containers.
| [in] | allowedS | Definition which classes are allowed |
| [in] | disallowedS | Definition which classes are not allowed |
| [out] | allowed | The set of allowed vehicle classes to fill |
| [out] | disallowed | The set of disallowed vehicle classes to fill |
Definition at line 184 of file SUMOVehicleClass.cpp.
References parseVehicleClasses().
| void parseVehicleClasses | ( | const std::string & | classNames, |
| SUMOVehicleClasses & | container | ||
| ) |
Parses the given definition of allowed/disallowed vehicle classes into the given containers.
| [in] | classNames | Space separated class names |
| [out] | container | The set of vehicle classes to fill |
Definition at line 173 of file SUMOVehicleClass.cpp.
References getVehicleClassID(), StringTokenizer::hasNext(), and StringTokenizer::next().
Referenced by NIImporter_SUMO::_loadNetwork(), NIXMLEdgesHandler::addEdge(), NLHandler::addLane(), NIXMLTypesHandler::myStartElement(), RONetHandler::parseLane(), parseVehicleClasses(), TraCIServerAPI_Lane::processSet(), and TraCIServerAPI_Edge::processSet().
| void parseVehicleClasses | ( | const std::vector< std::string > & | classesS, |
| SUMOVehicleClasses & | classes | ||
| ) |
Parses the given vector of class names into their enum-representation.
| [in] | classesS | The names vector to parse |
| [out] | classes | The parsed classes |
Definition at line 194 of file SUMOVehicleClass.cpp.
References getVehicleClassID().
| const SUMOReal DEFAULT_VEH_ACCEL |
Referenced by MSVehicleType::build().
| const SUMOVehicleClass DEFAULT_VEH_CLASS |
Referenced by ROEdge::prohibits().
| const SUMOReal DEFAULT_VEH_DECEL |
Referenced by MSVehicleType::build().
| const SumoXMLTag DEFAULT_VEH_FOLLOW_MODEL |
Referenced by SUMOVTypeParameter::SUMOVTypeParameter().
| const SUMOReal DEFAULT_VEH_GUIWIDTH |
Referenced by SUMOVTypeParameter::SUMOVTypeParameter().
| const std::string DEFAULT_VEH_LANE_CHANGE_MODEL |
Referenced by SUMOVTypeParameter::SUMOVTypeParameter().
| const SUMOReal DEFAULT_VEH_LENGTH |
Referenced by SUMOVTypeParameter::SUMOVTypeParameter().
| const SUMOReal DEFAULT_VEH_MAXSPEED |
Referenced by SUMOVTypeParameter::SUMOVTypeParameter().
| const SUMOReal DEFAULT_VEH_MINGAP |
Referenced by SUMOVTypeParameter::SUMOVTypeParameter().
| const SUMOReal DEFAULT_VEH_PROB |
Referenced by MSRouteHandler::openRoute(), and SUMOVTypeParameter::SUMOVTypeParameter().
| const SUMOVehicleShape DEFAULT_VEH_SHAPE |
Referenced by SUMOVTypeParameter::SUMOVTypeParameter().
| const SUMOReal DEFAULT_VEH_SIGMA |
Referenced by MSVehicleType::build().
| const SUMOReal DEFAULT_VEH_SPEEDDEV |
Referenced by SUMOVTypeParameter::SUMOVTypeParameter().
| const SUMOReal DEFAULT_VEH_SPEEDFACTOR |
Referenced by SUMOVTypeParameter::SUMOVTypeParameter().
| const SUMOReal DEFAULT_VEH_TAU |
Referenced by MSVehicleType::build().
| const std::string DEFAULT_VTYPE_ID |