Eclipse 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-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
17 // Loader for the of turning percentages and source/sink definitions
18 /****************************************************************************/
19 #ifndef ROJTRTurnDefLoader_h
20 #define ROJTRTurnDefLoader_h
21 
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #include <config.h>
27 
28 #include <set>
29 #include <string>
33 
34 
35 // ===========================================================================
36 // class declarations
37 // ===========================================================================
38 class ROJTREdge;
39 class RONet;
40 
41 
42 // ===========================================================================
43 // class definitions
44 // ===========================================================================
56 public:
62 
63 
66 
67 
68 protected:
70 
71 
79  void myStartElement(int element, const SUMOSAXAttributes& attrs);
81 
82 
83 private:
94  void beginFromEdge(const SUMOSAXAttributes& attrs);
95 
96 
110  void addToEdge(const SUMOSAXAttributes& attrs);
111 
112 
113 private:
116 
119 
122 
123 
124 };
125 
126 
127 #endif
128 
129 /****************************************************************************/
130 
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:51
RONet & myNet
The network to set the information into.
ROJTRTurnDefLoader(RONet &net)
Constructor.
The router&#39;s network representation.
Definition: RONet.h:64
~ROJTRTurnDefLoader()
Destructor.