SUMO - Simulation of Urban MObility
SUMOXMLDefinitions Class Reference

class for maintaining associations between enums and xml-strings More...

#include <SUMOXMLDefinitions.h>

Collaboration diagram for SUMOXMLDefinitions:
Collaboration graph

Static Public Member Functions

Helper functions for ID-string manipulations

return the junction id when given an edge of type internal, crossing or WalkingArea

static std::string getJunctionIDFromInternalEdge (const std::string internalEdge)
 
static std::string getEdgeIDFromLane (const std::string laneID)
 return edge id when given the lane ID More...
 

Static Public Attributes

static StringBijection< int >::Entry attrs []
 The names of SUMO-XML attributes (for passing to GenericSAXHandler) More...
 
static StringBijection< int > Attrs
 The names of SUMO-XML attributes for use in netbuild. More...
 
static StringBijection< int >::Entry tags []
 The names of SUMO-XML elements (for passing to GenericSAXHandler) More...
 
static StringBijection< int > Tags
 The names of SUMO-XML elements for use in netbuild. More...
 
Special values of SUMO-XML attributes
static StringBijection< SumoXMLNodeTypeNodeTypes
 node types More...
 
static StringBijection< SumoXMLEdgeFuncEdgeFunctions
 edge functions More...
 
static StringBijection< LaneSpreadFunctionLaneSpreadFunctions
 lane spread functions More...
 
static StringBijection< LinkStateLinkStates
 link states More...
 
static StringBijection< LinkDirectionLinkDirections
 link directions More...
 
static StringBijection< TrafficLightTypeTrafficLightTypes
 traffic light types More...
 
static StringBijection< LaneChangeModelLaneChangeModels
 lane change models More...
 
static StringBijection< SumoXMLTagCarFollowModels
 car following models More...
 
static StringBijection< LateralAlignmentLateralAlignments
 lateral alignments More...
 
static StringBijection< LaneChangeActionLaneChangeActions
 lane change actions More...
 

Static Private Attributes

static StringBijection< SumoXMLNodeType >::Entry sumoNodeTypeValues []
 containers for the different SUMOXMLDefinitions More...
 
static StringBijection< SumoXMLEdgeFunc >::Entry sumoEdgeFuncValues []
 edge function values More...
 
static StringBijection< LaneSpreadFunction >::Entry laneSpreadFunctionValues []
 lane spread function values More...
 
static StringBijection< LinkState >::Entry linkStateValues []
 link state values More...
 
static StringBijection< LinkDirection >::Entry linkDirectionValues []
 link direction values More...
 
static StringBijection< TrafficLightType >::Entry trafficLightTypesValues []
 traffic light types values More...
 
static StringBijection< LaneChangeModel >::Entry laneChangeModelValues []
 lane change model values More...
 
static StringBijection< SumoXMLTag >::Entry carFollowModelValues []
 car follwing model values More...
 
static StringBijection< LateralAlignment >::Entry lateralAlignmentValues []
 lanteral alignment values More...
 
static StringBijection< LaneChangeAction >::Entry laneChangeActionValues []
 lane change action values More...
 

Detailed Description

class for maintaining associations between enums and xml-strings

Definition at line 1077 of file SUMOXMLDefinitions.h.

Member Function Documentation

◆ getEdgeIDFromLane()

std::string SUMOXMLDefinitions::getEdgeIDFromLane ( const std::string  laneID)
static

return edge id when given the lane ID

Definition at line 735 of file SUMOXMLDefinitions.cpp.

Referenced by GNENet::retrieveLane().

◆ getJunctionIDFromInternalEdge()

std::string SUMOXMLDefinitions::getJunctionIDFromInternalEdge ( const std::string  internalEdge)
static

Field Documentation

◆ attrs

StringBijection< int >::Entry SUMOXMLDefinitions::attrs
static

The names of SUMO-XML attributes (for passing to GenericSAXHandler)

Definition at line 1084 of file SUMOXMLDefinitions.h.

◆ Attrs

StringBijection< int > SUMOXMLDefinitions::Attrs
static

The names of SUMO-XML attributes for use in netbuild.

Definition at line 1090 of file SUMOXMLDefinitions.h.

Referenced by toString< SumoXMLAttr >(), BinaryFormatter::writeAttr(), and BinaryFormatter::writeStaticHeader().

◆ CarFollowModels

