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-2015 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 {
98  SUMO_TAG_CHARGING_STATION, // PABLO #1916 (Renamed all references of SUMO_TAG_CHRG_STN)
166 
172 
199 
211 
215 
225 
230  /* streets object */
232 
233  /* workingHours object */
237 
238  /* school object */
241 
242  /* busStation and bus objects */
249 
250  /* population and children accompaniment brackets */
253  //AGEN_TAG_CHILD_ACOMP,
254 
255  /* city entrances */
258 
259  /* parameters */
261 
262 };
263 
264 
274  /* common attributes */
294  /* sumo-junction attributes */
310  /* vehicle attributes */
331  /* Charging Station */
332  SUMO_ATTR_CHARGINGPOWER, // charge in W of the Charging Stations
333  SUMO_ATTR_EFFICIENCY, // Eficiency of the charge inCharging Stations
334  SUMO_ATTR_CHARGEINTRANSIT, // Allow/disallow charge in transit in Charging Stations
335  SUMO_ATTR_CHARGEDELAY, // Delay in the charge of charging stations
336  /* Car following model attributes */
337  SUMO_ATTR_SIGMA, // used by: Krauss
338  SUMO_ATTR_TAU, // Krauss
344  /* route alternatives / distribution attributes */
351  /* trip definition attributes */
364  /* source definitions */
375  /* the edges crossed by a pedestrian crossing */
411 
419  // Attributes for actuated traffic lights:
424  // Attributes for junction-internal lanes
427  // Attributes for detectors
434 
441 
475 
482 
493 
498 
508 
517 
527 
528 
532  /* general object */
542 
543  /* streets object */
544  //SUMO_ATTR_EDGE already defined
547 
548  /* workHours object */
551 
552  /* school object */
553  //SUMO_ATTR_EDGE, SUMO_ATTR_POSITION, SUMO_ATTR_TYPE already defined
557 
558  /* busStation and Bus objects */
559  // ID, EDGE, POSITION, REFID, BEGIN and END are already defined
561  //AGEN_ATTR_ORDER,
563 
564  /* population and children accompaniment brackets */
568 
569  /* parameters */
575 
576  /* city gates */
579 
580  //@name Netedit Attributes (used as virtual property holders, must be in SumoXMLAttr)
581  //
583  /* whether a feature has been loaded,guessed,modified or approved */
585  /* first coordinate of edge shape */
587  /* last coordinate of edge shape */
590 };
591 
592 /*
593  * definitions of special SumoXML-attribute values.
594  * Since these enums shall be used in switch statements we keep them separated
595  * @{
596  */
597 
604  NODETYPE_UNKNOWN, // terminator
606  NODETYPE_TRAFFIC_LIGHT_NOJUNCTION, // junction controlled only by traffic light but without other prohibitions,
610  NODETYPE_PRIORITY_STOP, // like priority but all minor links have stop signs
619 };
620 
621 
635 };
636 
637 
649 };
650 
651 
664 enum LinkState {
695 };
696 
697 
721 };
722 
723 
731 };
732 
733 
741 };
742 
743 
745 
752 
753 public:
756 
759 
762 
765 
767 
769 
771 
773 
775 
777 
779 
781 
784 
786 
787 
789  static std::string getJunctionIDFromInternalEdge(const std::string internalEdge);
790 
792  static std::string getEdgeIDFromLane(const std::string laneID);
793 
795 
796 private:
797 
799 
801 
803 
805 
807 
809 
811 
813 
814 };
815 
816 #endif
817 
818 /****************************************************************************/
819 
The information about how to spread the lanes from the given position.
static StringBijection< LaneChangeModel >::Entry laneChangeModelValues[]
The link is a partial left direction.
The link has green light, may pass.
static StringBijection< SumoXMLTag > CarFollowModels
SumoXMLTag
Numbers representing SUMO-XML - element names.
static StringBijection< SumoXMLNodeType > NodeTypes
static StringBijection< LinkDirection >::Entry linkDirectionValues[]
a list of node ids, used for controlling joining
minimum duration of a phase
Whether vehicles must keep the junction clear.
whether a given shape is user-defined
static StringBijection< int >::Entry attrs[]
The names of SUMO-XML attributes (for passing to GenericSAXHandler)
static StringBijection< LinkState >::Entry linkStateValues[]
Outgoing edge specification (jtrrouter)
static StringBijection< LaneSpreadFunction >::Entry laneSpreadFunctionValues[]
static StringBijection< LaneSpreadFunction > LaneSpreadFunctions
A layer number.
The link has green light, has to brake.
This is an uncontrolled, minor link, has to stop.
static std::string getJunctionIDFromInternalEdge(const std::string internalEdge)
return the junction id when given an edge of type internal, crossing or WalkingArea ...
The link is a 180 degree turn.
This is a dead end link.
the weight of a district&#39;s source or sink
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
This is an uncontrolled, right-before-left link.
maximum duration of a phase
static StringBijection< LinkState > LinkStates
static StringBijection< SumoXMLNodeType >::Entry sumoNodeTypeValues[]
The link is controlled by a tls which is off, not blinking, may pass.
This is an uncontrolled, all-way stop link.
The link is a (hard) left direction.
This is an uncontrolled, zipper-merge link.
Sink(s) specification.
LinkDirection
The different directions a link between two lanes may take (or a stream between two edges)...
The link is a straight direction.
The state of a link.
static StringBijection< LinkDirection > LinkDirections
LaneChangeModel
The definition of a periodic event.
The turning radius at an intersection in m.
the edges of a route
An instantenous induction loop.
static StringBijection< TrafficLightType > TrafficLightTypes
This is an uncontrolled, minor link, has to brake.
An edge-following detector.
LinkState
The right-of-way state of a link between two lanes used when constructing a NBTrafficLightLogic, in MSLink and GNEInternalLane.
Information within the junction logic which internal lanes block external.
Incoming edge specification (jtrrouter)
The link is a (hard) right direction.
class for maintaining associations between enums and xml-strings
The link is a partial right direction.
A Charging Station.
static StringBijection< int >::Entry tags[]
The names of SUMO-XML elements (for passing to GenericSAXHandler)
The link has yellow light, may pass.
SumoXMLNodeType
Numbers representing special SUMO-XML-attribute values for representing node- (junction-) types used ...
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.
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.
LaneSpreadFunction
Numbers representing special SUMO-XML-attribute values Information how the edge&#39;s lateral offset shal...
The abstract direction of a link.
The link is a 180 degree turn (left-hand network)
static StringBijection< SumoXMLTag >::Entry carFollowModelValues[]
A variable speed sign.
static StringBijection< TrafficLightType >::Entry trafficLightTypesVales[]
static StringBijection< int > Tags
The names of SUMO-XML elements for use in netbuild.
static StringBijection< SumoXMLEdgeFunc >::Entry sumoEdgeFuncValues[]
The link has yellow light, has to brake anyway.
static std::string getEdgeIDFromLane(const std::string laneID)
return edge id when given the lane ID
static StringBijection< SumoXMLEdgeFunc > EdgeFunctions
Information whether the detector shall be continued on the folowing lanes.
A color information.
The link has red light (must brake) but indicates upcoming green.
static StringBijection< LaneChangeModel > LaneChangeModels
Fill the polygon.
TrafficLightType
The link has no direction (is a dead end link)