![]() |
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 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 1581 of file SUMOXMLDefinitions.h.
|
static |
return edge id when given the lane ID
Definition at line 1134 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 1127 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 1157 of file SUMOXMLDefinitions.cpp.
Referenced by GNEAttributeCarrier::checkParsedAttribute(), GNECalibrator::isValid(), GNEAdditional::isValidAdditionalID(), and GNETAZElement::isValidTAZElementID().
|
static |
whether the given string is a valid attribute for a certain key (for example, a name)
Definition at line 1168 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 GNEDataHandler::parseParameter().
|
static |
whether the given string is a valid id for an detector
Definition at line 1162 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 1174 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 1180 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 1197 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 1140 of file SUMOXMLDefinitions.cpp.
Referenced by NBEdge::init(), GNEDataSet::isValid(), GNEEdgeRelData::isValid(), GNETAZRelData::isValid(), GNEPersonTrip::isValid(), GNERide::isValid(), GNEVehicle::isValid(), GNEWalk::isValid(), GNEEdge::isValid(), GNEEdgeType::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 1214 of file SUMOXMLDefinitions.cpp.
References isValidAttribute().
Referenced by GNEMultipleParametersDialog::ParametersValues::ParameterRow::enableRow(), GNESingleParametersDialog::ParametersValues::ParameterRow::enableRow(), Parameterised::isParameterValid(), GNEMultipleParametersDialog::ParametersOperations::GNEParameterHandler::myStartElement(), GNESingleParametersDialog::ParametersOperations::GNEParameterHandler::myStartElement(), ShapeHandler::myStartElement(), GNEMultipleParametersDialog::onCmdAccept(), GNESingleParametersDialog::onCmdAccept(), GNEMultipleParametersDialog::ParametersValues::onCmdSetAttribute(), GNESingleParametersDialog::ParametersValues::onCmdSetAttribute(), and GNEAdditionalHandler::parseParameter().
|
static |
whether the given string is a valid id for an edge or vehicle type
Definition at line 1152 of file SUMOXMLDefinitions.cpp.
Referenced by ShapeHandler::addPOI(), ShapeHandler::addPoly(), GNECalibratorFlow::isValid(), GNEPOI::isValid(), GNEPoly::isValid(), GNEPerson::isValid(), GNEVehicle::isValid(), isValidListOfTypeID(), GNEFrameAttributesModuls::AttributesCreatorRow::onCmdSetAttribute(), GNEAdditionalHandler::parseAndBuildPOI(), GNEAdditionalHandler::parseAndBuildPoly(), and GNEDataHandler::parseParameter().
|
static |
whether the given string is a valid id for a vehicle or flow
Definition at line 1146 of file SUMOXMLDefinitions.cpp.
Referenced by GNEAttributeCarrier::checkParsedAttribute(), GNERouteHandler::closeRoute(), GNECalibratorFlow::isValid(), GNERouteProbReroute::isValid(), GNEPerson::isValid(), GNEPersonStop::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 1686 of file SUMOXMLDefinitions.h.
Referenced by NBTrafficLightLogic::addStep(), and MSTrafficLightLogic::init().
|
staticprivate |
all allowed characters for phase state
Definition at line 1741 of file SUMOXMLDefinitions.h.
|
static |
The names of SUMO-XML attributes (for passing to GenericSAXHandler)
Definition at line 1588 of file SUMOXMLDefinitions.h.
Referenced by GNEFrame::GNEFrame().
|
static |
The names of SUMO-XML attributes for use in netbuild.
Definition at line 1594 of file SUMOXMLDefinitions.h.
Referenced by MSMeanData::initWrittenAttributes(), and toString< SumoXMLAttr >().
|
static |
car following models
Definition at line 1633 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 1728 of file SUMOXMLDefinitions.h.
|
static |
edge functions
Definition at line 1603 of file SUMOXMLDefinitions.h.
Referenced by SUMOSAXAttributesImpl_Cached::getEdgeFunc(), SUMOSAXAttributesImpl_Xerces::getEdgeFunc(), and toString< SumoXMLEdgeFunc >().
|
static |
fringe types
Definition at line 1612 of file SUMOXMLDefinitions.h.
Referenced by GNEAttributeCarrier::fillNetworkElements(), GNEJunction::getAttribute(), SUMOSAXAttributesImpl_Cached::getFringeType(), SUMOSAXAttributesImpl_Xerces::getFringeType(), GNEJunction::isValid(), GNEJunction::setAttribute(), and toString< FringeType >().
|
staticprivate |
lane spread function values
Definition at line 1707 of file SUMOXMLDefinitions.h.
|
static |
lane change actions
Definition at line 1639 of file SUMOXMLDefinitions.h.
Referenced by toString< LaneChangeAction >().
|
staticprivate |
lane change action values
Definition at line 1734 of file SUMOXMLDefinitions.h.
|
static |
lane change models
Definition at line 1630 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 1725 of file SUMOXMLDefinitions.h.
|
static |
lane spread functions
Definition at line 1606 of file SUMOXMLDefinitions.h.
Referenced by NIImporter_SUMO::addEdge(), NIXMLEdgesHandler::addEdge(), NBFrame::checkOptions(), GNEAttributeCarrier::fillNetworkElements(), GNEEdge::isValid(), GNEEdge::setAttribute(), toString< LaneSpreadFunction >(), NIXMLEdgesHandler::tryGetLaneSpread(), and NWWriter_XML::writeEdgesAndConnections().
|
staticprivate |
lane spread function values
Definition at line 1701 of file SUMOXMLDefinitions.h.
|
static |
lateral alignments
Definition at line 1636 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 1731 of file SUMOXMLDefinitions.h.
|
static |
link directions
Definition at line 1621 of file SUMOXMLDefinitions.h.
Referenced by LIBSUMO_NAMESPACE::Lane::getLinks(), NLHandler::parseLinkDir(), and toString< LinkDirection >().
|
staticprivate |
link direction values
Definition at line 1716 of file SUMOXMLDefinitions.h.
|
static |
link states
Definition at line 1618 of file SUMOXMLDefinitions.h.
Referenced by NIImporter_SUMO::addConnection(), LIBSUMO_NAMESPACE::Lane::getLinks(), RONetHandler::parseConnection(), NLHandler::parseLinkState(), and toString< LinkState >().
|
staticprivate |
link state values
Definition at line 1713 of file SUMOXMLDefinitions.h.
|
static |
node types
Definition at line 1600 of file SUMOXMLDefinitions.h.
Referenced by NGNode::buildNBNode(), GNEAttributeCarrier::fillNetworkElements(), SUMOSAXAttributesImpl_Cached::getNodeType(), SUMOSAXAttributesImpl_Xerces::getNodeType(), GNEJunction::isValid(), NIXMLNodesHandler::processNodeType(), GNEJunction::setAttribute(), and toString< SumoXMLNodeType >().
|
static |
person modes
Definition at line 1615 of file SUMOXMLDefinitions.h.
Referenced by NLHandler::addEdgeLaneMeanData(), and toString< PersonMode >().
|
staticprivate |
person mode values
Definition at line 1710 of file SUMOXMLDefinitions.h.
|
static |
righ of way algorithms
Definition at line 1609 of file SUMOXMLDefinitions.h.
Referenced by NBFrame::checkOptions(), GNEAttributeCarrier::fillNetworkElements(), GNEJunction::getAttribute(), SUMOSAXAttributesImpl_Cached::getRightOfWay(), SUMOSAXAttributesImpl_Xerces::getRightOfWay(), GNEJunction::isValid(), GNEJunction::setAttribute(), and toString< RightOfWay >().
|
staticprivate |
lane spread function values
Definition at line 1704 of file SUMOXMLDefinitions.h.
|
staticprivate |
edge function values
Definition at line 1698 of file SUMOXMLDefinitions.h.
|
staticprivate |
containers for the different SUMOXMLDefinitions
node type values
Definition at line 1695 of file SUMOXMLDefinitions.h.
|
static |
The names of SUMO-XML elements (for passing to GenericSAXHandler)
Definition at line 1585 of file SUMOXMLDefinitions.h.
|
static |
The names of SUMO-XML elements for use in netbuild.
Definition at line 1591 of file SUMOXMLDefinitions.h.
Referenced by 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(), and toString< SumoXMLTag >().
|
static |
traffic light layouts
Definition at line 1627 of file SUMOXMLDefinitions.h.
Referenced by NBOwnTLDef::computeLogicAndConts(), GNEJunction::isValid(), NIXMLNodesHandler::processTrafficLightDefinitions(), GNEJunction::setAttribute(), and toString< TrafficLightLayout >().
|
staticprivate |
traffic light layout values
Definition at line 1722 of file SUMOXMLDefinitions.h.
|
static |
traffic light types
Definition at line 1624 of file SUMOXMLDefinitions.h.
Referenced by NBNodeCont::analyzeCluster(), NIVisumTL::build(), NGNode::buildNBNode(), NBFrame::checkOptions(), NBNetBuilder::compute(), NIImporter_OpenDrive::getTLSSecure(), NBNodeCont::guessTLs(), NLHandler::initTrafficLightLogic(), NIImporter_SUMO::initTrafficLightLogic(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), NIImporter_OpenStreetMap::insertNodeChecking(), GNEJunction::isValid(), NIXMLNodesHandler::processTrafficLightDefinitions(), NIImporter_DlrNavteq::TrafficlightsHandler::report(), GNEJunction::setAttribute(), toString< TrafficLightType >(), and NBNodeTypeComputer::validateRailCrossings().
|
staticprivate |
traffic light types values
Definition at line 1719 of file SUMOXMLDefinitions.h.
|
static |
train types
Definition at line 1642 of file SUMOXMLDefinitions.h.
Referenced by GNEAttributeCarrier::fillCarFollowingModelAttributes(), GNEVehicleType::isValid(), and SUMOVehicleParserHelper::parseVTypeEmbedded().
|
staticprivate |
train type values values
Definition at line 1737 of file SUMOXMLDefinitions.h.