StringBijection< SumoXMLTag > SUMOXMLDefinitions::CarFollowModels
static

car following models

Definition at line 1117 of file SUMOXMLDefinitions.h.

Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), and GUIVehicle::getTypeParameterWindow().

◆ carFollowModelValues

StringBijection< SumoXMLTag >::Entry SUMOXMLDefinitions::carFollowModelValues
staticprivate
Initial value:
= {
{ "IDM", SUMO_TAG_CF_IDM },
{ "IDMM", SUMO_TAG_CF_IDMM },
{ "Krauss", SUMO_TAG_CF_KRAUSS },
{ "KraussOrig1", SUMO_TAG_CF_KRAUSS_ORIG1 },
{ "KraussX", SUMO_TAG_CF_KRAUSSX },
{ "SmartSK", SUMO_TAG_CF_SMART_SK },
{ "Daniel1", SUMO_TAG_CF_DANIEL1 },
{ "PWagner2009", SUMO_TAG_CF_PWAGNER2009 },
{ "BKerner", SUMO_TAG_CF_BKERNER },
{ "Rail", SUMO_TAG_CF_RAIL },
{ "Wiedemann", SUMO_TAG_CF_WIEDEMANN }
}

car follwing model values

Definition at line 1161 of file SUMOXMLDefinitions.h.

◆ EdgeFunctions

◆ LaneChangeActions

StringBijection< LaneChangeAction > SUMOXMLDefinitions::LaneChangeActions
static

lane change actions

Definition at line 1123 of file SUMOXMLDefinitions.h.

Referenced by toString< LaneChangeAction >().

◆ laneChangeActionValues

StringBijection< LaneChangeAction >::Entry SUMOXMLDefinitions::laneChangeActionValues
staticprivate
Initial value:
= {
{ "stay", LCA_STAY },
{ "left", LCA_LEFT },
{ "right", LCA_RIGHT },
{ "strategic", LCA_STRATEGIC },
{ "cooperative", LCA_COOPERATIVE },
{ "speedGain", LCA_SPEEDGAIN },
{ "keepRight", LCA_KEEPRIGHT },
{ "sublane", LCA_SUBLANE },
{ "traci", LCA_TRACI },
{ "urgent", LCA_URGENT },
{ "blocked", LCA_BLOCKED }
}

lane change action values

Definition at line 1167 of file SUMOXMLDefinitions.h.

◆ LaneChangeModels

StringBijection< LaneChangeModel > SUMOXMLDefinitions::LaneChangeModels
static

lane change models

Definition at line 1114 of file SUMOXMLDefinitions.h.

Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), and toString< LaneChangeModel >().

◆ laneChangeModelValues

StringBijection< LaneChangeModel >::Entry SUMOXMLDefinitions::laneChangeModelValues
staticprivate
Initial value:
= {
{ "DK2008", LCM_DK2008 },
{ "LC2013", LCM_LC2013 },
{ "SL2015", LCM_SL2015 },
{ "default", LCM_DEFAULT }
}

lane change model values

Definition at line 1158 of file SUMOXMLDefinitions.h.

◆ LaneSpreadFunctions

◆ laneSpreadFunctionValues

StringBijection< LaneSpreadFunction >::Entry SUMOXMLDefinitions::laneSpreadFunctionValues
staticprivate
Initial value:
= {
{"right", LANESPREAD_RIGHT },
{"center", LANESPREAD_CENTER }
}

lane spread function values

Definition at line 1146 of file SUMOXMLDefinitions.h.

◆ LateralAlignments

◆ lateralAlignmentValues

StringBijection< LateralAlignment >::Entry SUMOXMLDefinitions::lateralAlignmentValues
staticprivate
Initial value:
= {
{ "right", LATALIGN_RIGHT },
{ "center", LATALIGN_CENTER },
{ "arbitrary", LATALIGN_ARBITRARY },
{ "nice", LATALIGN_NICE },
{ "compact", LATALIGN_COMPACT },
{ "left", LATALIGN_LEFT }
}

lanteral alignment values

Definition at line 1164 of file SUMOXMLDefinitions.h.

◆ LinkDirections

StringBijection< LinkDirection > SUMOXMLDefinitions::LinkDirections
static

link directions

Definition at line 1108 of file SUMOXMLDefinitions.h.

