![]() |
Eclipse 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... | |
class for maintaining associations between enums and xml-strings
Definition at line 1344 of file SUMOXMLDefinitions.h.
|
static |
return edge id when given the lane ID
Definition at line 958 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 951 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 988 of file SUMOXMLDefinitions.cpp.
Referenced by GNEAttributeCarrier::checkParsedAttribute(), GNEChargingStation::isValid(), GNEBusStop::isValid(), GNEContainerStop::isValid(), GNEParkingArea::isValid(), GNEVaporizer::isValid(), GNERouteProbe::isValid(), GNEDetectorE3::isValid(), GNEDetectorE1::isValid(), GNEVariableSpeedSign::isValid(), GNERerouter::isValid(), GNEDetectorE1Instant::isValid(), GNECalibrator::isValid(), GNEDetectorE2::isValid(), GNEFrameAttributesModuls::AttributesCreatorRow::onCmdSetAttribute(), and GNEAdditionalHandler::parseGenericParameter().
|
static |
whether the given string is a valid id for an detector
Definition at line 982 of file SUMOXMLDefinitions.cpp.
Referenced by GNEAttributeCarrier::checkParsedAttribute(), and GNEAdditional::isValidDetectorID().
|
static |
whether the given string is a valid attribute for a filename (for example, a name)
Definition at line 994 of file SUMOXMLDefinitions.cpp.
Referenced by GNEAttributeCarrier::checkParsedAttribute(), GNERouteProbe::isValid(), GNEDetectorE3::isValid(), GNEDetectorE1::isValid(), GNERerouter::isValid(), GNEDetectorE1Instant::isValid(), GNECalibrator::isValid(), GNEDetectorE2::isValid(), GNEVehicleType::isValid(), and GNEFrameAttributesModuls::AttributesCreatorRow::onCmdSetAttribute().
|
static |
whether the given string is a valid key for a generic parameter
Definition at line 1034 of file SUMOXMLDefinitions.cpp.
Referenced by GNEGenericParameterDialog::GenericParametersValues::GenericParameterRow::enableRow(), GNEAttributeCarrier::isGenericParametersValid(), ShapeHandler::myStartElement(), GNEGenericParameterDialog::GenericParametersOptions::GNEGenericParameterHandler::myStartElement(), GNEGenericParameterDialog::onCmdAccept(), GNEGenericParameterDialog::GenericParametersValues::onCmdSetAttribute(), GNEFrameAttributesModuls::GenericParametersEditor::onCmdSetGenericParameter(), GNECrossing::setGenericParametersStr(), GNEConnection::setGenericParametersStr(), GNEVehicleType::setGenericParametersStr(), GNELane::setGenericParametersStr(), GNEPoly::setGenericParametersStr(), GNEStop::setGenericParametersStr(), GNEPOI::setGenericParametersStr(), GNEJunction::setGenericParametersStr(), GNERide::setGenericParametersStr(), GNEPersonTrip::setGenericParametersStr(), GNEWalk::setGenericParametersStr(), GNEEdge::setGenericParametersStr(), GNERoute::setGenericParametersStr(), GNEPerson::setGenericParametersStr(), GNEAdditional::setGenericParametersStr(), and GNEVehicle::setGenericParametersStr().
|
static |
whether the given string is a valid value for a generic parameter
Definition at line 1041 of file SUMOXMLDefinitions.cpp.
Referenced by GNEGenericParameterDialog::GenericParametersValues::GenericParameterRow::enableRow(), GNEAttributeCarrier::isGenericParametersValid(), ShapeHandler::myStartElement(), GNEGenericParameterDialog::GenericParametersOptions::GNEGenericParameterHandler::myStartElement(), GNEGenericParameterDialog::onCmdAccept(), GNEGenericParameterDialog::GenericParametersValues::onCmdSetAttribute(), GNEFrameAttributesModuls::GenericParametersEditor::onCmdSetGenericParameter(), GNECrossing::setGenericParametersStr(), GNEConnection::setGenericParametersStr(), GNEVehicleType::setGenericParametersStr(), GNELane::setGenericParametersStr(), GNEPoly::setGenericParametersStr(), GNEStop::setGenericParametersStr(), GNEPOI::setGenericParametersStr(), GNEJunction::setGenericParametersStr(), GNERide::setGenericParametersStr(), GNEPersonTrip::setGenericParametersStr(), GNEWalk::setGenericParametersStr(), GNEEdge::setGenericParametersStr(), GNERoute::setGenericParametersStr(), GNEPerson::setGenericParametersStr(), GNEAdditional::setGenericParametersStr(), and GNEVehicle::setGenericParametersStr().
|
static |
whether the given string is a valid list of id for a network (empty aren't allowed)
Definition at line 1000 of file SUMOXMLDefinitions.cpp.
References StringTokenizer::getVector(), and isValidNetID().
|
static |
whether the given string is a valid list of ids for an edge or vehicle type (empty aren't allowed)
Definition at line 1017 of file SUMOXMLDefinitions.cpp.
References StringTokenizer::getVector(), and isValidTypeID().
Referenced by GNEAttributeCarrier::checkParsedAttribute(), GNEDetectorE3::isValid(), GNEDetectorE1::isValid(), GNERerouter::isValid(), GNEDetectorE1Instant::isValid(), GNETAZ::isValid(), GNEDetectorE2::isValid(), and GNEFrameAttributesModuls::AttributesCreatorRow::onCmdSetAttribute().
|
static |
whether the given string is a valid id for a network element
Definition at line 964 of file SUMOXMLDefinitions.cpp.
Referenced by GNEAttributeCarrier::checkParsedAttribute(), NBEdge::init(), GNECalibrator::isValid(), GNEPoly::isValid(), GNERide::isValid(), GNEPersonTrip::isValid(), GNEPOI::isValid(), GNEJunction::isValid(), GNEWalk::isValid(), GNEEdge::isValid(), GNEVehicle::isValid(), GNEAdditional::isValidAdditionalID(), isValidListOfNetIDs(), NBNode::NBNode(), GNERerouterIntervalDialog::onCmdEditClosingLaneReroute(), GNERerouterIntervalDialog::onCmdEditClosingReroute(), GNERerouterIntervalDialog::onCmdEditDestProbReroute(), GNERerouterIntervalDialog::onCmdEditParkingAreaReroute(), and GNERerouterIntervalDialog::onCmdEditRouteProbReroute().
|
static |
whether the given string is a valid id for an edge or vehicle type
Definition at line 976 of file SUMOXMLDefinitions.cpp.
Referenced by GNERouteHandler::addPersonTrip(), GNECalibratorFlow::isValid(), GNEPerson::isValid(), GNEVehicle::isValid(), isValidListOfTypeID(), and GNEAdditionalHandler::parseGenericParameter().
|
static |
whether the given string is a valid id for a vehicle or flow
Definition at line 970 of file SUMOXMLDefinitions.cpp.
Referenced by GNEAttributeCarrier::checkParsedAttribute(), GNERouteHandler::closeRoute(), GNERouteProbReroute::isValid(), GNECalibratorFlow::isValid(), GNEVehicleType::isValid(), GNEStop::isValid(), GNEPerson::isValid(), GNEVehicle::isValid(), GNEDemandElement::isValidDemandElementID(), GNEFrameAttributesModuls::AttributesCreatorRow::onCmdSetAttribute(), SUMOVehicleParserHelper::parseFlowAttributes(), and SUMOVehicleParserHelper::parseID().
|
static |
all allowed characters for phase state
Definition at line 1446 of file SUMOXMLDefinitions.h.
Referenced by NBTrafficLightLogic::addStep(), and MSTrafficLightLogic::init().
|
staticprivate |
all allowed characters for phase state
Definition at line 1498 of file SUMOXMLDefinitions.h.
|
static |
The names of SUMO-XML attributes (for passing to GenericSAXHandler)
Definition at line 1351 of file SUMOXMLDefinitions.h.
Referenced by GNEFrame::GNEFrame().
|
static |
The names of SUMO-XML attributes for use in netbuild.
Definition at line 1357 of file SUMOXMLDefinitions.h.
Referenced by toString< SumoXMLAttr >(), BinaryFormatter::writeAttr(), and BinaryFormatter::writeStaticHeader().
|
static |
car following models
Definition at line 1393 of file SUMOXMLDefinitions.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVehicleTypeDialog::CarFollowingModelParameters::CarFollowingModelParameters(), MSFrame::checkOptions(), GNEAttributeCarrier::fillDemandElements(), GNEVehicleType::getAttribute(), GUIVehicle::getTypeParameterWindow(), GNEVehicleType::isValid(), GNEVehicleType::overwriteVType(), GNEVehicleTypeDialog::CarFollowingModelParameters::refreshCFMFields(), GNEVehicleType::setAttribute(), SUMOVTypeParameter::SUMOVTypeParameter(), and SUMOVTypeParameter::write().
|
staticprivate |
car follwing model values
Definition at line 1485 of file SUMOXMLDefinitions.h.
|
static |
edge functions
Definition at line 1366 of file SUMOXMLDefinitions.h.
Referenced by SUMOSAXAttributesImpl_Cached::getEdgeFunc(), SUMOSAXAttributesImpl_Xerces::getEdgeFunc(), SUMOSAXAttributesImpl_Binary::getEdgeFunc(), toString< SumoXMLEdgeFunc >(), and BinaryFormatter::writeStaticHeader().
|
static |
fringe types
Definition at line 1375 of file SUMOXMLDefinitions.h.
Referenced by GNEAttributeCarrier::fillNetElements(), GNEJunction::getAttribute(), SUMOSAXAttributesImpl_Cached::getFringeType(), SUMOSAXAttributesImpl_Binary::getFringeType(), SUMOSAXAttributesImpl_Xerces::getFringeType(), GNEJunction::isValid(), GNEJunction::setAttribute(), and toString< FringeType >().
|
staticprivate |
lane spread function values
Definition at line 1467 of file SUMOXMLDefinitions.h.
|
static |
lane change actions
Definition at line 1399 of file SUMOXMLDefinitions.h.
Referenced by toString< LaneChangeAction >().
|
staticprivate |
lane change action values
Definition at line 1491 of file SUMOXMLDefinitions.h.
|
static |
lane change models
Definition at line 1390 of file SUMOXMLDefinitions.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVehicleTypeDialog::VTypeAtributes::buildAttributesB(), GNEAttributeCarrier::fillDemandElements(), GNEVehicleType::getAttribute(), GUIVehicle::getTypeParameterWindow(), GNEVehicleType::isValid(), GNEVehicleType::overwriteVType(), GNEVehicleType::setAttribute(), and toString< LaneChangeModel >().
|
staticprivate |
lane change model values
Definition at line 1482 of file SUMOXMLDefinitions.h.
|
static |
lane spread functions
Definition at line 1369 of file SUMOXMLDefinitions.h.
Referenced by NIImporter_SUMO::addEdge(), GNEAttributeCarrier::fillNetElements(), GNEEdge::isValid(), GNEEdge::setAttribute(), toString< LaneSpreadFunction >(), and NIXMLEdgesHandler::tryGetLaneSpread().
|
staticprivate |
lane spread function values
Definition at line 1461 of file SUMOXMLDefinitions.h.
|
static |
lateral alignments
Definition at line 1396 of file SUMOXMLDefinitions.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVehicleTypeDialog::VTypeAtributes::buildAttributesB(), GNEAttributeCarrier::fillDemandElements(), GNECalibratorFlow::isValid(), GNEVehicleType::isValid(), GNEVehicleType::setAttribute(), libsumo::Person::setParameter(), libsumo::VehicleType::setSpeedDeviation(), TraCIServerAPI_VehicleType::setVariable(), libsumo::Vehicle::setVia(), and toString< LateralAlignment >().
|
staticprivate |
lanteral alignment values
Definition at line 1488 of file SUMOXMLDefinitions.h.
|
static |
link directions
Definition at line 1384 of file SUMOXMLDefinitions.h.
Referenced by libsumo::Lane::getLinks(), NLHandler::parseLinkDir(), and toString< LinkDirection >().
|
staticprivate |
link direction values
Definition at line 1476 of file SUMOXMLDefinitions.h.
|
static |
link states
Definition at line 1381 of file SUMOXMLDefinitions.h.
Referenced by NIImporter_SUMO::addConnection(), libsumo::Lane::getLinks(), RONetHandler::parseConnection(), NLHandler::parseLinkState(), and toString< LinkState >().
|
staticprivate |
link state values
Definition at line 1473 of file SUMOXMLDefinitions.h.
|
static |
node types
Definition at line 1363 of file SUMOXMLDefinitions.h.
Referenced by NGNode::buildNBNode(), GNEAttributeCarrier::fillNetElements(), SUMOSAXAttributesImpl_Cached::getNodeType(), SUMOSAXAttributesImpl_Xerces::getNodeType(), SUMOSAXAttributesImpl_Binary::getNodeType(), GNEJunction::isValid(), NIXMLNodesHandler::processNodeType(), GNEJunction::setAttribute(), toString< SumoXMLNodeType >(), and BinaryFormatter::writeStaticHeader().
|
static |
person modes
Definition at line 1378 of file SUMOXMLDefinitions.h.
Referenced by NLHandler::addEdgeLaneMeanData(), and toString< PersonMode >().
|
staticprivate |
person mode values
Definition at line 1470 of file SUMOXMLDefinitions.h.
|
static |
righ of way algorithms
Definition at line 1372 of file SUMOXMLDefinitions.h.
Referenced by NBFrame::checkOptions(), GNEAttributeCarrier::fillNetElements(), 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 1464 of file SUMOXMLDefinitions.h.
|
staticprivate |
edge function values
Definition at line 1458 of file SUMOXMLDefinitions.h.
|
staticprivate |
containers for the different SUMOXMLDefinitions
node type values
Definition at line 1455 of file SUMOXMLDefinitions.h.
|
static |
The names of SUMO-XML elements (for passing to GenericSAXHandler)
Definition at line 1348 of file SUMOXMLDefinitions.h.
|
static |
The names of SUMO-XML elements for use in netbuild.
Definition at line 1354 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 1387 of file SUMOXMLDefinitions.h.
Referenced by NBNodeCont::analyzeCluster(), NIVisumTL::build(), NGNode::buildNBNode(), NBFrame::checkOptions(), NBNetBuilder::compute(), GNEAttributeCarrier::fillNetElements(), 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 1479 of file SUMOXMLDefinitions.h.
|
static |
train types
Definition at line 1402 of file SUMOXMLDefinitions.h.
Referenced by GNEAttributeCarrier::fillCarFollowingModelAttributes(), GNEVehicleType::isValid(), and SUMOVehicleParserHelper::parseVTypeEmbedded().
|
staticprivate |
train type values values
Definition at line 1494 of file SUMOXMLDefinitions.h.