SUMO - Simulation of Urban MObility
ROJTRTurnDefLoader.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
19 // Loader for the of turning percentages and source/sink definitions
20 /****************************************************************************/
21 #ifndef ROJTRTurnDefLoader_h
22 #define ROJTRTurnDefLoader_h
23 
24 
25 // ===========================================================================
26 // included modules
27 // ===========================================================================
28 #ifdef _MSC_VER
29 #include <windows_config.h>
30 #else
31 #include <config.h>
32 #endif
33 
34 #include <set>
35 #include <string>
39 
40 
41 // ===========================================================================
42 // class declarations
43 // ===========================================================================
44 class ROJTREdge;
45 class RONet;
46 
47 
48 // ===========================================================================
49 // class definitions
50 // ===========================================================================
62 public:
68 
69 
72 
73 
74 protected:
76 
77 
85  void myStartElement(int element, const SUMOSAXAttributes& attrs);
87 
88 
89 private:
100  void beginFromEdge(const SUMOSAXAttributes& attrs);
101 
102 
116  void addToEdge(const SUMOSAXAttributes& attrs);
117 
118 
119 private:
122 
125 
128 
129 
130 };
131 
132 
133 #endif
134 
135 /****************************************************************************/
136 
void addToEdge(const SUMOSAXAttributes &attrs)
Parses the probability to use a certain outgoing edge.
void beginFromEdge(const SUMOSAXAttributes &attrs)
Begins the processing of a incoming edge definition.
ROJTREdge * myEdge
The current incoming edge the turning probabilities are set into.
double myIntervalBegin
The begin and the end of the current interval.
SAX-handler base for SUMO-files.
void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag;.
Loader for the of turning percentages and source/sink definitions.
Encapsulated SAX-Attributes.
An edge the jtr-router may route through.
Definition: ROJTREdge.h:57
RONet & myNet
The network to set the information into.
ROJTRTurnDefLoader(RONet &net)
Constructor.
The router&#39;s network representation.
Definition: RONet.h:74
~ROJTRTurnDefLoader()
Destructor.