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 | |
static bool | isValidVehicleID (const std::string &value) |
whether the given string is a valid id for a vehicle or flow | |
static bool | isValidTypeID (const std::string &value) |
whether the given string is a valid id for an edge or vehicle type | |
static bool | isValidAdditionalID (const std::string &value) |
whether the given string is a valid id for an additional object | |
static bool | isValidDetectorID (const std::string &value) |
whether the given string is a valid id for an detector | |
static bool | isValidAttribute (const std::string &value) |
whether the given string is a valid attribute for a certain key (for example, a name) | |
static bool | isValidFilename (const std::string &value) |
whether the given string is a valid attribute for a filename (for example, a name) | |
static bool | isValidListOfNetIDs (const std::string &value) |
whether the given string is a valid list of id for a network (empty aren't allowed) | |
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) | |
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) | |
static bool | isValidParameterKey (const std::string &value) |
whether the given string is a valid key for a parameter | |
static std::string | makeValidID (const std::string &value) |
transform the given string into a valid id for a network element (or any other id) | |
static std::string | getJunctionIDFromInternalEdge (const std::string internalEdge) |
return the junction id when given an edge of type internal, crossing or WalkingArea | |
static std::string | getEdgeIDFromLane (const std::string laneID) |
return edge id when given the lane ID | |
static int | getIndexFromLane (const std::string laneID) |
return lane index when given the lane ID | |
Static Private Attributes | |
static const char | AllowedTLS_linkStatesInitializer [] |
all allowed characters for phase state | |
static StringBijection< SumoXMLNodeType >::Entry | sumoNodeTypeValues [] |
containers for the different SUMOXMLDefinitions | |
static StringBijection< SumoXMLEdgeFunc >::Entry | sumoEdgeFuncValues [] |
edge function values | |
static StringBijection< LaneSpreadFunction >::Entry | laneSpreadFunctionValues [] |
lane spread function values | |
static StringBijection< ParkingType >::Entry | parkingTypeValues [] |
lane spread function values | |
static StringBijection< RightOfWay >::Entry | rightOfWayValuesInitializer [] |
lane spread function values | |
static StringBijection< FringeType >::Entry | fringeTypeValuesInitializer [] |
lane spread function values | |
static StringBijection< PersonMode >::Entry | personModeValuesInitializer [] |
person mode values | |
static StringBijection< LinkState >::Entry | linkStateValues [] |
link state values | |
static StringBijection< LinkDirection >::Entry | linkDirectionValues [] |
link direction values | |
static StringBijection< TrafficLightType >::Entry | trafficLightTypesValues [] |
traffic light types values | |
static StringBijection< TrafficLightLayout >::Entry | trafficLightLayoutValues [] |
traffic light layout values | |
static StringBijection< InsertionCheck >::Entry | insertionCheckValues [] |
traffic light layout values | |
static StringBijection< LaneChangeModel >::Entry | laneChangeModelValues [] |
lane change model values | |
static StringBijection< SumoXMLTag >::Entry | carFollowModelValues [] |
car follwing model values | |
static StringBijection< LaneChangeAction >::Entry | laneChangeActionValues [] |
lane change action values | |
static StringBijection< TrainType >::Entry | trainTypeValues [] |
train type values | |
static StringBijection< POIIcon >::Entry | POIIconValues [] |
POI icon values. | |
class for maintaining associations between enums and xml-strings
Definition at line 2245 of file SUMOXMLDefinitions.h.
|
static |
return edge id when given the lane ID
Definition at line 1722 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 1727 of file SUMOXMLDefinitions.cpp.
References StringUtils::toInt().
Referenced by RONet::getLane(), LIBSUMO_NAMESPACE::Vehicle::getStopParameter(), MSBaseVehicle::interpretOppositeStop(), MSDevice_FCDReplay::move(), RODFDetectorHandler::myStartElement(), MSDevice_FCDReplay::FCDHandler::updateTrafficObjects(), and RODFDetector::writeEmitterDefinition().
|
static |
return the junction id when given an edge of type internal, crossing or WalkingArea
Definition at line 1715 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 1750 of file SUMOXMLDefinitions.cpp.
Referenced by GNEAdditional::isValidAdditionalID(), and GNEAdditional::isValidAdditionalID().
|
static |
whether the given string is a valid attribute for a certain key (for example, a name)
Definition at line 1761 of file SUMOXMLDefinitions.cpp.
Referenced by GNETAZFrame::TAZParameters::isCurrentParametersValid(), GNEDetector::isDetectorValid(), GNEBusStop::isValid(), GNECalibrator::isValid(), GNEChargingStation::isValid(), GNEContainerStop::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 1755 of file SUMOXMLDefinitions.cpp.
Referenced by CommonHandler::checkValidDetectorID(), GNEAdditional::isValidDetectorID(), and GNEAdditional::isValidDetectorID().
|
static |
whether the given string is a valid attribute for a filename (for example, a name)
Definition at line 1767 of file SUMOXMLDefinitions.cpp.
Referenced by CommonHandler::checkFileName(), GNEDetector::isDetectorValid(), GNECalibrator::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 1773 of file SUMOXMLDefinitions.cpp.
References StringTokenizer::getVector(), and isValidNetID().
Referenced by GNEDetector::isDetectorValid(), and GNEMultiEntryExitDetector::isValid().
|
static |
whether the given string is a valid list of ids for an edge or vehicle type (empty aren't allowed)
Definition at line 1790 of file SUMOXMLDefinitions.cpp.
References isValidListOfTypeID().
Referenced by GNEDetector::isDetectorValid(), GNECalibrator::isValid(), GNEMultiEntryExitDetector::isValid(), GNERerouter::isValid(), GNERouteProbe::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 1796 of file SUMOXMLDefinitions.cpp.
References isValidTypeID().
|
static |
whether the given string is a valid id for a network element
Definition at line 1733 of file SUMOXMLDefinitions.cpp.
Referenced by GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), NBEdge::init(), GNELaneAreaDetector::isValid(), GNEDataSet::isValid(), GNEEdgeRelData::isValid(), GNEMeanData::isValid(), GNETAZRelData::isValid(), GNEEdge::isValid(), GNEEdgeType::isValid(), GNEJunction::isValid(), isValidListOfNetIDs(), NBNode::NBNode(), 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 1812 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(), and CommonHandler::parseParameters().
|
static |
whether the given string is a valid id for an edge or vehicle type
Definition at line 1745 of file SUMOXMLDefinitions.cpp.
Referenced by ShapeHandler::addPOI(), ShapeHandler::addPoly(), CommonHandler::checkListOfVehicleTypes(), and isValidListOfTypeID().
|
static |
whether the given string is a valid id for a vehicle or flow
Definition at line 1739 of file SUMOXMLDefinitions.cpp.
Referenced by CommonHandler::checkValidAdditionalID(), CommonHandler::checkValidDemandElementID(), GNEStop::isValid(), GNEVehicle::isValid(), GNEDemandElement::isValidDemandElementID(), GNEDemandElement::isValidDemandElementID(), SUMOVehicleParserHelper::parseFlowAttributes(), and SUMOVehicleParserHelper::parseID().
|
static |
transform the given string into a valid id for a network element (or any other id)
Definition at line 1823 of file SUMOXMLDefinitions.cpp.
Referenced by NIImporter_MATSim::NodesHandler::myStartElement(), and NIImporter_MATSim::EdgesHandler::myStartElement().
|
static |
all allowed characters for phase state
Definition at line 2367 of file SUMOXMLDefinitions.h.
Referenced by NBTrafficLightLogic::addStep(), and MSTrafficLightLogic::init().
|
staticprivate |
all allowed characters for phase state
Definition at line 1515 of file SUMOXMLDefinitions.h.
|
static |
The names of SUMO-XML attributes (for passing to GenericSAXHandler)
Definition at line 633 of file SUMOXMLDefinitions.h.
Referenced by GNEFrame::GNEFrame().
|
static |
The names of SUMO-XML attributes for use in netbuild.
Definition at line 2258 of file SUMOXMLDefinitions.h.
Referenced by GUINet::getMeanData(), MSDevice_Emissions::initOnce(), MSDevice_FCD::initOnce(), MSMeanData::initWrittenAttributes(), main(), GNEAttributeCarrier::parse(), GNEMeanDataHandler::parseAttributes(), AGActivityGenHandler::parseStreets(), and toString< SumoXMLAttr >().
|
static |
car following models
Definition at line 2303 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 1590 of file SUMOXMLDefinitions.h.
|
static |
edge functions
Definition at line 2267 of file SUMOXMLDefinitions.h.
Referenced by SUMOSAXAttributes::fromString(), and toString< SumoXMLEdgeFunc >().
|
static |
fringe types
Definition at line 2279 of file SUMOXMLDefinitions.h.
Referenced by GNEAttributeCarrier::fillNetworkElements(), SUMOSAXAttributes::fromString(), GNEJunction::getAttribute(), GNEJunction::isValid(), GNEJunction::setAttribute(), and toString< FringeType >().
|
staticprivate |
lane spread function values
Definition at line 1480 of file SUMOXMLDefinitions.h.
|
static |
traffic light layouts
Definition at line 2297 of file SUMOXMLDefinitions.h.
Referenced by SUMOVehicleParameter::areInsertionChecksValid(), GNEAttributeCarrier::fillCommonVehicleAttributes(), SUMOVehicleParameter::getInsertionChecks(), SUMOVehicleParameter::parseInsertionChecks(), toString< InsertionCheck >(), and SUMOVehicleParameter::write().
|
staticprivate |
traffic light layout values
Definition at line 1566 of file SUMOXMLDefinitions.h.
|
static |
lane change actions
Definition at line 2306 of file SUMOXMLDefinitions.h.
Referenced by toString< LaneChangeAction >().
|
staticprivate |
lane change action values
Definition at line 1610 of file SUMOXMLDefinitions.h.
|
static |
lane change models
Definition at line 2300 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 1582 of file SUMOXMLDefinitions.h.
|
static |
lane spread functions
Definition at line 2270 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 1461 of file SUMOXMLDefinitions.h.
|
static |
link directions
Definition at line 2288 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 1528 of file SUMOXMLDefinitions.h.
|
static |
link states
Definition at line 2285 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 1497 of file SUMOXMLDefinitions.h.
|
static |
node types
Definition at line 2264 of file SUMOXMLDefinitions.h.
Referenced by NGNode::buildNBNode(), GNEAttributeCarrier::fillNetworkElements(), SUMOSAXAttributes::fromString(), GNEJunction::isValid(), NIXMLNodesHandler::processNodeType(), GNEJunction::setAttribute(), GNEJunction::setJunctionType(), and toString< SumoXMLNodeType >().
|
static |
parking types
Definition at line 2273 of file SUMOXMLDefinitions.h.
Referenced by toString< ParkingType >().
|
staticprivate |
lane spread function values
Definition at line 1467 of file SUMOXMLDefinitions.h.
|
static |
person modes
Definition at line 2282 of file SUMOXMLDefinitions.h.
Referenced by NLHandler::addE1Detector(), NLHandler::addE2Detector(), NLHandler::addEdgeLaneMeanData(), NLHandler::beginE3Detector(), AdditionalHandler::checkDetectPersons(), GNEAttributeCarrier::fillAdditionalElements(), GNEDetector::isDetectorValid(), GNEMultiEntryExitDetector::isValid(), toString< PersonMode >(), and GNEDetector::writeDetectorValues().
|
staticprivate |
person mode values
Definition at line 1486 of file SUMOXMLDefinitions.h.
|
static |
POI icon values.
Definition at line 2312 of file SUMOXMLDefinitions.h.
Referenced by ShapeHandler::addPOI(), fillOptions(), GNEAttributeCarrier::fillPOIAttributes(), PointOfInterest::getIconStr(), GNEPOI::isValid(), AdditionalHandler::parsePOIAttributes(), GNEAttributesCreatorRow::refreshRow(), PointOfInterest::setIcon(), GNEAttributesEditorRow::showValueComboBox(), NIImporter_OpenDrive::writeRoadObjects(), and PointOfInterest::writeXML().
|
staticprivate |
POI icon values.
Definition at line 1647 of file SUMOXMLDefinitions.h.
|
static |
righ of way algorithms
Definition at line 2276 of file SUMOXMLDefinitions.h.
Referenced by NBFrame::checkOptions(), GNEAttributeCarrier::fillNetworkElements(), SUMOSAXAttributes::fromString(), GNEJunction::getAttribute(), GNEJunction::isValid(), GNEJunction::setAttribute(), GNEAttributesEditorRow::showValueComboBox(), and toString< RightOfWay >().
|
staticprivate |
lane spread function values
Definition at line 1473 of file SUMOXMLDefinitions.h.
|
staticprivate |
edge function values
Definition at line 1451 of file SUMOXMLDefinitions.h.
|
staticprivate |
containers for the different SUMOXMLDefinitions
node type values
Definition at line 1430 of file SUMOXMLDefinitions.h.
|
static |
The names of SUMO-XML elements (for passing to GenericSAXHandler)
Definition at line 38 of file SUMOXMLDefinitions.h.
|
static |
The names of SUMO-XML elements for use in netbuild.
Definition at line 2255 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 2294 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 1559 of file SUMOXMLDefinitions.h.
|
static |
traffic light types
Definition at line 2291 of file SUMOXMLDefinitions.h.
Referenced by NBNodeCont::analyzeCluster(), NIVisumTL::build(), NGNode::buildNBNode(), NBFrame::checkOptions(), NBNetBuilder::compute(), NBTrafficLightLogicCont::computeLogics(), 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 1540 of file SUMOXMLDefinitions.h.
|
static |
train types
Definition at line 2309 of file SUMOXMLDefinitions.h.
Referenced by GNEAttributeCarrier::fillCarFollowingModelAttributes(), GNEVType::isValid(), and SUMOVehicleParserHelper::parseCFMParams().
|
staticprivate |
train type values
Definition at line 1633 of file SUMOXMLDefinitions.h.