SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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-sim.org/
15 // Copyright (C) 2001-2014 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 {
158 
164 
186 
197 
201 
206  /* streets object */
208 
209  /* workingHours object */
213 
214  /* school object */
217 
218  /* busStation and bus objects */
225 
226  /* population and children accompaniment brackets */
229  //AGEN_TAG_CHILD_ACOMP,
230 
231  /* city entrances */
234 
235  /* parameters */
237 
238 };
239 
240 
250  /* common attributes */
268  /* sumo-junction attributes */
283  /* vehicle attributes */
301  /* Car following model attributes */
302  SUMO_ATTR_SIGMA, // used by: Krauss
303  SUMO_ATTR_TAU, // Krauss
309  /* route alternatives / distribution attributes */
316  /* trip definition attributes */
327  /* source definitions */
366 
374  // Attributes for actuated traffic lights:
379  // Attributes for junction-internal lanes
382  // Attributes for detectors
388 
395 
426 
433 
443 
448 
458 
463 
464 
468  /* general object */
478 
479  /* streets object */
480  //SUMO_ATTR_EDGE already defined
483 
484  /* workHours object */
487 
488  /* school object */
489  //SUMO_ATTR_EDGE, SUMO_ATTR_POSITION, SUMO_ATTR_TYPE already defined
493 
494  /* busStation and Bus objects */
495  // ID, EDGE, POSITION, REFID, BEGIN and END are already defined
497  //AGEN_ATTR_ORDER,
499 
500  /* population and children accompaniment brackets */
504 
505  /* parameters */
511 
512  /* city gates */
515 
516  //@name Netedit Attributes (used as virtual property holders, must be in SumoXMLAttr)
517  //
519  /* whether a feature has been loaded,guessed,modified or approved */
521  /* first coordinate of edge shape */
523  /* last coordinate of edge shape */
526 };
527 
528 /*
529  * definitions of special SumoXML-attribute values.
530  * Since these enums shall be used in switch statements we keep them separated
531  * @{
532  */
533 
540  NODETYPE_UNKNOWN, // terminator
542  NODETYPE_TRAFFIC_LIGHT_NOJUNCTION, // junction controlled only by traffic light but without other prohibitions
544  NODETYPE_PRIORITY_STOP, // like priority but all minor links have stop signs
552 };
553 
554 
566 };
567 
568 
580 };
581 
582 
595 enum LinkState {
622 };
623 
624 
646 };
647 
648 
656 };
657 
658 
666 };
667 
668 
670 
677 
678 public:
681 
684 
687 
690 
692 
694 
696 
698 
700 
702 
704 
707 
708 private:
709 
711 
713 
715 
717 
719 
721 
723 
724 };
725 
726 #endif
727 
728 /****************************************************************************/
729 
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.
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
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.
The link is a 180 degree turn.
This is a dead end link.
the weight of a district'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.
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 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.
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's lateral offset shal...
The abstract direction of a link.
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 StringBijection< SumoXMLEdgeFunc > EdgeFunctions
Information whether the detector shall be continued on the folowing lanes.
A color information.
static StringBijection< LaneChangeModel > LaneChangeModels
Fill the polygon.
TrafficLightType
The link has no direction (is a dead end link)