Referenced by TraCI_Lane::getLinks(), NLHandler::parseLinkDir(), and toString< LinkDirection >().

◆ linkDirectionValues

StringBijection< LinkDirection >::Entry SUMOXMLDefinitions::linkDirectionValues
staticprivate
Initial value:
= {
{ "s", LINKDIR_STRAIGHT },
{ "t", LINKDIR_TURN },
{ "l", LINKDIR_LEFT },
{ "r", LINKDIR_RIGHT },
{ "L", LINKDIR_PARTLEFT },
{ "invalid", LINKDIR_NODIR }
}

link direction values

Definition at line 1152 of file SUMOXMLDefinitions.h.

◆ LinkStates

StringBijection< LinkState > SUMOXMLDefinitions::LinkStates
static

◆ linkStateValues

StringBijection< LinkState >::Entry SUMOXMLDefinitions::linkStateValues
staticprivate
Initial value:

link state values

Definition at line 1149 of file SUMOXMLDefinitions.h.

◆ NodeTypes

◆ sumoEdgeFuncValues

StringBijection< SumoXMLEdgeFunc >::Entry SUMOXMLDefinitions::sumoEdgeFuncValues
staticprivate
Initial value:
= {
{"normal", EDGEFUNC_NORMAL},
{"connector", EDGEFUNC_CONNECTOR},
{"sink", EDGEFUNC_SINK},
{"source", EDGEFUNC_SOURCE},
{"crossing", EDGEFUNC_CROSSING},
{"walkingarea", EDGEFUNC_WALKINGAREA},
{"internal", EDGEFUNC_INTERNAL}
}

edge function values

Definition at line 1143 of file SUMOXMLDefinitions.h.

◆ sumoNodeTypeValues

StringBijection< SumoXMLNodeType >::Entry SUMOXMLDefinitions::sumoNodeTypeValues
staticprivate
Initial value:
= {
{"traffic_light", NODETYPE_TRAFFIC_LIGHT},
{"traffic_light_unregulated", NODETYPE_TRAFFIC_LIGHT_NOJUNCTION},
{"traffic_light_right_on_red", NODETYPE_TRAFFIC_LIGHT_RIGHT_ON_RED},
{"rail_signal", NODETYPE_RAIL_SIGNAL},
{"rail_crossing", NODETYPE_RAIL_CROSSING},
{"priority", NODETYPE_PRIORITY},
{"priority_stop", NODETYPE_PRIORITY_STOP},
{"right_before_left", NODETYPE_RIGHT_BEFORE_LEFT},
{"allway_stop", NODETYPE_ALLWAY_STOP},
{"zipper", NODETYPE_ZIPPER},
{"district", NODETYPE_DISTRICT},
{"unregulated", NODETYPE_NOJUNCTION},
{"internal", NODETYPE_INTERNAL},
{"dead_end", NODETYPE_DEAD_END},
{"unknown", NODETYPE_UNKNOWN}
}

containers for the different SUMOXMLDefinitions

node type values

Definition at line 1140 of file SUMOXMLDefinitions.h.

◆ tags

StringBijection< int >::Entry SUMOXMLDefinitions::tags
static

The names of SUMO-XML elements (for passing to GenericSAXHandler)

Definition at line 1081 of file SUMOXMLDefinitions.h.

◆ Tags

◆ TrafficLightTypes

◆ trafficLightTypesValues

StringBijection< TrafficLightType >::Entry SUMOXMLDefinitions::trafficLightTypesValues
staticprivate
Initial value:
= {
{ "static", TLTYPE_STATIC },
{ "rail", TLTYPE_RAIL },
{ "actuated", TLTYPE_ACTUATED },
{ "delay_based", TLTYPE_DELAYBASED },
{ "sotl_phase", TLTYPE_SOTL_PHASE },
{ "sotl_platoon", TLTYPE_SOTL_PLATOON },
{ "sotl_request", TLTYPE_SOTL_REQUEST },
{ "sotl_wave", TLTYPE_SOTL_WAVE },
{ "sotl_marching", TLTYPE_SOTL_MARCHING },
{ "swarm", TLTYPE_SWARM_BASED },
{ "deterministic", TLTYPE_HILVL_DETERMINISTIC },
{ "<invalid>", TLTYPE_INVALID }
}

traffic light types values

Definition at line 1155 of file SUMOXMLDefinitions.h.


The documentation for this class was generated from the following files: