![]() |
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 | isValidAdditionalID (const std::string &value) |
whether the given string is a valid id for an additional object 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 | isValidParameterKey (const std::string &value) |
whether the given string is a valid key for a parameter More... | |
static bool | isValidParameterValue (const std::string &value) |
whether the given string is a valid value for a 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 1349 of file SUMOXMLDefinitions.h.
|
static |
return edge id when given the lane ID
Definition at line 961 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 954 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 id for an additional object
Definition at line 984 of file SUMOXMLDefinitions.cpp.
Referenced by GNEAttributeCarrier::checkParsedAttribute(), GNECalibrator::isValid(), and GNEAdditional::isValidAdditionalID().
|
static |
whether the given string is a valid attribute for a certain key (for example, a name)
Definition at line 995 of file SUMOXMLDefinitions.cpp.
Referenced by GNEAttributeCarrier::checkParsedAttribute(), GNEBusStop::isValid(), GNECalibrator::isValid(), GNEChargingStation::isValid(), GNEContainerStop::isValid(), GNEDetectorE1::isValid(), GNEDetectorE1Instant::isValid(), GNEDetectorE2::isValid(), GNEDetectorE3::isValid(), GNEParkingArea::isValid(), GNERerouter::isValid(), GNERouteProbe::isValid(), GNEVaporizer::isValid(), GNEVariableSpeedSign::isValid(), isValidParameterKey(), GNEFrameAttributesModuls::AttributesCreatorRow::onCmdSetAttribute(), and GNEAdditionalHandler::parseParameter().
|
static |
whether the given string is a valid id for an detector
Definition at line 989 of file SUMOXMLDefinitions.cpp.
Referenced by GNEAttributeCarrier::checkParsedAttribute(), GNEAdditional::isValidDetectorID(), and GNEFrameAttributesModuls::AttributesCreatorRow::onCmdSetAttribute().
|
static |
whether the given string is a valid attribute for a filename (for example, a name)
Definition at line 1001 of file SUMOXMLDefinitions.cpp.
Referenced by GNEAttributeCarrier::checkParsedAttribute(), GNECalibrator::isValid(), GNEDetectorE1::isValid(), GNEDetectorE1Instant::isValid(), GNEDetectorE2::isValid(), GNEDetectorE3::isValid(), GNERerouter::isValid(), GNERouteProbe::isValid(), GNEVehicleType::isValid(), and GNEFrameAttributesModuls::AttributesCreatorRow::onCmdSetAttribute().
|
static |
whether the given string is a valid list of id for a network (empty aren't allowed)
Definition at line 1007 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 1024 of file SUMOXMLDefinitions.cpp.
References StringTokenizer::getVector(), and isValidTypeID().
Referenced by GNEAttributeCarrier::checkParsedAttribute(), GNEDetectorE1::isValid(), GNEDetectorE1Instant::isValid(), GNEDetectorE2::isValid(), GNEDetectorE3::isValid(), GNERerouter::isValid(), GNETAZ::isValid(), and GNEFrameAttributesModuls::AttributesCreatorRow::onCmdSetAttribute().
|
static |
whether the given string is a valid id for a network element
Definition at line 967 of file SUMOXMLDefinitions.cpp.
Referenced by NBEdge::init(), GNEPersonTrip::isValid(), GNERide::isValid(), GNEVehicle::isValid(), GNEWalk::isValid(), GNEEdge::isValid(), GNEJunction::isValid(), isValidListOfNetIDs(), NBNode::NBNode(), GNERerouterIntervalDialog::onCmdEditClosingLaneReroute(), GNERerouterIntervalDialog::onCmdEditClosingReroute(), GNERerouterIntervalDialog::onCmdEditDestProbReroute(), GNERerouterIntervalDialog::onCmdEditParkingAreaReroute(), GNERerouterIntervalDialog::onCmdEditRouteProbReroute(), and GNEFrameAttributesModuls::AttributesCreatorRow::onCmdSetAttribute().
|
static |
whether the given string is a valid key for a parameter
Definition at line 1041 of file SUMOXMLDefinitions.cpp.
References isValidAttribute().
Referenced by GNEParametersDialog::ParametersValues::ParameterRow::enableRow(), Parameterised::isParameterValid(), GNEParametersDialog::ParametersOptions::GNEParameterHandler::myStartElement(), ShapeHandler::myStartElement(), GNEParametersDialog::onCmdAccept(), and GNEParametersDialog::ParametersValues::onCmdSetAttribute().
|
static |
whether the given string is a valid value for a parameter
Definition at line 1052 of file SUMOXMLDefinitions.cpp.
Referenced by GNEParametersDialog::ParametersValues::ParameterRow::enableRow(), Parameterised::isParameterValid(), GNEParametersDialog::ParametersOptions::GNEParameterHandler::myStartElement(), ShapeHandler::myStartElement(), GNEParametersDialog::onCmdAccept(), and GNEParametersDialog::ParametersValues::onCmdSetAttribute().
|
static |
whether the given string is a valid id for an edge or vehicle type
Definition at line 979 of file SUMOXMLDefinitions.cpp.
Referenced by GNERouteHandler::addPersonTrip(), ShapeHandler::addPOI(), ShapeHandler::addPoly(), GNECalibratorFlow::isValid(), GNEPOI::isValid(), GNEPoly::isValid(), GNEPerson::isValid(), GNEVehicle::isValid(), isValidListOfTypeID(), GNEFrameAttributesModuls::AttributesCreatorRow::onCmdSetAttribute(), GNEAdditionalHandler::parseAndBuildPOI(), GNEAdditionalHandler::parseAndBuildPoly(), and GNEAdditionalHandler::parseParameter().
|
static |
whether the given string is a valid id for a vehicle or flow
Definition at line 973 of file SUMOXMLDefinitions.cpp.
Referenced by GNEAttributeCarrier::checkParsedAttribute(), GNERouteHandler::closeRoute(), GNECalibratorFlow::isValid(), GNERouteProbReroute::isValid(), GNEPerson::isValid(), GNEStop::isValid(), GNEVehicle::isValid(), GNEVehicleType::isValid(), GNEDemandElement::isValidDemandElementID(), GNEFrameAttributesModuls::AttributesCreatorRow::onCmdSetAttribute(), SUMOVehicleParserHelper::parseFlowAttributes(), and SUMOVehicleParserHelper::parseID().
|
static |
all allowed characters for phase state
Definition at line 1454 of file SUMOXMLDefinitions.h.
Referenced by NBTrafficLightLogic::addStep(), and MSTrafficLightLogic::init().
|
staticprivate |
all allowed characters for phase state
Definition at line 1506 of file SUMOXMLDefinitions.h.
|
static |
The names of SUMO-XML attributes (for passing to GenericSAXHandler)
Definition at line 1356 of file SUMOXMLDefinitions.h.
Referenced by GNEFrame::GNEFrame().
|
static |
The names of SUMO-XML attributes for use in netbuild.
Definition at line 1362 of file SUMOXMLDefinitions.h.
Referenced by toString< SumoXMLAttr >(), BinaryFormatter::writeAttr(), and BinaryFormatter::writeStaticHeader().
|
static |
car following models
Definition at line 1398 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 1493 of file SUMOXMLDefinitions.h.
|
static |
edge functions
Definition at line 1371 of file SUMOXMLDefinitions.h.
Referenced by SUMOSAXAttributesImpl_Binary::getEdgeFunc(), SUMOSAXAttributesImpl_Cached::getEdgeFunc(), SUMOSAXAttributesImpl_Xerces::getEdgeFunc(), toString< SumoXMLEdgeFunc >(), and BinaryFormatter::writeStaticHeader().
|
static |
fringe types
Definition at line 1380 of file SUMOXMLDefinitions.h.
Referenced by GNEAttributeCarrier::fillNetElements(), GNEJunction::getAttribute(), SUMOSAXAttributesImpl_Binary::getFringeType(), SUMOSAXAttributesImpl_Cached::getFringeType(), SUMOSAXAttributesImpl_Xerces::getFringeType(), GNEJunction::isValid(), GNEJunction::setAttribute(), and toString< FringeType >().
|
staticprivate |
lane spread function values
Definition at line 1475 of file SUMOXMLDefinitions.h.
|
static |
lane change actions
Definition at line 1404 of file SUMOXMLDefinitions.h.
Referenced by toString< LaneChangeAction >().
|
staticprivate |
lane change action values
Definition at line 1499 of file SUMOXMLDefinitions.h.
|
static |
lane change models
Definition at line 1395 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 1490 of file SUMOXMLDefinitions.h.
|
static |
lane spread functions
Definition at line 1374 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 1469 of file SUMOXMLDefinitions.h.
|
static |
lateral alignments
Definition at line 1401 of file SUMOXMLDefinitions.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVehicleTypeDialog::VTypeAtributes::buildAttributesB(), GNEAttributeCarrier::fillDemandElements(), GNECalibratorFlow::isValid(), GNEVehicleType::isValid(), GNEVehicleType::setAttribute(), TraCIServerAPI_VehicleType::setVariable(), and toString< LateralAlignment >().
|
staticprivate |
lanteral alignment values
Definition at line 1496 of file SUMOXMLDefinitions.h.
|
static |
link directions
Definition at line 1389 of file SUMOXMLDefinitions.h.
Referenced by libsumo::Lane::getLinks(), NLHandler::parseLinkDir(), and toString< LinkDirection >().
|
staticprivate |
link direction values
Definition at line 1484 of file SUMOXMLDefinitions.h.
|
static |
link states
Definition at line 1386 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 1481 of file SUMOXMLDefinitions.h.
|
static |
node types
Definition at line 1368 of file SUMOXMLDefinitions.h.
Referenced by NGNode::buildNBNode(), GNEAttributeCarrier::fillNetElements(), SUMOSAXAttributesImpl_Binary::getNodeType(), SUMOSAXAttributesImpl_Cached::getNodeType(), SUMOSAXAttributesImpl_Xerces::getNodeType(), GNEJunction::isValid(), NIXMLNodesHandler::processNodeType(), GNEJunction::setAttribute(), toString< SumoXMLNodeType >(), and BinaryFormatter::writeStaticHeader().
|
static |
person modes
Definition at line 1383 of file SUMOXMLDefinitions.h.
Referenced by NLHandler::addEdgeLaneMeanData(), and toString< PersonMode >().
|
staticprivate |
person mode values
Definition at line 1478 of file SUMOXMLDefinitions.h.
|
static |
righ of way algorithms
Definition at line 1377 of file SUMOXMLDefinitions.h.
Referenced by NBFrame::checkOptions(), GNEAttributeCarrier::fillNetElements(), GNEJunction::getAttribute(), SUMOSAXAttributesImpl_Binary::getRightOfWay(), SUMOSAXAttributesImpl_Cached::getRightOfWay(), SUMOSAXAttributesImpl_Xerces::getRightOfWay(), GNEJunction::isValid(), GNEJunction::setAttribute(), and toString< RightOfWay >().
|
staticprivate |
lane spread function values
Definition at line 1472 of file SUMOXMLDefinitions.h.
|
staticprivate |
edge function values
Definition at line 1466 of file SUMOXMLDefinitions.h.
|
staticprivate |
containers for the different SUMOXMLDefinitions
node type values
Definition at line 1463 of file SUMOXMLDefinitions.h.
|
static |
The names of SUMO-XML elements (for passing to GenericSAXHandler)
Definition at line 1353 of file SUMOXMLDefinitions.h.
|
static |
The names of SUMO-XML elements for use in netbuild.
Definition at line 1359 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 1392 of file SUMOXMLDefinitions.h.
Referenced by NBNodeCont::analyzeCluster(), NIVisumTL::build(), NGNode::buildNBNode(), NBFrame::checkOptions(), NBNetBuilder::compute(), NBNodeCont::guessTLs(), NLHandler::initTrafficLightLogic(), NIImporter_SUMO::initTrafficLightLogic(), NIXMLTrafficLightsHandler::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 1487 of file SUMOXMLDefinitions.h.
|
static |
train types
Definition at line 1407 of file SUMOXMLDefinitions.h.
Referenced by GNEAttributeCarrier::fillCarFollowingModelAttributes(), GNEVehicleType::isValid(), and SUMOVehicleParserHelper::parseVTypeEmbedded().
|
staticprivate |
train type values values
Definition at line 1502 of file SUMOXMLDefinitions.h.