![]() |
SUMO - Simulation of Urban MObility
|
class for maintaining associations between enums and xml-strings More...
#include <SUMOXMLDefinitions.h>
Static Public Member Functions | |
Helper functions for ID-string manipulations | |
static bool | isValidNetID (const std::string &value) |
whether the given string is a valid id for a network element More... | |
static bool | isValidVehicleID (const std::string &value) |
whether the given string is a valid id for a vehicle or flow More... | |
static bool | isValidTypeID (const std::string &value) |
whether the given string is a valid id for an edge or vehicle type More... | |
static bool | isValidDetectorID (const std::string &value) |
whether the given string is a valid id for an detector More... | |
static bool | isValidAttribute (const std::string &value) |
whether the given string is a valid attribute for a certain key (for example, a name) More... | |
static bool | isValidFilename (const std::string &value) |
whether the given string is a valid attribute for a filename (for example, a name) More... | |
static bool | isValidListOfNetIDs (const std::string &value) |
whether the given string is a valid list of id for a network (empty aren't allowed) More... | |
static bool | isValidListOfTypeID (const std::string &value) |
whether the given string is a valid list of ids for an edge or vehicle type (empty aren't allowed) More... | |
static bool | isValidGenericParameterKey (const std::string &value) |
whether the given string is a valid key for a generic parameter More... | |
static bool | isValidGenericParameterValue (const std::string &value) |
whether the given string is a valid value for a generic parameter More... | |
static std::string | getJunctionIDFromInternalEdge (const std::string internalEdge) |
return the junction id when given an edge of type internal, crossing or WalkingArea More... | |
static std::string | getEdgeIDFromLane (const std::string laneID) |
return edge id when given the lane ID More... | |
Static Public Attributes | |
static const std::string | ALLOWED_TLS_LINKSTATES |
all allowed characters for phase state More... | |
static StringBijection< int >::Entry | attrs [] |
The names of SUMO-XML attributes (for passing to GenericSAXHandler) More... | |
static StringBijection< int > | Attrs |
The names of SUMO-XML attributes for use in netbuild. More... | |
static StringBijection< int >::Entry | tags [] |
The names of SUMO-XML elements (for passing to GenericSAXHandler) More... | |
static StringBijection< int > | Tags |
The names of SUMO-XML elements for use in netbuild. More... | |
Special values of SUMO-XML attributes | |
static StringBijection< SumoXMLNodeType > | NodeTypes |
node types More... | |
static StringBijection< SumoXMLEdgeFunc > | EdgeFunctions |
edge functions More... | |
static StringBijection< LaneSpreadFunction > | LaneSpreadFunctions |
lane spread functions More... | |
static StringBijection< RightOfWay > | RightOfWayValues |
lane spread functions More... | |
static StringBijection< LinkState > | LinkStates |
link states More... | |
static StringBijection< LinkDirection > | LinkDirections |
link directions More... | |
static StringBijection< TrafficLightType > | TrafficLightTypes |
traffic light types More... | |
static StringBijection< LaneChangeModel > | LaneChangeModels |
lane change models More... | |
static StringBijection< SumoXMLTag > | CarFollowModels |
car following models More... | |
static StringBijection< LateralAlignment > | LateralAlignments |
lateral alignments More... | |
static StringBijection< LaneChangeAction > | LaneChangeActions |
lane change actions More... | |
class for maintaining associations between enums and xml-strings
Definition at line 1219 of file SUMOXMLDefinitions.h.
|
static |
return edge id when given the lane ID
Definition at line 847 of file SUMOXMLDefinitions.cpp.
Referenced by NBPTStop::addAccess(), NIXMLPTHandler::addPTStop(), ROEdge::getStopPosition(), RORouteHandler::myStartElement(), and GNENet::retrieveLane().
|
static |
return the junction id when given an edge of type internal, crossing or WalkingArea
Definition at line 840 of file SUMOXMLDefinitions.cpp.
Referenced by NIImporter_SUMO::_loadNetwork(), NIImporter_SUMO::addConnection(), NIImporter_SUMO::addEdge(), NIImporter_SUMO::addLane(), and NLHandler::beginEdgeParsing().
|
static |
whether the given string is a valid attribute for a certain key (for example, a name)
Definition at line 877 of file SUMOXMLDefinitions.cpp.
Referenced by GNEBusStop::isValid(), GNEChargingStation::isValid(), GNEContainerStop::isValid(), GNEParkingArea::isValid(), GNEVaporizer::isValid(), GNERouteProbe::isValid(), GNEDetectorE3::isValid(), GNEVariableSpeedSign::isValid(), GNERerouter::isValid(), GNEDetectorE1::isValid(), GNEDetectorE1Instant::isValid(), GNECalibrator::isValid(), GNEDetectorE2::isValid(), GNEFrame::ACAttributeRow::onCmdSetAttribute(), GNEAttributeCarrier::parseAttributeFromXML(), and GNEAdditionalHandler::parseGenericParameter().
|
static |
whether the given string is a valid id for an detector
Definition at line 871 of file SUMOXMLDefinitions.cpp.
Referenced by GNEAdditional::isValidDetectorID(), and GNEAttributeCarrier::parseAttributeFromXML().
|
static |
whether the given string is a valid attribute for a filename (for example, a name)
Definition at line 883 of file SUMOXMLDefinitions.cpp.
Referenced by GNERouteProbe::isValid(), GNEDetectorE3::isValid(), GNERerouter::isValid(), GNECalibratorVehicleType::isValid(), GNEDetectorE1::isValid(), GNEDetectorE1Instant::isValid(), GNECalibrator::isValid(), GNEDetectorE2::isValid(), GNEFrame::ACAttributeRow::onCmdSetAttribute(), and GNEAttributeCarrier::parseAttributeFromXML().
|
static |
whether the given string is a valid key for a generic parameter
Definition at line 925 of file SUMOXMLDefinitions.cpp.
Referenced by GNEGenericParameterDialog::GenericParametersValues::GenericParameterRow::enableRow(), GNEAttributeCarrier::isGenericParametersValid(), ShapeHandler::myStartElement(), GNEGenericParameterDialog::GenericParametersOptions::GNEGenericParameterHandler::myStartElement(), GNEGenericParameterDialog::onCmdAccept(), GNEGenericParameterDialog::GenericParametersValues::onCmdSetAttribute(), GNEFrame::GenericParametersEditor::onCmdSetGenericParameter(), GNECrossing::setGenericParametersStr(), GNEConnection::setGenericParametersStr(), GNEPoly::setGenericParametersStr(), GNELane::setGenericParametersStr(), GNEPOI::setGenericParametersStr(), GNEJunction::setGenericParametersStr(), GNEEdge::setGenericParametersStr(), and GNEAdditional::setGenericParametersStr().
|
static |
whether the given string is a valid value for a generic parameter
Definition at line 932 of file SUMOXMLDefinitions.cpp.
Referenced by GNEGenericParameterDialog::GenericParametersValues::GenericParameterRow::enableRow(), GNEAttributeCarrier::isGenericParametersValid(), ShapeHandler::myStartElement(), GNEGenericParameterDialog::GenericParametersOptions::GNEGenericParameterHandler::myStartElement(), GNEGenericParameterDialog::onCmdAccept(), GNEGenericParameterDialog::GenericParametersValues::onCmdSetAttribute(), GNEFrame::GenericParametersEditor::onCmdSetGenericParameter(), GNECrossing::setGenericParametersStr(), GNEConnection::setGenericParametersStr(), GNEPoly::setGenericParametersStr(), GNELane::setGenericParametersStr(), GNEPOI::setGenericParametersStr(), GNEJunction::setGenericParametersStr(), GNEEdge::setGenericParametersStr(), and GNEAdditional::setGenericParametersStr().
|
static |
whether the given string is a valid list of id for a network (empty aren't allowed)
Definition at line 889 of file SUMOXMLDefinitions.cpp.
References isValidNetID(), and SUMOSAXAttributes::parseStringVector().
|
static |
whether the given string is a valid list of ids for an edge or vehicle type (empty aren't allowed)
Definition at line 907 of file SUMOXMLDefinitions.cpp.
References isValidTypeID(), and SUMOSAXAttributes::parseStringVector().
Referenced by GNEDetectorE3::isValid(), GNERerouter::isValid(), GNEDetectorE1::isValid(), GNEDetectorE1Instant::isValid(), GNETAZ::isValid(), GNEDetectorE2::isValid(), GNEFrame::ACAttributeRow::onCmdSetAttribute(), and GNEAttributeCarrier::parseAttributeFromXML().
|
static |
whether the given string is a valid id for a network element
Definition at line 853 of file SUMOXMLDefinitions.cpp.
Referenced by NBEdge::init(), GNECalibrator::isValid(), GNEPoly::isValid(), GNEJunction::isValid(), GNEPOI::isValid(), GNEEdge::isValid(), GNEAdditional::isValidAdditionalID(), isValidListOfNetIDs(), NBNode::NBNode(), GNERerouterIntervalDialog::onCmdEditClosingLaneReroute(), GNERerouterIntervalDialog::onCmdEditClosingReroute(), GNERerouterIntervalDialog::onCmdEditDestProbReroute(), GNERerouterIntervalDialog::onCmdEditParkingAreaReroute(), GNERerouterIntervalDialog::onCmdEditRouteProbReroute(), and GNEAttributeCarrier::parseAttributeFromXML().
|
static |
whether the given string is a valid id for an edge or vehicle type
Definition at line 865 of file SUMOXMLDefinitions.cpp.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNECalibratorFlow::isValid(), isValidListOfTypeID(), and GNEAdditionalHandler::parseGenericParameter().
|
static |
whether the given string is a valid id for a vehicle or flow
Definition at line 859 of file SUMOXMLDefinitions.cpp.
Referenced by GNERouteProbReroute::isValid(), GNECalibratorFlow::isValid(), SUMOVehicleParserHelper::parseFlowAttributes(), and SUMOVehicleParserHelper::parseVehicleAttributes().
|
static |
all allowed characters for phase state
Definition at line 1312 of file SUMOXMLDefinitions.h.
Referenced by NBTrafficLightLogic::addStep(), and MSTrafficLightLogic::init().
|
staticprivate |
all allowed characters for phase state
Definition at line 1355 of file SUMOXMLDefinitions.h.
|
static |
The names of SUMO-XML attributes (for passing to GenericSAXHandler)
Definition at line 1226 of file SUMOXMLDefinitions.h.
|
static |
The names of SUMO-XML attributes for use in netbuild.
Definition at line 1232 of file SUMOXMLDefinitions.h.
Referenced by toString< SumoXMLAttr >(), BinaryFormatter::writeAttr(), and BinaryFormatter::writeStaticHeader().
|
static |
car following models
Definition at line 1262 of file SUMOXMLDefinitions.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), MSFrame::checkOptions(), GNEAttributeCarrier::fillAttributeCarriers(), GUIVehicle::getTypeParameterWindow(), GNECalibratorVehicleType::isValid(), SUMOVTypeParameter::SUMOVTypeParameter(), and SUMOVTypeParameter::write().
|
staticprivate |
car follwing model values
Definition at line 1345 of file SUMOXMLDefinitions.h.
|
static |
edge functions
Definition at line 1241 of file SUMOXMLDefinitions.h.
Referenced by SUMOSAXAttributesImpl_Cached::getEdgeFunc(), SUMOSAXAttributesImpl_Xerces::getEdgeFunc(), SUMOSAXAttributesImpl_Binary::getEdgeFunc(), toString< SumoXMLEdgeFunc >(), and BinaryFormatter::writeStaticHeader().
|
static |
lane change actions
Definition at line 1268 of file SUMOXMLDefinitions.h.
Referenced by toString< LaneChangeAction >().
|
staticprivate |
lane change action values
Definition at line 1351 of file SUMOXMLDefinitions.h.
|
static |
lane change models
Definition at line 1259 of file SUMOXMLDefinitions.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEAttributeCarrier::fillAttributeCarriers(), GUIVehicle::getTypeParameterWindow(), GNECalibratorVehicleType::isValid(), and toString< LaneChangeModel >().
|
staticprivate |
lane change model values
Definition at line 1342 of file SUMOXMLDefinitions.h.
|
static |
lane spread functions
Definition at line 1244 of file SUMOXMLDefinitions.h.
Referenced by NIImporter_SUMO::addEdge(), GNEAttributeCarrier::fillAttributeCarriers(), GNEEdge::isValid(), GNEEdge::setAttribute(), toString< LaneSpreadFunction >(), and NIXMLEdgesHandler::tryGetLaneSpread().
|
staticprivate |
lane spread function values
Definition at line 1327 of file SUMOXMLDefinitions.h.
|
static |
lateral alignments
Definition at line 1265 of file SUMOXMLDefinitions.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEAttributeCarrier::fillAttributeCarriers(), GNECalibratorFlow::isValid(), GNECalibratorVehicleType::isValid(), libsumo::Person::setParameter(), libsumo::VehicleType::setSpeedDeviation(), TraCIServerAPI_VehicleType::setVariable(), libsumo::Vehicle::setVia(), and toString< LateralAlignment >().
|
staticprivate |
lanteral alignment values
Definition at line 1348 of file SUMOXMLDefinitions.h.
|
static |
link directions
Definition at line 1253 of file SUMOXMLDefinitions.h.
Referenced by libsumo::Lane::getLinks(), NLHandler::parseLinkDir(), and toString< LinkDirection >().
|
staticprivate |
link direction values
Definition at line 1336 of file SUMOXMLDefinitions.h.
|
static |
link states
Definition at line 1250 of file SUMOXMLDefinitions.h.
Referenced by NIImporter_SUMO::addConnection(), libsumo::Lane::getLinks(), NLHandler::parseLinkState(), and toString< LinkState >().
|
staticprivate |
link state values
Definition at line 1333 of file SUMOXMLDefinitions.h.
|
static |
node types
Definition at line 1238 of file SUMOXMLDefinitions.h.
Referenced by NGNode::buildNBNode(), GNEAttributeCarrier::fillAttributeCarriers(), SUMOSAXAttributesImpl_Cached::getNodeType(), SUMOSAXAttributesImpl_Xerces::getNodeType(), SUMOSAXAttributesImpl_Binary::getNodeType(), GNEJunction::isValid(), NIXMLNodesHandler::processNodeType(), GNEJunction::setAttribute(), toString< SumoXMLNodeType >(), and BinaryFormatter::writeStaticHeader().
|
static |
lane spread functions
Definition at line 1247 of file SUMOXMLDefinitions.h.
Referenced by NBFrame::checkOptions(), GNEAttributeCarrier::fillAttributeCarriers(), GNEJunction::getAttribute(), SUMOSAXAttributesImpl_Cached::getRightOfWay(), SUMOSAXAttributesImpl_Xerces::getRightOfWay(), SUMOSAXAttributesImpl_Binary::getRightOfWay(), GNEJunction::isValid(), GNEJunction::setAttribute(), and toString< RightOfWay >().
|
staticprivate |
lane spread function values
Definition at line 1330 of file SUMOXMLDefinitions.h.
|
staticprivate |
edge function values
Definition at line 1324 of file SUMOXMLDefinitions.h.
|
staticprivate |
containers for the different SUMOXMLDefinitions
node type values
Definition at line 1321 of file SUMOXMLDefinitions.h.
|
static |
The names of SUMO-XML elements (for passing to GenericSAXHandler)
Definition at line 1223 of file SUMOXMLDefinitions.h.
|
static |
The names of SUMO-XML elements for use in netbuild.
Definition at line 1229 of file SUMOXMLDefinitions.h.
Referenced by BinaryFormatter::openTag(), AGActivityGenHandler::parseBracket(), AGActivityGenHandler::parseBusLine(), AGActivityGenHandler::parseBusStation(), AGActivityGenHandler::parseCityGates(), AGActivityGenHandler::parseClosingHour(), AGActivityGenHandler::parseFrequency(), AGActivityGenHandler::parseGeneralCityInfo(), AGActivityGenHandler::parseOpeningHour(), AGActivityGenHandler::parseParameters(), AGActivityGenHandler::parseSchool(), AGActivityGenHandler::parseStation(), AGActivityGenHandler::parseStreets(), SUMOVehicleParserHelper::parseVTypeEmbedded(), toString< SumoXMLTag >(), BinaryFormatter::writeStaticHeader(), and BinaryFormatter::writeXMLHeader().
|
static |
traffic light types
Definition at line 1256 of file SUMOXMLDefinitions.h.
Referenced by NBNodeCont::analyzeCluster(), NIVisumTL::build(), NGNode::buildNBNode(), NBFrame::checkOptions(), NBNetBuilder::compute(), GNEAttributeCarrier::fillAttributeCarriers(), NBNodeCont::guessTLs(), NIImporter_SUMO::initTrafficLightLogic(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), NLHandler::initTrafficLightLogic(), NIImporter_OpenStreetMap::insertNodeChecking(), GNEJunction::isValid(), NIImporter_OpenDrive::loadNetwork(), NIXMLNodesHandler::processTrafficLightDefinitions(), NIImporter_DlrNavteq::TrafficlightsHandler::report(), GNEJunction::setAttribute(), toString< TrafficLightType >(), and NBNodeTypeComputer::validateRailCrossings().
|
staticprivate |
traffic light types values
Definition at line 1339 of file SUMOXMLDefinitions.h.