Eclipse SUMO - Simulation of Urban MObility
|
#include <config.h>
#include <string>
#include <map>
#include "SUMOVehicleClass.h"
#include <utils/common/StringUtils.h>
#include <utils/common/ToString.h>
#include <utils/common/MsgHandler.h>
#include <utils/common/StringTokenizer.h>
#include <utils/iodevices/OutputDevice.h>
#include <utils/xml/SUMOSAXAttributes.h>
Go to the source code of this file.
Functions | |
bool | canParseVehicleClasses (const std::string &classes) |
Checks whether the given string contains only known vehicle classes. | |
bool | canParseVehicleShape (const std::string &shape) |
Checks whether the given string contains only known vehicle shape. | |
const double | DEFAULT_BICYCLE_SPEED (20./3.6) |
const std::string | DEFAULT_BIKETYPE_ID ("DEFAULT_BIKETYPE") |
const double | DEFAULT_CONTAINER_TRANSHIP_SPEED (5./3.6) |
const std::string | DEFAULT_CONTAINERTYPE_ID ("DEFAULT_CONTAINERTYPE") |
const double | DEFAULT_PEDESTRIAN_SPEED (5./3.6) |
const std::string | DEFAULT_PEDTYPE_ID ("DEFAULT_PEDTYPE") |
const std::string | DEFAULT_RAILTYPE_ID ("DEFAULT_RAILTYPE") |
const std::string | DEFAULT_TAXITYPE_ID ("DEFAULT_TAXITYPE") |
const double | DEFAULT_VEH_PROB (1.) |
const std::string | DEFAULT_VTYPE_ID ("DEFAULT_VEHTYPE") |
const std::set< std::string > | DEFAULT_VTYPES ({DEFAULT_VTYPE_ID, DEFAULT_PEDTYPE_ID, DEFAULT_BIKETYPE_ID, DEFAULT_CONTAINERTYPE_ID, DEFAULT_TAXITYPE_ID, DEFAULT_RAILTYPE_ID}) |
SVCPermissions | extraDisallowed (SVCPermissions disallowed, const MMVersion &networkVersion) |
Interprets disallowed vehicles depending on network version. | |
double | getDefaultVehicleLength (const SUMOVehicleClass vc) |
Returns the default vehicle length This put into a function so it can be used by NBVehicle. | |
SVCPermissions | getVehicleClassCompoundID (const std::string &name) |
Returns the OR'ed id of the compound class given by its name. | |
SUMOVehicleClass | getVehicleClassID (const std::string &name) |
Returns the class id of the abstract class given by its name. | |
const std::string & | getVehicleClassNames (SVCPermissions permissions, bool expand) |
Returns the ids of the given classes, divided using a ' '. | |
const std::vector< std::string > & | getVehicleClassNamesList (SVCPermissions permissions) |
Returns the ids of the given classes, divided using a ' '. | |
SUMOVehicleShape | getVehicleShapeID (const std::string &name) |
Returns the class id of the shape class given by its name. | |
std::string | getVehicleShapeName (SUMOVehicleShape id) |
Returns the class name of the shape class given by its id. | |
SVCPermissions | invertPermissions (SVCPermissions permissions) |
negate the given permissions and ensure that only relevant bits are set | |
bool | isAirway (SVCPermissions permissions) |
Returns whether an edge with the given permissions is an airway edge. | |
bool | isBikepath (SVCPermissions permissions) |
Returns whether an edge with the given permissions is a bicycle edge. | |
bool | isForbidden (SVCPermissions permissions) |
Returns whether an edge with the given permissions is a forbidden edge. | |
bool | isForVulnerableModes (SVCPermissions permissions) |
Returns whether an edge with the given permissions allows only vulnerable road users. | |
bool | isRailway (SVCPermissions permissions) |
Returns whether an edge with the given permissions is a railway edge. | |
bool | isSidewalk (SVCPermissions permissions) |
Returns whether an edge with the given permissions is a sidewalk. | |
bool | isTram (SVCPermissions permissions) |
Returns whether an edge with the given permissions is a tram edge. | |
bool | isWaterway (SVCPermissions permissions) |
Returns whether an edge with the given permissions is a waterway edge. | |
bool | noVehicles (SVCPermissions permissions) |
Returns whether an edge with the given permissions forbids vehicles. | |
SVCPermissions | parseVehicleClasses (const std::string &allowedS) |
Parses the given definition of allowed vehicle classes into the given containers Deprecated classes go into a separate container. | |
SVCPermissions | parseVehicleClasses (const std::string &allowedS, const std::string &disallowedS, const MMVersion &networkVersion) |
Encodes the given vector of allowed and disallowed classes into a bitset. | |
SVCPermissions | parseVehicleClasses (const std::vector< std::string > &allowedS) |
Encodes the given vector of allowed class into a bitset Unlike the methods which parse a string it gives immediately a warning output on deprecated vehicle classes. | |
void | writePermissions (OutputDevice &into, SVCPermissions permissions) |
writes allowed disallowed attributes if needed; | |
void | writePreferences (OutputDevice &into, SVCPermissions preferred) |
writes allowed disallowed attributes if needed; | |
Definition in file SUMOVehicleClass.cpp.
bool canParseVehicleClasses | ( | const std::string & | classes | ) |
Checks whether the given string contains only known vehicle classes.
Definition at line 375 of file SUMOVehicleClass.cpp.
References StringTokenizer::hasNext(), StringTokenizer::next(), parseVehicleClassesCached, SumoVehicleClassStrings, and VehicleClassNameAll.
Referenced by GNEClosingLaneReroute::isValid(), GNEClosingReroute::isValid(), GNEVType::isValid(), GNEConnection::isValid(), GNEEdge::isValid(), GNEEdgeType::isValid(), GNELane::isValid(), and GNELaneType::isValid().
bool canParseVehicleShape | ( | const std::string & | shape | ) |
Checks whether the given string contains only known vehicle shape.
Definition at line 490 of file SUMOVehicleClass.cpp.
References SumoVehicleShapeStrings.
Referenced by GNEVType::isValid().
const double DEFAULT_BICYCLE_SPEED | ( | 20./3. | 6 | ) |
const std::string DEFAULT_BIKETYPE_ID | ( | "DEFAULT_BIKETYPE" | ) |
const double DEFAULT_CONTAINER_TRANSHIP_SPEED | ( | 5./3. | 6 | ) |
const std::string DEFAULT_CONTAINERTYPE_ID | ( | "DEFAULT_CONTAINERTYPE" | ) |
const double DEFAULT_PEDESTRIAN_SPEED | ( | 5./3. | 6 | ) |
const std::string DEFAULT_PEDTYPE_ID | ( | "DEFAULT_PEDTYPE" | ) |
const std::string DEFAULT_RAILTYPE_ID | ( | "DEFAULT_RAILTYPE" | ) |
const std::string DEFAULT_TAXITYPE_ID | ( | "DEFAULT_TAXITYPE" | ) |
const double DEFAULT_VEH_PROB | ( | 1. | ) |
const std::string DEFAULT_VTYPE_ID | ( | "DEFAULT_VEHTYPE" | ) |
const std::set< std::string > DEFAULT_VTYPES | ( | {DEFAULT_VTYPE_ID, DEFAULT_PEDTYPE_ID, DEFAULT_BIKETYPE_ID, DEFAULT_CONTAINERTYPE_ID, DEFAULT_TAXITYPE_ID, DEFAULT_RAILTYPE_ID} | ) |
SVCPermissions extraDisallowed | ( | SVCPermissions | disallowed, |
const MMVersion & | networkVersion | ||
) |
Interprets disallowed vehicles depending on network version.
[in] | disallowed | The values found in the disallow attribute |
[in] | networkVersion | The version of the network from which the disallow value was loaded |
Definition at line 408 of file SUMOVehicleClass.cpp.
References SVC_CABLE_CAR, SVC_RAIL_FAST, SVC_RAIL_URBAN, and SVC_SUBWAY.
Referenced by NIImporter_OpenStreetMap::applyLaneUse(), and parseVehicleClasses().
double getDefaultVehicleLength | ( | const SUMOVehicleClass | vc = SVC_IGNORING | ) |
Returns the default vehicle length This put into a function so it can be used by NBVehicle.
[in] | vc | the vehicle class |
Definition at line 549 of file SUMOVehicleClass.cpp.
References SVC_AIRCRAFT, SVC_BICYCLE, SVC_BUS, SVC_COACH, SVC_CONTAINER, SVC_DELIVERY, SVC_DRONE, SVC_EMERGENCY, SVC_MOPED, SVC_MOTORCYCLE, SVC_PEDESTRIAN, SVC_RAIL, SVC_RAIL_ELECTRIC, SVC_RAIL_FAST, SVC_RAIL_URBAN, SVC_SCOOTER, SVC_SHIP, SVC_SUBWAY, SVC_TRAILER, SVC_TRAM, SVC_TRUCK, and SVC_WHEELCHAIR.
SVCPermissions 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 329 of file SUMOVehicleClass.cpp.
References SumoVehicleClassStrings, and SVC_IGNORING.
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 320 of file SUMOVehicleClass.cpp.
References SumoVehicleClassStrings.
Referenced by NIXMLPTHandler::addPTLine(), GNEFrameAttributeModules::AttributesEditorRow::fillComboBox(), NIXMLTypesHandler::myStartElement(), NLHandler::myStartElement(), RONetHandler::myStartElement(), SUMOVehicleParserHelper::parseVehicleClass(), parseVehicleClasses(), parseVehicleClasses(), RODFNet::RODFNet(), and GNEVType::setAttribute().
const std::string & getVehicleClassNames | ( | SVCPermissions | permissions, |
bool | expand = false |
||
) |
Returns the ids of the given classes, divided using a ' '.
[in] | the | permissions to encode |
[in] | expand | whether 'all' should be used |
Definition at line 288 of file SUMOVehicleClass.cpp.
References getVehicleClassNamesCached, getVehicleClassNamesList(), joinToString(), SVCAll, and VehicleClassNameAll.
Referenced by MSRouteHandler::closeRoute(), IntermodalRouter< E, L, N, V >::compute(), GNEClosingLaneReroute::getAttribute(), GNEClosingReroute::getAttribute(), GNEConnection::getAttribute(), GNEEdge::getAttribute(), GNEEdgeType::getAttribute(), GNELane::getAttribute(), GNELaneType::getAttribute(), GNEEdge::getAttributeForSelection(), GNELane::getAttributeForSelection(), NBEdge::Connection::getDescription(), StopOffset::getExceptions(), GUILane::getParameterWindow(), NBNodeCont::joinNodeCluster(), GNEAllowVClassesDialog::onCmdAccept(), GNEAllowVClassesDialog::onCmdReset(), NBNode::recheckVClassConnections(), GNENet::restrictLane(), GNEClosingLaneReroute::writeAdditional(), NWWriter_SUMO::writeConnection(), NWWriter_XML::writeEdgesAndConnections(), NBTypeCont::writeEdgeTypes(), NWWriter_SUMO::writeLane(), writePermissions(), writePreferences(), and NWWriter_SUMO::writeStopOffsets().
const std::vector< std::string > & getVehicleClassNamesList | ( | SVCPermissions | permissions | ) |
Returns the ids of the given classes, divided using a ' '.
[in] | the | permissions to encode |
Definition at line 301 of file SUMOVehicleClass.cpp.
References SumoVehicleClassStrings, SVC_IGNORING, and vehicleClassNamesListCached.
Referenced by LIBSUMO_NAMESPACE::Lane::getAllowed(), LIBSUMO_NAMESPACE::Lane::getChangePermissions(), LIBSUMO_NAMESPACE::Lane::getDisallowed(), and getVehicleClassNames().
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 480 of file SUMOVehicleClass.cpp.
References SumoVehicleShapeStrings.
Referenced by GNEVehicle::drawGL(), GNEVType::setAttribute(), and GNEVehicleTypeDialog::VTypeAttributes::VShapeRow::setVShapeLabelImage().
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 496 of file SUMOVehicleClass.cpp.
References SumoVehicleShapeStrings.
Referenced by GNEVType::getAttribute(), GUIVehicle::getTypeParameterWindow(), GUIMEVehicle::getTypeParameterWindow(), GNEVType::overwriteVType(), and SUMOVTypeParameter::write().
SVCPermissions invertPermissions | ( | SVCPermissions | permissions | ) |
negate the given permissions and ensure that only relevant bits are set
Definition at line 423 of file SUMOVehicleClass.cpp.
References SVCAll.
Referenced by GNEClosingLaneReroute::getAttribute(), GNEClosingReroute::getAttribute(), GNEConnection::getAttribute(), GNEEdge::getAttribute(), GNEEdgeType::getAttribute(), GNELane::getAttribute(), GNELaneType::getAttribute(), LIBSUMO_NAMESPACE::Lane::getDisallowed(), parseVehicleClasses(), GNEClosingLaneReroute::setAttribute(), GNEClosingReroute::setAttribute(), GNEConnection::setAttribute(), GNEEdgeType::setAttribute(), GNELane::setAttribute(), GNELaneType::setAttribute(), LIBSUMO_NAMESPACE::Edge::setDisallowed(), LIBSUMO_NAMESPACE::Edge::setDisallowed(), and LIBSUMO_NAMESPACE::Lane::setDisallowed().
bool isAirway | ( | SVCPermissions | permissions | ) |
Returns whether an edge with the given permissions is an airway edge.
[in] | permissions | The permissions of the edge |
Definition at line 520 of file SUMOVehicleClass.cpp.
References SVC_AIRCRAFT, and SVC_DRONE.
Referenced by GUILane::drawGL(), and GUIJunctionWrapper::GUIJunctionWrapper().
bool isBikepath | ( | SVCPermissions | permissions | ) |
Returns whether an edge with the given permissions is a bicycle edge.
[in] | permissions | The permissions of the edge |
Definition at line 509 of file SUMOVehicleClass.cpp.
References SVC_BICYCLE, and SVC_PASSENGER.
Referenced by NBEdge::getInternalLaneWidth().
bool isForbidden | ( | SVCPermissions | permissions | ) |
Returns whether an edge with the given permissions is a forbidden edge.
[in] | permissions | The permissions of the edge |
Definition at line 525 of file SUMOVehicleClass.cpp.
References SVCAll.
Referenced by NBOwnTLDef::allowUnrelated(), NBNode::ApproachingDivider::ApproachingDivider(), NBEdgeCont::checkGeometries(), NBEdge::divideOnEdges(), noVehicles(), NBOwnTLDef::patchStateForCrossings(), and NBEdge::recheckLanes().
bool isForVulnerableModes | ( | SVCPermissions | permissions | ) |
Returns whether an edge with the given permissions allows only vulnerable road users.
[in] | permissions | The permissions of the edge |
Definition at line 537 of file SUMOVehicleClass.cpp.
References SVC_VULNERABLE.
Referenced by NBNodeCont::pruneClusterFringe().
bool isRailway | ( | SVCPermissions | permissions | ) |
Returns whether an edge with the given permissions is a railway edge.
[in] | permissions | The permissions of the edge |
Definition at line 501 of file SUMOVehicleClass.cpp.
References SVC_PASSENGER, and SVC_RAIL_CLASSES.
Referenced by NIXMLPTHandler::addPTStop(), MSDevice_Tripinfo::addRideTransportData(), NBEdge::appendTurnaround(), NBRequest::bidiConflict(), NBEdge::buildInnerEdges(), NGEdge::buildNBEdge(), MSDriveWay::buildRoute(), MSDriveWay::checkCrossingFlanks(), NBEdgeCont::checkGeometries(), MSVehicle::cleanupFurtherLanes(), NBTrafficLightDefinition::collectAllLinks(), NBEdge::computeEdge2Edges(), MSVehicle::computeFurtherLanes(), NBNodeShapeComputer::computeNodeShapeDefault(), NBOwnTLDef::computeUnblockedWeightedStreamNumber(), NBPTLineCont::constructRoute(), MSLane::detectCollisions(), GUILane::drawAsRailway(), MSVehicle::enterLaneAtLaneChange(), MSVehicle::enterLaneAtMove(), MSVehicle::executeMove(), NIImporter_OpenStreetMap::extendRailwayDistances(), GNELane::getColorValue(), GUILane::getColorValue(), NWWriter_OpenDrive::getLaneType(), NBNode::getLinkState(), MSLane::getMaximumBrakeDist(), GUIVehicle::getParameterWindow(), RouterProvider< E, L, N, V >::getVehicleRouter(), NBRailwaySignalGuesser::guessByStops(), GUIJunctionWrapper::GUIJunctionWrapper(), MSLane::incorporateVehicle(), NIImporter_OpenStreetMap::insertEdge(), NIImporter_OpenStreetMap::interpretTransportType(), NBEdge::isBidiRail(), NBNode::isExplicitRailNoBidi(), MSLane::isInsertionSuccess(), NBEdge::isRailDeadEnd(), MSVehicle::leaveLane(), MSVehicle::planMoveInternal(), MSVehicle::processNextStop(), NBNodeCont::pruneClusterFringe(), NBNodeCont::removeComponents(), NBEdge::removeInvalidConnections(), RORouteDef::repairCurrentRoute(), MSVehicle::setApproachingForAllLinks(), NBEdge::shiftPositionAtNode(), GNELane::DrawingConstants::update(), MSVehicle::updateBestLanes(), MSVehicle::updateFurtherLanes(), and MSRailSignalControl::vehicleStateChanged().
bool isSidewalk | ( | SVCPermissions | permissions | ) |
Returns whether an edge with the given permissions is a sidewalk.
[in] | permissions | The permissions of the edge |
Definition at line 531 of file SUMOVehicleClass.cpp.
References SVC_PEDESTRIAN, and SVCAll.
Referenced by NBEdgeCont::checkGeometries(), and noVehicles().
bool isTram | ( | SVCPermissions | permissions | ) |
Returns whether an edge with the given permissions is a tram edge.
[in] | permissions | The permissions of the edge |
Definition at line 505 of file SUMOVehicleClass.cpp.
References SVC_PASSENGER, SVC_RAIL_CLASSES, and SVC_TRAM.
Referenced by NBEdgeCont::joinTramEdges().
bool isWaterway | ( | SVCPermissions | permissions | ) |
Returns whether an edge with the given permissions is a waterway edge.
[in] | permissions | The permissions of the edge |
Definition at line 515 of file SUMOVehicleClass.cpp.
References SVC_SHIP.
Referenced by NBNodeTypeComputer::computeNodeTypes(), GUILane::drawAsWaterway(), GNELane::drawAsWaterway(), GUILane::drawGL(), GUIJunctionWrapper::GUIJunctionWrapper(), and NBNodeCont::removeComponents().
bool noVehicles | ( | SVCPermissions | permissions | ) |
Returns whether an edge with the given permissions forbids vehicles.
[in] | permissions | The permissions of the edge |
Definition at line 543 of file SUMOVehicleClass.cpp.
References isForbidden(), and isSidewalk().
Referenced by MSActuatedTrafficLightLogic::init(), MSDelayBasedTrafficLightLogic::init(), and NEMALogic::init().
SVCPermissions parseVehicleClasses | ( | const std::string & | allowedS | ) |
Parses the given definition of allowed vehicle classes into the given containers Deprecated classes go into a separate container.
[in] | classNames | Space separated class names |
[out] | container | The set of vehicle classes to fill throws ProcessError if parsing fails |
Definition at line 342 of file SUMOVehicleClass.cpp.
References deprecatedVehicleClassesSeen, getVehicleClassID(), gIgnoreUnknownVClass, StringTokenizer::hasNext(), StringTokenizer::next(), parseVehicleClassesCached, SumoVehicleClassStrings, SVCAll, TL, VehicleClassNameAll, WRITE_ERRORF, and WRITE_WARNINGF.
Referenced by NIImporter_SUMO::_loadNetwork(), NIImporter_SUMO::addConnection(), NIXMLEdgesHandler::addEdge(), NIXMLEdgesHandler::addLane(), NLHandler::addLane(), TraCIServer::addSubscriptionFilter(), LIBSUMO_NAMESPACE::Vehicle::addSubscriptionFilterVClass(), NBEdgeCont::applyOptions(), NBNetBuilder::applyOptions(), NLEdgeControlBuilder::build(), MSVehicleType::check(), NBNetBuilder::compute(), MSTriggeredRerouter::myStartElement(), NIXMLTypesHandler::myStartElement(), RONetHandler::parseLane(), NIXMLConnectionsHandler::parseLaneBound(), AdditionalHandler::parseSumoBaseObject(), parseVehicleClasses(), LIBSUMO_NAMESPACE::Edge::setAllowed(), LIBSUMO_NAMESPACE::Edge::setAllowed(), LIBSUMO_NAMESPACE::Lane::setAllowed(), GNEClosingLaneReroute::setAttribute(), GNEClosingReroute::setAttribute(), GNEConnection::setAttribute(), GNEEdgeType::setAttribute(), GNELane::setAttribute(), GNELaneType::setAttribute(), LIBSUMO_NAMESPACE::Lane::setChangePermissions(), LIBSUMO_NAMESPACE::Edge::setDisallowed(), LIBSUMO_NAMESPACE::Edge::setDisallowed(), LIBSUMO_NAMESPACE::Lane::setDisallowed(), and StopOffset::StopOffset().
SVCPermissions parseVehicleClasses | ( | const std::string & | allowedS, |
const std::string & | disallowedS, | ||
const MMVersion & | networkVersion = NETWORK_VERSION |
||
) |
Encodes the given vector of allowed and disallowed classes into a bitset.
[in] | allowedS | Definition which classes are allowed |
[in] | disallowedS | Definition which classes are not allowed |
Definition at line 394 of file SUMOVehicleClass.cpp.
References extraDisallowed(), invertPermissions(), parseVehicleClasses(), SVCAll, TL, and WRITE_WARNING.
SVCPermissions parseVehicleClasses | ( | const std::vector< std::string > & | allowedS | ) |
Encodes the given vector of allowed class into a bitset Unlike the methods which parse a string it gives immediately a warning output on deprecated vehicle classes.
[in] | classesS | The names vector to parse |
Definition at line 429 of file SUMOVehicleClass.cpp.
References getVehicleClassID(), SumoVehicleClassStrings, SVCAll, TL, VehicleClassNameAll, and WRITE_WARNINGF.
void writePermissions | ( | OutputDevice & | into, |
SVCPermissions | permissions | ||
) |
writes allowed disallowed attributes if needed;
Definition at line 447 of file SUMOVehicleClass.cpp.
References getVehicleClassNames(), NUM_VCLASSES, SUMO_ATTR_ALLOW, SUMO_ATTR_DISALLOW, SUMOVehicleClass_MAX, SVCAll, VehicleClassNameAll, and OutputDevice::writeAttr().
Referenced by NWWriter_SUMO::writeConnection(), NWWriter_XML::writeEdgesAndConnections(), NBTypeCont::writeEdgeTypes(), and NWWriter_SUMO::writeLane().
void writePreferences | ( | OutputDevice & | into, |
SVCPermissions | preferred | ||
) |
writes allowed disallowed attributes if needed;
Definition at line 470 of file SUMOVehicleClass.cpp.
References getVehicleClassNames(), SUMO_ATTR_PREFER, SVCAll, and OutputDevice::writeAttr().
Referenced by NWWriter_XML::writeEdgesAndConnections(), and NWWriter_SUMO::writeLane().
std::set<std::string> deprecatedVehicleClassesSeen |
Definition at line 93 of file SUMOVehicleClass.cpp.
Referenced by NIImporter_SUMO::_loadNetwork(), NLEdgeControlBuilder::build(), loadNet(), ROLoader::loadNet(), NILoader::loadXML(), and parseVehicleClasses().
const SUMOEmissionClass EMISSION_CLASS_UNSPECIFIED = -1 |
emission class not specified
Definition at line 162 of file SUMOVehicleClass.cpp.
Referenced by EnergyParams::EnergyParams().
|
static |
Definition at line 149 of file SUMOVehicleClass.cpp.
Referenced by getVehicleClassNames().
const int NUM_VCLASSES = SumoVehicleClassStrings.size() - 8 |
Definition at line 91 of file SUMOVehicleClass.cpp.
Referenced by writePermissions().
|
static |
Definition at line 148 of file SUMOVehicleClass.cpp.
Referenced by canParseVehicleClasses(), and parseVehicleClasses().
const SUMOVehicleClass SUMOVehicleClass_MAX = SVC_CUSTOM2 |
Definition at line 156 of file SUMOVehicleClass.cpp.
Referenced by MSEdge::rebuildAllowedLanes(), MSEdge::rebuildAllowedTargets(), and writePermissions().
|
static |
Definition at line 41 of file SUMOVehicleClass.cpp.
StringBijection< SUMOVehicleClass > SumoVehicleClassStrings(sumoVehicleClassStringInitializer, SVC_CUSTOM2, false) | ( | sumoVehicleClassStringInitializer | , |
SVC_CUSTOM2 | , | ||
false | |||
) |
Referenced by LIBSUMO_NAMESPACE::Vehicle::add(), CHBuilder< E, V >::buildContractionHierarchy(), GNELane::buildRechableOperations(), canParseVehicleClasses(), TraCIServerAPI_Simulation::commandPositionConversion(), LIBSUMO_NAMESPACE::Simulation::convertRoad(), GNEFrameAttributeModules::AttributesEditorRow::fillComboBox(), GNEAttributeCarrier::fillDemandElements(), GUIApplicationWindow::fillMenuBar(), GNEAttributeCarrier::fillNetworkElements(), GNEAttributeCarrier::getACIcon(), GUILane::getPopUpMenu(), GUIVehicle::getTypeParameterWindow(), GUIMEVehicle::getTypeParameterWindow(), getVehicleClassCompoundID(), getVehicleClassID(), getVehicleClassNamesList(), NIImporter_OpenStreetMap::interpretTransportType(), GUIApplicationWindow::onCmdEditChosen(), GNEViewNet::onCmdLaneReachability(), GNERouteFrame::RouteModeSelector::onCmdSelectVClass(), GNEAttributeCarrier::parse(), SUMOVehicleParserHelper::parseVehicleClass(), parseVehicleClasses(), parseVehicleClasses(), GNERouteFrame::RouteModeSelector::RouteModeSelector(), GNEVehicleTypeDialog::VTypeAttributes::VClassRow::setVariable(), GUIViewTraffic::showLaneReachability(), toString< SUMOVehicleClass >(), and GNEVehicleTypeDialog::VTypeAttributes::VClassRow::VClassRow().
|
static |
Definition at line 96 of file SUMOVehicleClass.cpp.
StringBijection< SUMOVehicleShape > SumoVehicleShapeStrings(sumoVehicleShapeStringInitializer, SUMOVehicleShape::UNKNOWN, false) | ( | sumoVehicleShapeStringInitializer | , |
SUMOVehicleShape::UNKNOWN | , | ||
false | |||
) |
Referenced by canParseVehicleShape(), GNEAttributeCarrier::fillDemandElements(), getVehicleShapeID(), getVehicleShapeName(), GNEAttributeCarrier::parse(), SUMOVehicleParserHelper::parseGuiShape(), GNEVType::setAttribute(), GNEVehicleTypeDialog::VTypeAttributes::VShapeRow::updateValue(), and GNEVehicleTypeDialog::VTypeAttributes::VShapeRow::VShapeRow().
const SVCPermissions SVC_UNSPECIFIED = -1 |
permissions not specified
Definition at line 160 of file SUMOVehicleClass.cpp.
Referenced by NIImporter_SUMO::addConnection(), NIXMLEdgesHandler::addEdge(), NBEdge::allowsChangingLeft(), NBEdge::allowsChangingRight(), NBEdge::applyTurnSigns(), NBEdge::divideOnEdges(), GNEConnection::getAttribute(), NBEdge::Connection::getDescription(), NBNodeCont::joinNodeCluster(), NIXMLConnectionsHandler::parseLaneBound(), NBEdge::recheckLanes(), GNEConnection::setAttribute(), NBEdge::setConnection(), NBEdge::updateChangeRestrictions(), NWWriter_SUMO::writeConnection(), NWWriter_XML::writeEdgesAndConnections(), NWWriter_SUMO::writeInternalEdges(), and NWWriter_SUMO::writeLane().
const SVCPermissions SVCAll = 2 * (long long int)SUMOVehicleClass_MAX - 1 |
all VClasses are allowed
Definition at line 158 of file SUMOVehicleClass.cpp.
Referenced by IntermodalNetwork< E, L, N, V >::addCarEdges(), NLHandler::addLane(), NIImporter_OpenStreetMap::applyChangeProhibition(), NBEdge::applyTurnSigns(), NBEdge::buildInnerEdges(), NBNode::computeLanes2Lanes(), NIImporter_MATSim::EdgesHandler::computePermission(), NBEdge::dismissVehicleClassInformation(), LIBSUMO_NAMESPACE::Lane::getAllowed(), NWWriter_DlrNavteq::getAllowedTypes(), GNEEdgeType::getAttribute(), GNELaneType::getAttribute(), GNEEdge::getAttributeForSelection(), GNELane::getAttributeForSelection(), NBEdge::getFirstNonPedestrianNonBicycleLaneIndex(), NWWriter_OpenDrive::getLaneType(), MSEdge::getNumDrivingLanes(), getVehicleClassNames(), NBEdgeCont::guessRoundabouts(), NBEdge::hasPermissions(), NBRailwayTopologyAnalyzer::hasRailway(), MSEdge::initialize(), GUIVisualizationSettings::initNeteditDefaults(), GUIVisualizationSettings::initSumoGuiDefaults(), invertPermissions(), isForbidden(), isSidewalk(), MSTriggeredRerouter::myEndElement(), GNERerouterIntervalDialog::onCmdAddClosingLaneReroute(), GNERerouterIntervalDialog::onCmdAddClosingReroute(), RONetHandler::parseLane(), parseVehicleClasses(), parseVehicleClasses(), parseVehicleClasses(), NBEdge::prohibitsChanging(), MSEdge::rebuildAllowedLanes(), NBEdge::recheckLanes(), MSLane::resetPermissions(), ROEdge::ROEdge(), GNEEdgeType::setAttribute(), GNELaneType::setAttribute(), MSTriggeredRerouter::setPermissions(), MSTriggeredRerouter::triggerRouting(), NBEdge::updateChangeRestrictions(), GNEClosingLaneReroute::writeAdditional(), NWWriter_SUMO::writeConnection(), NWWriter_XML::writeEdgesAndConnections(), NWWriter_SUMO::writeInternalEdges(), NWWriter_SUMO::writeLane(), writePermissions(), writePreferences(), and NWWriter_DlrNavteq::writeProhibitedManoeuvres().
|
static |
Definition at line 150 of file SUMOVehicleClass.cpp.
Referenced by canParseVehicleClasses(), getVehicleClassNames(), parseVehicleClasses(), parseVehicleClasses(), and writePermissions().
|
static |
Definition at line 147 of file SUMOVehicleClass.cpp.
Referenced by getVehicleClassNamesList().