![]() |
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 | isValidListOfTypeID (const std::vector< std::string > &typeIDs) |
whether the given list of strings 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... | |
static int | getIndexFromLane (const std::string laneID) |
return lane index when given the lane ID More... | |
class for maintaining associations between enums and xml-strings
Definition at line 1789 of file SUMOXMLDefinitions.h.
|
static |
return edge id when given the lane ID
Definition at line 1284 of file SUMOXMLDefinitions.cpp.
Referenced by NIXMLPTHandler::addAccess(), NBPTStop::addAccess(), RODFDetectorCon::addDetector(), NIXMLPTHandler::addPTStop(), RORouteHandler::addRide(), RORouteHandler::addStop(), RODFNet::getDetectorEdge(), RONet::getEdgeForLaneID(), RODFDetector::getEdgeID(), ROEdge::getStopPosition(), MSBaseVehicle::interpretOppositeStop(), RODFDetectorHandler::myStartElement(), RONetHandler::parseConnection(), RORouteHandler::parseWalkPositions(), NBEdgeCont::rename(), and GNENetHelper::AttributeCarriers::retrieveLane().
|
static |
return lane index when given the lane ID
Definition at line 1289 of file SUMOXMLDefinitions.cpp.
References StringUtils::toInt().
Referenced by RONet::getLane(), LIBSUMO_NAMESPACE::Vehicle::getStopParameter(), MSBaseVehicle::interpretOppositeStop(), RODFDetectorHandler::myStartElement(), and RODFDetector::writeEmitterDefinition().
|
static |
return the junction id when given an edge of type internal, crossing or WalkingArea
Definition at line 1277 of file SUMOXMLDefinitions.cpp.
Referenced by NIImporter_SUMO::_loadNetwork(), NIImporter_SUMO::addConnection(), NIImporter_SUMO::addEdge(), NIImporter_SUMO::addLane(), NLHandler::beginEdgeParsing(), and RONetHandler::parseEdge().
|
static |
whether the given string is a valid id for an additional object
Definition at line 1312 of file SUMOXMLDefinitions.cpp.
Referenced by GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildChargingStation(), GNEAdditionalHandler::buildContainerStop(), GNEAdditionalHandler::buildEdgeCalibrator(), GNEAdditionalHandler::buildLaneCalibrator(), GNEAdditionalHandler::buildOverheadWire(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildPOI(), GNEAdditionalHandler::buildPOIGeo(), GNEAdditionalHandler::buildPOILane(), GNEAdditionalHandler::buildPolygon(), GNEAdditionalHandler::buildRerouter(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildTAZ(), GNEAdditionalHandler::buildTractionSubstation(), GNEAdditionalHandler::buildTrainStop(), GNEAdditionalHandler::buildVaporizer(), GNEAdditionalHandler::buildVariableSpeedSign(), GNETAZ::isValid(), GNETAZSourceSink::isValid(), GNEPoly::isValid(), and GNEAdditional::isValidAdditionalID().
|
static |
whether the given string is a valid attribute for a certain key (for example, a name)
Definition at line 1323 of file SUMOXMLDefinitions.cpp.
Referenced by GNETAZFrame::TAZParameters::isCurrentParametersValid(), GNEBusStop::isValid(), GNECalibrator::isValid(), GNEChargingStation::isValid(), GNEContainerStop::isValid(), GNEInductionLoopDetector::isValid(), GNEInstantInductionLoopDetector::isValid(), GNELaneAreaDetector::isValid(), GNEMultiEntryExitDetector::isValid(), GNEParkingArea::isValid(), GNEParkingSpace::isValid(), GNERerouter::isValid(), GNERouteProbe::isValid(), GNETAZ::isValid(), GNEVaporizer::isValid(), GNEVariableSpeedSign::isValid(), GNEPOI::isValid(), GNEPoly::isValid(), isValidParameterKey(), and GNETAZFrame::TAZParameters::onCmdSetAttribute().
|
static |
whether the given string is a valid id for an detector
Definition at line 1317 of file SUMOXMLDefinitions.cpp.
Referenced by GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildE1Detector(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), and GNEAdditional::isValidDetectorID().
|
static |
whether the given string is a valid attribute for a filename (for example, a name)
Definition at line 1329 of file SUMOXMLDefinitions.cpp.
Referenced by GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildE1Detector(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildPOI(), GNEAdditionalHandler::buildPOIGeo(), GNEAdditionalHandler::buildPOILane(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), GNECalibrator::isValid(), GNEInductionLoopDetector::isValid(), GNEInstantInductionLoopDetector::isValid(), GNELaneAreaDetector::isValid(), GNEMultiEntryExitDetector::isValid(), GNERouteProbe::isValid(), GNEVType::isValid(), and GUIDialog_Options::InputFilename::onCmdSetOption().
|
static |
whether the given string is a valid list of id for a network (empty aren't allowed)
Definition at line 1335 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 1352 of file SUMOXMLDefinitions.cpp.
References isValidListOfTypeID().
Referenced by GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildE1Detector(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildRerouter(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), GNECalibrator::isValid(), GNEInductionLoopDetector::isValid(), GNEInstantInductionLoopDetector::isValid(), GNELaneAreaDetector::isValid(), GNEMultiEntryExitDetector::isValid(), GNERerouter::isValid(), GNETAZ::isValid(), GNEVariableSpeedSign::isValid(), and isValidListOfTypeID().
|
static |
whether the given list of strings is a valid list of ids for an edge or vehicle type (empty aren't allowed)
Definition at line 1358 of file SUMOXMLDefinitions.cpp.
References isValidTypeID().
|
static |
whether the given string is a valid id for a network element
Definition at line 1295 of file SUMOXMLDefinitions.cpp.
Referenced by GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), NBEdge::init(), GNELaneAreaDetector::isValid(), GNEDataSet::isValid(), GNEEdgeRelData::isValid(), GNETAZRelData::isValid(), GNEPersonTrip::isValid(), GNERide::isValid(), GNETranship::isValid(), GNETransport::isValid(), GNEVehicle::isValid(), GNEWalk::isValid(), GNEEdge::isValid(), GNEEdgeType::isValid(), GNEJunction::isValid(), isValidListOfNetIDs(), NBNode::NBNode(), GNERerouterIntervalDialog::onCmdEditClosingLaneReroute(), GNERerouterIntervalDialog::onCmdEditClosingReroute(), GNERerouterIntervalDialog::onCmdEditDestProbReroute(), GNERerouterIntervalDialog::onCmdEditRouteProbReroute(), and GNETLSEditorFrame::TLSJunction::onCmdRenameTLS().
|
static |
whether the given string is a valid key for a parameter
Definition at line 1374 of file SUMOXMLDefinitions.cpp.
References isValidAttribute().
Referenced by GNEMultipleParametersDialog::ParametersValues::ParameterRow::enableRow(), GNESingleParametersDialog::ParametersValues::ParameterRow::enableRow(), GNEVTypeDistributionsDialog::ParametersValues::ParameterRow::enableRow(), Parameterised::isParameterValid(), GNEMultipleParametersDialog::ParametersOperations::GNEParameterHandler::myStartElement(), GNESingleParametersDialog::ParametersOperations::GNEParameterHandler::myStartElement(), GNEVTypeDistributionsDialog::ParametersOperations::GNEParameterHandler::myStartElement(), ShapeHandler::myStartElement(), GNEMultipleParametersDialog::onCmdAccept(), GNESingleParametersDialog::onCmdAccept(), GNEMultipleParametersDialog::ParametersValues::onCmdSetAttribute(), GNESingleParametersDialog::ParametersValues::onCmdSetAttribute(), GNEVTypeDistributionsDialog::ParametersValues::onCmdSetAttribute(), AdditionalHandler::parseParameters(), and RouteHandler::parseParameters().
|
static |
whether the given string is a valid id for an edge or vehicle type
Definition at line 1307 of file SUMOXMLDefinitions.cpp.
Referenced by ShapeHandler::addPOI(), ShapeHandler::addPoly(), GNEAdditionalHandler::checkListOfVehicleTypes(), GNECalibratorFlow::isValid(), GNEContainer::isValid(), GNEPerson::isValid(), GNEVehicle::isValid(), GNEPOI::isValid(), and isValidListOfTypeID().
|
static |
whether the given string is a valid id for a vehicle or flow
Definition at line 1301 of file SUMOXMLDefinitions.cpp.
Referenced by GNECalibratorFlow::isValid(), GNEContainer::isValid(), GNEPerson::isValid(), GNEStop::isValid(), GNEVehicle::isValid(), GNEVType::isValid(), GNEVTypeDistribution::isValid(), GNEDemandElement::isValidDemandElementID(), SUMOVehicleParserHelper::parseFlowAttributes(), SUMOVehicleParserHelper::parseID(), RouteHandler::parseRoute(), RouteHandler::parseRouteDistribution(), and RouteHandler::parseVTypeDistribution().
|
static |
all allowed characters for phase state
Definition at line 1903 of file SUMOXMLDefinitions.h.
Referenced by NBTrafficLightLogic::addStep(), and MSTrafficLightLogic::init().
|
staticprivate |
all allowed characters for phase state
Definition at line 1961 of file SUMOXMLDefinitions.h.
|
static |
The names of SUMO-XML attributes (for passing to GenericSAXHandler)
Definition at line 1796 of file SUMOXMLDefinitions.h.
Referenced by GNEFrame::GNEFrame().
|
static |
The names of SUMO-XML attributes for use in netbuild.
Definition at line 1802 of file SUMOXMLDefinitions.h.
Referenced by GUINet::getMeanData(), MSDevice_FCD::initOnce(), MSMeanData::initWrittenAttributes(), main(), and toString< SumoXMLAttr >().
|
static |
car following models
Definition at line 1847 of file SUMOXMLDefinitions.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVehicleTypeDialog::CarFollowingModelParameters::CarFollowingModelParameters(), MSFrame::checkOptions(), GNEAttributeCarrier::fillDemandElements(), GNEVType::getAttribute(), GUIVehicle::getTypeParameterWindow(), GNEVType::isValid(), GNEVType::overwriteVType(), GNEVehicleTypeDialog::CarFollowingModelParameters::refreshCFMFields(), GNEVType::setAttribute(), SUMOVTypeParameter::SUMOVTypeParameter(), and SUMOVTypeParameter::write().
|
staticprivate |
car follwing model values
Definition at line 1951 of file SUMOXMLDefinitions.h.
|
static |
edge functions
Definition at line 1811 of file SUMOXMLDefinitions.h.
Referenced by toString< SumoXMLEdgeFunc >().
|
static |
fringe types
Definition at line 1823 of file SUMOXMLDefinitions.h.
Referenced by GNEAttributeCarrier::fillNetworkElements(), GNEJunction::getAttribute(), GNEJunction::isValid(), GNEJunction::setAttribute(), and toString< FringeType >().
|
staticprivate |
lane spread function values
Definition at line 1927 of file SUMOXMLDefinitions.h.
|
static |
traffic light layouts
Definition at line 1841 of file SUMOXMLDefinitions.h.
Referenced by SUMOVehicleParameter::areInsertionChecksValid(), GNEAttributeCarrier::fillCommonVehicleAttributes(), SUMOVehicleParameter::getInsertionChecks(), SUMOVehicleParserHelper::parseCommonAttributes(), SUMOVehicleParameter::parseInsertionChecks(), toString< InsertionCheck >(), and SUMOVehicleParameter::write().
|
staticprivate |
traffic light layout values
Definition at line 1945 of file SUMOXMLDefinitions.h.
|
static |
lane change actions
Definition at line 1850 of file SUMOXMLDefinitions.h.
Referenced by toString< LaneChangeAction >().
|
staticprivate |
lane change action values
Definition at line 1954 of file SUMOXMLDefinitions.h.
|
static |
lane change models
Definition at line 1844 of file SUMOXMLDefinitions.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVehicleTypeDialog::VTypeAtributes::buildAttributesA(), GNEAttributeCarrier::fillDemandElements(), GNEVType::getAttribute(), GUIVehicle::getTypeParameterWindow(), GNEVType::isValid(), GNEVType::overwriteVType(), GNEVType::setAttribute(), and toString< LaneChangeModel >().
|
staticprivate |
lane change model values
Definition at line 1948 of file SUMOXMLDefinitions.h.
|
static |
lane spread functions
Definition at line 1814 of file SUMOXMLDefinitions.h.
Referenced by NIImporter_SUMO::addEdge(), NIXMLEdgesHandler::addEdge(), NBNetBuilder::applyOptions(), NBFrame::checkOptions(), GNEAttributeCarrier::fillNetworkElements(), GNEEdge::getAttribute(), GNEEdgeType::getAttribute(), GNEEdge::isValid(), GNEEdgeType::isValid(), NIXMLTypesHandler::myStartElement(), GNEEdge::setAttribute(), GNEEdgeType::setAttribute(), toString< LaneSpreadFunction >(), NIXMLEdgesHandler::tryGetLaneSpread(), NWWriter_XML::writeEdgesAndConnections(), and NBTypeCont::writeEdgeTypes().
|
staticprivate |
lane spread function values
Definition at line 1918 of file SUMOXMLDefinitions.h.
|
static |
link directions
Definition at line 1832 of file SUMOXMLDefinitions.h.
Referenced by LIBSUMO_NAMESPACE::Lane::getLinks(), NLHandler::parseLinkDir(), and toString< LinkDirection >().
|
staticprivate |
link direction values
Definition at line 1936 of file SUMOXMLDefinitions.h.
|
static |
link states
Definition at line 1829 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 1933 of file SUMOXMLDefinitions.h.
|
static |
node types
Definition at line 1808 of file SUMOXMLDefinitions.h.
Referenced by NGNode::buildNBNode(), GNEAttributeCarrier::fillNetworkElements(), GNEJunction::isValid(), NIXMLNodesHandler::processNodeType(), GNEJunction::setAttribute(), GNEJunction::setJunctionType(), and toString< SumoXMLNodeType >().
|
static |
parking types
Definition at line 1817 of file SUMOXMLDefinitions.h.
Referenced by toString< ParkingType >().
|
staticprivate |
lane spread function values
Definition at line 1921 of file SUMOXMLDefinitions.h.
|
static |
person modes
Definition at line 1826 of file SUMOXMLDefinitions.h.
Referenced by NLHandler::addE1Detector(), NLHandler::addE2Detector(), NLHandler::addEdgeLaneMeanData(), NLHandler::beginE3Detector(), and toString< PersonMode >().
|
staticprivate |
person mode values
Definition at line 1930 of file SUMOXMLDefinitions.h.
|
static |
righ of way algorithms
Definition at line 1820 of file SUMOXMLDefinitions.h.
Referenced by NBFrame::checkOptions(), GNEAttributeCarrier::fillNetworkElements(), GNEJunction::getAttribute(), GNEJunction::isValid(), GNEJunction::setAttribute(), and toString< RightOfWay >().
|
staticprivate |
lane spread function values
Definition at line 1924 of file SUMOXMLDefinitions.h.
|
staticprivate |
edge function values
Definition at line 1915 of file SUMOXMLDefinitions.h.
|
staticprivate |
containers for the different SUMOXMLDefinitions
node type values
Definition at line 1912 of file SUMOXMLDefinitions.h.
|
static |
The names of SUMO-XML elements (for passing to GenericSAXHandler)
Definition at line 1793 of file SUMOXMLDefinitions.h.
|
static |
The names of SUMO-XML elements for use in netbuild.
Definition at line 1799 of file SUMOXMLDefinitions.h.
Referenced by AGActivityGenHandler::parseBracket(), AGActivityGenHandler::parseBusLine(), AGActivityGenHandler::parseBusStation(), SUMOVehicleParserHelper::parseCFMParams(), AGActivityGenHandler::parseCityGates(), AGActivityGenHandler::parseClosingHour(), AGActivityGenHandler::parseFrequency(), AGActivityGenHandler::parseGeneralCityInfo(), AGActivityGenHandler::parseOpeningHour(), AGActivityGenHandler::parseParameters(), AGActivityGenHandler::parseSchool(), AGActivityGenHandler::parseStation(), AGActivityGenHandler::parseStreets(), and toString< SumoXMLTag >().
|
static |
traffic light layouts
Definition at line 1838 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 1942 of file SUMOXMLDefinitions.h.
|
static |
traffic light types
Definition at line 1835 of file SUMOXMLDefinitions.h.
Referenced by NBNodeCont::analyzeCluster(), NIVisumTL::build(), NGNode::buildNBNode(), NBFrame::checkOptions(), NBNetBuilder::compute(), NIImporter_OpenDrive::getTLSSecure(), GNEChange_TLS::GNEChange_TLS(), NBNodeCont::guessTLs(), NLHandler::initTrafficLightLogic(), NIImporter_SUMO::initTrafficLightLogic(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), NIImporter_OpenStreetMap::insertNodeChecking(), GNEJunction::isValid(), NBNodeCont::joinNodeCluster(), GNETLSEditorFrame::TLSJunction::onCmdChangeType(), NIXMLNodesHandler::processTrafficLightDefinitions(), NIImporter_DlrNavteq::TrafficlightsHandler::report(), GNEJunction::setAttribute(), toString< TrafficLightType >(), NBNodeTypeComputer::validateRailCrossings(), and NWWriter_XML::writeNodes().
|
staticprivate |
traffic light types values
Definition at line 1939 of file SUMOXMLDefinitions.h.
|
static |
train types
Definition at line 1853 of file SUMOXMLDefinitions.h.
Referenced by GNEAttributeCarrier::fillCarFollowingModelAttributes(), GNEVType::isValid(), and SUMOVehicleParserHelper::parseCFMParams().
|
staticprivate |
train type values values
Definition at line 1957 of file SUMOXMLDefinitions.h.