SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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
static std::string getEdgeIDFromLane (const std::string laneID)
 return edge id when given the lane ID

Static Public Attributes

static StringBijection< int >
::Entry 
attrs []
 The names of SUMO-XML attributes (for passing to GenericSAXHandler)
static StringBijection< intAttrs
 The names of SUMO-XML attributes for use in netbuild.
static StringBijection< int >
::Entry 
tags []
 The names of SUMO-XML elements (for passing to GenericSAXHandler)
static StringBijection< intTags
 The names of SUMO-XML elements for use in netbuild.
Special values of SUMO-XML attributes
static StringBijection
< SumoXMLNodeType
NodeTypes
static StringBijection
< SumoXMLEdgeFunc
EdgeFunctions
static StringBijection
< LaneSpreadFunction
LaneSpreadFunctions
static StringBijection< LinkStateLinkStates
static StringBijection
< LinkDirection
LinkDirections
static StringBijection
< TrafficLightType
TrafficLightTypes
static StringBijection
< LaneChangeModel
LaneChangeModels

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 703 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 560 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 554 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 710 of file SUMOXMLDefinitions.h.

StringBijection< int > SUMOXMLDefinitions::Attrs
static

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

Definition at line 716 of file SUMOXMLDefinitions.h.

Referenced by toString< SumoXMLAttr >(), BinaryFormatter::writeAttr(), BinaryFormatter::writeHeader(), 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 760 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 752 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 756 of file SUMOXMLDefinitions.h.

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

Definition at line 754 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 750 of file SUMOXMLDefinitions.h.

StringBijection< SumoXMLNodeType >::Entry SUMOXMLDefinitions::sumoNodeTypeValues
staticprivate
Initial value:
{
{"traffic_light", NODETYPE_TRAFFIC_LIGHT},
{"traffic_light_unregulated", NODETYPE_TRAFFIC_LIGHT_NOJUNCTION},
{"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 748 of file SUMOXMLDefinitions.h.

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

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

Definition at line 707 of file SUMOXMLDefinitions.h.

StringBijection< TrafficLightType >::Entry SUMOXMLDefinitions::trafficLightTypesVales
staticprivate
Initial value:
{
{ "static", TLTYPE_STATIC },
{ "actuated", TLTYPE_ACTUATED },
{ "agentbased", TLTYPE_AGENT }
}

Definition at line 758 of file SUMOXMLDefinitions.h.


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