SUMO - Simulation of Urban MObility
SUMOXMLDefinitions Class Reference

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

#include <SUMOXMLDefinitions.h>

Static Public Member Functions

Helper functions for ID-string manipulations
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 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
 
static StringBijection< SumoXMLEdgeFuncEdgeFunctions
 
static StringBijection< LaneSpreadFunctionLaneSpreadFunctions
 
static StringBijection< LinkStateLinkStates
 
static StringBijection< LinkDirectionLinkDirections
 
static StringBijection< TrafficLightTypeTrafficLightTypes
 
static StringBijection< LaneChangeModelLaneChangeModels
 

Static Private Attributes

static StringBijection< LaneChangeModel >::Entry laneChangeModelValues []
 
static StringBijection< LaneSpreadFunction >::Entry laneSpreadFunctionValues []
 
static StringBijection< LinkDirection >::Entry linkDirectionValues []
 
static StringBijection< LinkState >::Entry linkStateValues []
 
static StringBijection< SumoXMLEdgeFunc >::Entry sumoEdgeFuncValues []
 
static StringBijection< SumoXMLNodeType >::Entry sumoNodeTypeValues []
 
static StringBijection< TrafficLightType >::Entry trafficLightTypesVales []
 

Detailed Description

class for maintaining associations between enums and xml-strings

Definition at line 728 of file SUMOXMLDefinitions.h.

Member Function Documentation

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

return edge id when given the lane ID

Definition at line 582 of file SUMOXMLDefinitions.cpp.

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

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

Definition at line 576 of file SUMOXMLDefinitions.cpp.

Referenced by NIImporter_SUMO::addEdge(), NIImporter_SUMO::addLane(), and NLHandler::beginEdgeParsing().

Field Documentation

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

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

Definition at line 735 of file SUMOXMLDefinitions.h.

StringBijection< int > SUMOXMLDefinitions::Attrs
static

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

Definition at line 741 of file SUMOXMLDefinitions.h.

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

StringBijection< LaneChangeModel > SUMOXMLDefinitions::LaneChangeModels
static
StringBijection< LaneChangeModel >::Entry SUMOXMLDefinitions::laneChangeModelValues
staticprivate
Initial value:
= {
{ "DK2008", LCM_DK2008 },
{ "LC2013", LCM_LC2013 },
{ "JE2013", LCM_JE2013 },
}

Definition at line 785 of file SUMOXMLDefinitions.h.

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

Definition at line 777 of file SUMOXMLDefinitions.h.

StringBijection< LinkDirection > SUMOXMLDefinitions::LinkDirections
static
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 }
}

Definition at line 781 of file SUMOXMLDefinitions.h.

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

Definition at line 779 of file SUMOXMLDefinitions.h.

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}
}

Definition at line 775 of file SUMOXMLDefinitions.h.

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

Definition at line 773 of file SUMOXMLDefinitions.h.

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

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

Definition at line 732 of file SUMOXMLDefinitions.h.

StringBijection< TrafficLightType >::Entry SUMOXMLDefinitions::trafficLightTypesVales
staticprivate
Initial value:
= {
{ "static", TLTYPE_STATIC },
{ "rail", TLTYPE_RAIL },
{ "actuated", TLTYPE_ACTUATED },
}

Definition at line 783 of file SUMOXMLDefinitions.h.


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