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 1922 of file SUMOXMLDefinitions.h.
|
static |
return edge id when given the lane ID
Definition at line 1410 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(), MSDevice_FCDReplay::move(), RODFDetectorHandler::myStartElement(), MSDevice_FCDReplay::FCDHandler::myStartElement(), RONetHandler::parseConnection(), RORouteHandler::parseWalkPositions(), NBEdgeCont::rename(), and GNENetHelper::AttributeCarriers::retrieveLane().
|
static |
return lane index when given the lane ID
Definition at line 1415 of file SUMOXMLDefinitions.cpp.
References StringUtils::toInt().
Referenced by MSDevice_FCDReplay::FCDHandler::addTrafficObjects(), RONet::getLane(), LIBSUMO_NAMESPACE::Vehicle::getStopParameter(), MSBaseVehicle::interpretOppositeStop(), MSDevice_FCDReplay::move(), RODFDetectorHandler::myStartElement(), and RODFDetector::writeEmitterDefinition().
|
static |
return the junction id when given an edge of type internal, crossing or WalkingArea
Definition at line 1403 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 1438 of file SUMOXMLDefinitions.cpp.
Referenced by GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildChargingStation(), GNEAdditionalHandler::buildContainerStop(), GNEAdditionalHandler::buildEdgeCalibrator(), GNEAdditionalHandler::buildJpsObstacle(), GNEAdditionalHandler::buildJpsWalkableArea(), 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(), and GNEAdditional::isValidAdditionalID().
|
static |
whether the given string is a valid attribute for a certain key (for example, a name)
Definition at line 1449 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 1443 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 1455 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(), GNEMeanData::isValid(), GNEVType::isValid(), GNEOptionsDialogElements::InputFilename::onCmdSetOption(), and GNENetgenerateDialog::onCmdSetOutput().
|
static |
whether the given string is a valid list of id for a network (empty aren't allowed)
Definition at line 1461 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 1478 of file SUMOXMLDefinitions.cpp.
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(), and GNEVariableSpeedSign::isValid().
|
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 1484 of file SUMOXMLDefinitions.cpp.
References isValidTypeID().
|
static |
whether the given string is a valid id for a network element
Definition at line 1421 of file SUMOXMLDefinitions.cpp.
Referenced by GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), NBEdge::init(), GNELaneAreaDetector::isValid(), GNEDataSet::isValid(), GNEEdgeRelData::isValid(), GNETAZRelData::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 1500 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 1433 of file SUMOXMLDefinitions.cpp.
Referenced by ShapeHandler::addPOI(), ShapeHandler::addPoly(), GNEAdditionalHandler::checkListOfVehicleTypes(), and isValidListOfTypeID().
|
static |
whether the given string is a valid id for a vehicle or flow
Definition at line 1427 of file SUMOXMLDefinitions.cpp.
Referenced by GNEStop::isValid(), GNEVehicle::isValid(), GNEDemandElement::isValidDemandElementID(), SUMOVehicleParserHelper::parseFlowAttributes(), SUMOVehicleParserHelper::parseID(), RouteHandler::parseRoute(), RouteHandler::parseRouteDistribution(), and RouteHandler::parseVTypeDistribution().
|
static |
all allowed characters for phase state
Definition at line 2039 of file SUMOXMLDefinitions.h.
Referenced by NBTrafficLightLogic::addStep(), and MSTrafficLightLogic::init().
|
staticprivate |
all allowed characters for phase state
Definition at line 2099 of file SUMOXMLDefinitions.h.
|
static |
The names of SUMO-XML attributes (for passing to GenericSAXHandler)
Definition at line 1929 of file SUMOXMLDefinitions.h.
Referenced by GNEFrame::GNEFrame().
|
static |
The names of SUMO-XML attributes for use in netbuild.
Definition at line 1935 of file SUMOXMLDefinitions.h.
Referenced by GUINet::getMeanData(), MSDevice_FCD::initOnce(), MSMeanData::initWrittenAttributes(), main(), GNEMeanDataHandler::parseAttributes(), AGActivityGenHandler::parseStreets(), and toString< SumoXMLAttr >().
|
static |
car following models
Definition at line 1980 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 2085 of file SUMOXMLDefinitions.h.
|
static |
edge functions
Definition at line 1944 of file SUMOXMLDefinitions.h.
Referenced by toString< SumoXMLEdgeFunc >().
|
static |
fringe types
Definition at line 1956 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 2061 of file SUMOXMLDefinitions.h.
|
static |
traffic light layouts
Definition at line 1974 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 2079 of file SUMOXMLDefinitions.h.
|
static |
lane change actions
Definition at line 1983 of file SUMOXMLDefinitions.h.
Referenced by toString< LaneChangeAction >().
|
staticprivate |
lane change action values
Definition at line 2088 of file SUMOXMLDefinitions.h.
|
static |
lane change models
Definition at line 1977 of file SUMOXMLDefinitions.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVehicleTypeDialog::VTypeAttributes::buildAttributesA(), GNEAttributeCarrier::fillDemandElements(), GNEVType::getAttribute(), GUIVehicle::getTypeParameterWindow(), GNEVType::isValid(), GNEVType::overwriteVType(), GNEVType::setAttribute(), and toString< LaneChangeModel >().
|
staticprivate |
lane change model values
Definition at line 2082 of file SUMOXMLDefinitions.h.
|
static |
lane spread functions
Definition at line 1947 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 2052 of file SUMOXMLDefinitions.h.
|
static |
link directions
Definition at line 1965 of file SUMOXMLDefinitions.h.
Referenced by LIBSUMO_NAMESPACE::Lane::getLinks(), LIBSUMO_NAMESPACE::Vehicle::getNextLinks(), NLHandler::parseLinkDir(), and toString< LinkDirection >().
|
staticprivate |
link direction values
Definition at line 2070 of file SUMOXMLDefinitions.h.
|
static |
link states
Definition at line 1962 of file SUMOXMLDefinitions.h.
Referenced by NIImporter_SUMO::addConnection(), LIBSUMO_NAMESPACE::Lane::getLinks(), LIBSUMO_NAMESPACE::Vehicle::getNextLinks(), RONetHandler::parseConnection(), NLHandler::parseLinkState(), and toString< LinkState >().
|
staticprivate |
link state values
Definition at line 2067 of file SUMOXMLDefinitions.h.
|
static |
node types
Definition at line 1941 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 1950 of file SUMOXMLDefinitions.h.
Referenced by toString< ParkingType >().
|
staticprivate |
lane spread function values
Definition at line 2055 of file SUMOXMLDefinitions.h.
|
static |
person modes
Definition at line 1959 of file SUMOXMLDefinitions.h.
Referenced by NLHandler::addE1Detector(), NLHandler::addE2Detector(), NLHandler::addEdgeLaneMeanData(), NLHandler::beginE3Detector(), and toString< PersonMode >().
|
staticprivate |
person mode values
Definition at line 2064 of file SUMOXMLDefinitions.h.
|
static |
POI icon values.
Definition at line 1989 of file SUMOXMLDefinitions.h.
Referenced by ShapeHandler::addPOI(), GNEFrameAttributeModules::AttributesEditorRow::fillComboBox(), fillOptions(), GNEAttributeCarrier::fillPOIAttributes(), PointOfInterest::getIconStr(), GNEPOI::isValid(), AdditionalHandler::parsePOIAttributes(), GNEAttributesCreatorRow::refreshRow(), PointOfInterest::setIcon(), NIImporter_OpenDrive::writeRoadObjects(), and PointOfInterest::writeXML().
|
staticprivate |
POI icon values.
Definition at line 2094 of file SUMOXMLDefinitions.h.
|
static |
righ of way algorithms
Definition at line 1953 of file SUMOXMLDefinitions.h.
Referenced by NBFrame::checkOptions(), GNEFrameAttributeModules::AttributesEditorRow::fillComboBox(), GNEAttributeCarrier::fillNetworkElements(), GNEJunction::getAttribute(), GNEJunction::isValid(), GNEJunction::setAttribute(), and toString< RightOfWay >().
|
staticprivate |
lane spread function values
Definition at line 2058 of file SUMOXMLDefinitions.h.
|
staticprivate |
edge function values
Definition at line 2049 of file SUMOXMLDefinitions.h.
|
staticprivate |
containers for the different SUMOXMLDefinitions
node type values
Definition at line 2046 of file SUMOXMLDefinitions.h.
|
static |
The names of SUMO-XML elements (for passing to GenericSAXHandler)
Definition at line 1926 of file SUMOXMLDefinitions.h.
|
static |
The names of SUMO-XML elements for use in netbuild.
Definition at line 1932 of file SUMOXMLDefinitions.h.
Referenced by GNEMeanDataHandler::parseAttributes(), 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 1971 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 2076 of file SUMOXMLDefinitions.h.
|
static |
traffic light types
Definition at line 1968 of file SUMOXMLDefinitions.h.
Referenced by NBNodeCont::analyzeCluster(), NIVisumTL::build(), NGNode::buildNBNode(), NBFrame::checkOptions(), NBNetBuilder::compute(), NBTrafficLightLogicCont::computeLogics(), NIImporter_OpenDrive::getTLSSecure(), 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 2073 of file SUMOXMLDefinitions.h.
|
static |
train types
Definition at line 1986 of file SUMOXMLDefinitions.h.
Referenced by GNEAttributeCarrier::fillCarFollowingModelAttributes(), GNEVType::isValid(), and SUMOVehicleParserHelper::parseCFMParams().
|
staticprivate |
train type values
Definition at line 2091 of file SUMOXMLDefinitions.h.