SUMO - Simulation of Urban MObility
SUMOXMLDefinitions.h
Go to the documentation of this file.
1 /****************************************************************************/
12 // Definitions of elements and attributes known by SUMO
13 /****************************************************************************/
14 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
15 // Copyright (C) 2002-2017 DLR (http://www.dlr.de/) and contributors
16 /****************************************************************************/
17 //
18 // This file is part of SUMO.
19 // SUMO is free software: you can redistribute it and/or modify
20 // it under the terms of the GNU General Public License as published by
21 // the Free Software Foundation, either version 3 of the License, or
22 // (at your option) any later version.
23 //
24 /****************************************************************************/
25 #ifndef SUMOXMLDefinitions_h
26 #define SUMOXMLDefinitions_h
27 
28 
29 // ===========================================================================
30 // included modules
31 // ===========================================================================
32 #ifdef _MSC_VER
33 #include <windows_config.h>
34 #else
35 #include <config.h>
36 #endif
37 
39 
40 // ===========================================================================
41 // definitions
42 // ===========================================================================
49 enum SumoXMLTag {
207 
213 
243 
245 
259 
267 
277 
308  //AGEN_TAG_CHILD_ACOMP,
315 };
316 
317 
327 
352 
365 
372 
375 
404 
416 
419  SUMO_ATTR_SIGMA, // used by: Krauss
420  SUMO_ATTR_TAU, // Krauss
427 
438 
448 
466 
481 
520 
528 
536 
542 
552 
559 
596 
603 
614 
619 
632 
641 
651 
652 
655 
668 
671  //SUMO_ATTR_EDGE already defined
675 
681 
684  //SUMO_ATTR_EDGE, SUMO_ATTR_POSITION, SUMO_ATTR_TYPE already defined
689 
692  // ID, EDGE, POSITION, REFID, BEGIN and END are already defined
694  //AGEN_ATTR_ORDER,
697 
704 
713 
720 
721  //@name Netedit Attributes (used as virtual property holders, must be in SumoXMLAttr)
733  // @}
734 
739 };
740 
741 /*
742  * @brief definitions of special SumoXML-attribute values.
743  * Since these enums shall be used in switch statements we keep them separated
744  * @{
745  */
746 
753  NODETYPE_UNKNOWN, // terminator
755  NODETYPE_TRAFFIC_LIGHT_NOJUNCTION, // junction controlled only by traffic light but without other prohibitions,
760  NODETYPE_PRIORITY_STOP, // like priority but all minor links have stop signs
769 };
770 
771 
785 };
786 
787 
799 };
800 
801 
814 enum LinkState {
845 };
846 
847 
871 };
872 
873 
887  TLTYPE_INVALID //< must be the last one
888 };
889 
890 
898  LCA_NONE = 0,
900  LCA_STAY = 1 << 0,
902  LCA_LEFT = 1 << 1,
904  LCA_RIGHT = 1 << 2,
906  LCA_STRATEGIC = 1 << 3,
908  LCA_COOPERATIVE = 1 << 4,
910  LCA_SPEEDGAIN = 1 << 5,
912  LCA_KEEPRIGHT = 1 << 6,
914  LCA_TRACI = 1 << 7,
916  LCA_URGENT = 1 << 8,
918 
930  LCA_OVERLAPPING = 1 << 13,
934  LCA_SUBLANE = 1 << 15,
951  // LCA_BLOCKED_BY_CURRENT_LEADER = 1 << 28
952  // LCA_BLOCKED_BY_CURRENT_FOLLOWER = 1 << 29
954 };
955 
956 
963 };
964 
983 };
984 
985 // @}
986 
992 
993 public:
996 
999 
1002 
1005 
1010 
1013 
1016 
1019 
1022 
1025 
1028 
1031 
1034 
1038 
1042  static std::string getJunctionIDFromInternalEdge(const std::string internalEdge);
1043 
1045  static std::string getEdgeIDFromLane(const std::string laneID);
1047 
1048 private:
1053 
1056 
1059 
1062 
1065 
1068 
1071 
1074 
1077 
1081 };
1082 
1083 #endif
1084 
1085 
1086 /****************************************************************************/
The information about how to spread the lanes from the given position.
static StringBijection< LaneChangeModel >::Entry laneChangeModelValues[]
lane change model values
The link is a partial left direction.
The link has green light, may pass.
segment of a lane
static StringBijection< SumoXMLTag > CarFollowModels
car following models
SumoXMLTag
Numbers representing SUMO-XML - element names.
static StringBijection< SumoXMLNodeType > NodeTypes
a routeprobe detector
static StringBijection< LinkDirection >::Entry linkDirectionValues[]
link direction values
a list of node ids, used for controlling joining
alternative tag for e1 detector
description of a vehicle type
Whether vehicles must keep the junction clear.
split something
whether a given shape is user-defined
a source within a district (connection road)
The action is due to the default of keeping right "Rechtsfahrgebot".
ActivityGen Tags.
The action is done to help someone else.
static StringBijection< int >::Entry attrs[]
The names of SUMO-XML attributes (for passing to GenericSAXHandler)
static StringBijection< LinkState >::Entry linkStateValues[]
link state values
root element of a network file
begin/end of the description of a junction
begin/end of the description of a single lane
a flow definition (used by router)
Outgoing edge specification (jtrrouter)
static StringBijection< LaneSpreadFunction >::Entry laneSpreadFunctionValues[]
lane spread function values
static StringBijection< LaneSpreadFunction > LaneSpreadFunctions
lane spread functions
The vehicle is blocked by left follower.
a traffic assignment zone
distribution of a route
lane of a reroute of type closing
A layer number.
The link has green light, has to brake.
connectio between two lanes
This is an uncontrolled, minor link, has to stop.
Allow/disallow charge in transit in Charging Stations.
static StringBijection< LateralAlignment >::Entry lateralAlignmentValues[]
lanteral alignment values
static std::string getJunctionIDFromInternalEdge(const std::string internalEdge)
workingHours object
closing for workingHours object
foe visibility distance of a link
population and children accompaniment brackets
The link is a 180 degree turn.
Wants go to the right.
lane can change or stay
weights: time range begin
link,node: the traffic light id responsible for this link
This is a dead end link.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
begin/end of the description of a polygon
This is an uncontrolled, right-before-left link.
maximum duration of a phase
align with the closest sublane border
static StringBijection< LinkState > LinkStates
link states
static StringBijection< SumoXMLNodeType >::Entry sumoNodeTypeValues[]
containers for the different SUMOXMLDefinitions
drive on the right side
begin/end of the description of an edge restriction
The link is controlled by a tls which is off, not blinking, may pass.
A parking space for a single vehicle within a parking area.
Wants go to the left.
first coordinate of edge shape
This is an uncontrolled, all-way stop link.
The action is due to the wish to be faster (tactical lc)
used by the sublane model
prohibition of circulation between two edges
The link is a (hard) left direction.
This is an uncontrolled, zipper-merge link.
begin/end of the description of a route
LateralAlignment
Numbers representing special SUMO-XML-attribute values Information how vehicles align themselves with...
an e3 entry point
Sink(s) specification.
whether a feature has been loaded,guessed,modified or approved
LinkDirection
The different directions a link between two lanes may take (or a stream between two edges)...
an edge based mean data detector
The link is a straight direction.
Needs to stay on the current lane.
The state of a link.
drive on the left side
static StringBijection< LinkDirection > LinkDirections
link directions
reasons of lane change
LaneChangeModel
alternative definition for Population
The definition of a periodic event.
root element of a route file
The turning radius at an intersection in m.
static StringBijection< LaneChangeAction > LaneChangeActions
lane change actions
blocked in all directions
the edges of a route
station for a certain vehicle
rev stations for certain vehicles
The action is urgent (to be defined by lc-model)
frequency of a object
An instantenous induction loop.
static StringBijection< TrafficLightType > TrafficLightTypes
traffic light types
This is an uncontrolled, minor link, has to brake.
parameter associated to a certain key
an e3 exit point
schools object
An edge-following detector.
busStation and bus objects
block movement of a graphic element
LinkState
The right-of-way state of a link between two lanes used when constructing a NBTrafficLightLogic, in MSLink and GNEInternalLane.
invalid attribute
definition of a detector
roundabout defined in junction
Incoming edge specification (jtrrouter)
The link is a (hard) right direction.
The action is needed to follow the route (navigational lc)
node: the type of traffic light
edge: the shape in xml-definition
probability of route of a reroute
probability of destiny of a reroute
blocked by leader
begin/end of the description of a neighboring lane
maintain the current alignment
class for maintaining associations between enums and xml-strings
The link is a partial right direction.
description of a logic request within the junction
streets object
begin/end of the description of an edge
reroute of type closing
drive in the middle
entry for an alternative parking zone
static StringBijection< int >::Entry tags[]
The names of SUMO-XML elements (for passing to GenericSAXHandler)
static StringBijection< LateralAlignment > LateralAlignments
lateral alignments
stop for vehicles
a lane based mean data detector
trigger: the time of the step
LaneChangeAction
The state of a vehicle&#39;s lane-change behavior.
A train stop (alias for bus stop)
alternative definition for city entrances
a sink within a district (connection road)
the edges crossed by a pedestrian crossing
static StringBijection< LaneChangeAction >::Entry laneChangeActionValues[]
lane change action values
The link has yellow light, may pass.
SumoXMLNodeType
Numbers representing special SUMO-XML-attribute values for representing node- (junction-) types used ...
Custom shape for an element.
The vehicle is blocked being overlapping.
The link is controlled by a tls which is off and blinks, has to brake.
static StringBijection< int > Attrs
The names of SUMO-XML attributes for use in netbuild.
weights: time range end
Join operation.
a vtypeprobe detector
alternative definition for junction
The link has red light (must brake)
SumoXMLEdgeFunc
Numbers representing special SUMO-XML-attribute values for representing edge functions used in netbui...
This is an uncontrolled, major link, may pass.
crossing between edges for pedestrians
LaneSpreadFunction
Numbers representing special SUMO-XML-attribute values Information how the edge&#39;s lateral offset shal...
vaporizer of vehicles
The abstract direction of a link.
align with the rightmost sublane that allows keeping the current speed
description of a vehicle
an aggreagated-output interval
The action is due to a TraCI request.
The link is a 180 degree turn (left-hand network)
static StringBijection< SumoXMLTag >::Entry carFollowModelValues[]
car follwing model values
A variable speed sign.
static StringBijection< TrafficLightType >::Entry trafficLightTypesVales[]
traffic light types values
Eficiency of the charge in Charging Stations.
The vehicle does not have enough space to complete a continuous lane and change before the next turni...
link: the index of the link within the traffic light
last coordinate of edge shape
a single trip definition (used by router)
type of poligon
parent of an additional element
static StringBijection< int > Tags
The names of SUMO-XML elements for use in netbuild.
a traffic light logic
Delay in the charge of charging stations.
static StringBijection< SumoXMLEdgeFunc >::Entry sumoEdgeFuncValues[]
edge function values
The link has yellow light, has to brake anyway.
opening for workingHours object
The vehicle is blocked by right leader.
delete certain element
static std::string getEdgeIDFromLane(const std::string laneID)
return edge id when given the lane ID
static StringBijection< SumoXMLEdgeFunc > EdgeFunctions
edge functions
blocker by follower
An access point for a train stop.
distribution of a vehicle type
A color information.
The link has red light (must brake) but indicates upcoming green.
a single phase description
The vehicle is blocked by right follower.
static StringBijection< LaneChangeModel > LaneChangeModels
lane change models
alternative tag for e3 detector
Fill the polygon.
alternative tag for e2 detector
stations for certain vehicles
join exlude operation
TrafficLightType
begin/end of the description of a polygon
trigger: a step description
The link has no direction (is a dead end link)