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 /****************************************************************************/
16 // Loader for the of turning percentages and source/sink definitions
17 /****************************************************************************/
18 #ifndef ROJTRTurnDefLoader_h
19 #define ROJTRTurnDefLoader_h
20 
21 
22 // ===========================================================================
23 // included modules
24 // ===========================================================================
25 #include <config.h>
26 
27 #include <set>
28 #include <string>
32 
33 
34 // ===========================================================================
35 // class declarations
36 // ===========================================================================
37 class ROJTREdge;
38 class RONet;
39 
40 
41 // ===========================================================================
42 // class definitions
43 // ===========================================================================
55 public:
61 
62 
65 
66 
67 protected:
69 
70 
78  void myStartElement(int element, const SUMOSAXAttributes& attrs);
80 
81 
82 private:
93  void beginFromEdge(const SUMOSAXAttributes& attrs);
94 
95 
109  void addToEdge(const SUMOSAXAttributes& attrs);
110 
111 
112 private:
115 
118 
121 
122 
123 };
124 
125 
126 #endif
127 
128 /****************************************************************************/
129 
SUMOSAXHandler
SAX-handler base for SUMO-files.
Definition: SUMOSAXHandler.h:41
ROJTRTurnDefLoader::ROJTRTurnDefLoader
ROJTRTurnDefLoader(RONet &net)
Constructor.
Definition: ROJTRTurnDefLoader.cpp:42
SUMOSAXHandler.h
RONet
The router's network representation.
Definition: RONet.h:63
ROJTRTurnDefLoader::myStartElement
void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag;.
Definition: ROJTRTurnDefLoader.cpp:51
ROJTRTurnDefLoader::myIntervalBegin
double myIntervalBegin
The begin and the end of the current interval.
Definition: ROJTRTurnDefLoader.h:117
ROJTRTurnDefLoader::myEdge
ROJTREdge * myEdge
The current incoming edge the turning probabilities are set into.
Definition: ROJTRTurnDefLoader.h:120
NamedColumnsParser.h
ROJTREdge
An edge the jtr-router may route through.
Definition: ROJTREdge.h:50
ROJTRTurnDefLoader::addToEdge
void addToEdge(const SUMOSAXAttributes &attrs)
Parses the probability to use a certain outgoing edge.
Definition: ROJTRTurnDefLoader.cpp:118
LineHandler.h
ROJTRTurnDefLoader::myIntervalEnd
double myIntervalEnd
Definition: ROJTRTurnDefLoader.h:117
config.h
ROJTRTurnDefLoader::myNet
RONet & myNet
The network to set the information into.
Definition: ROJTRTurnDefLoader.h:114
ROJTRTurnDefLoader
Loader for the of turning percentages and source/sink definitions.
Definition: ROJTRTurnDefLoader.h:54
SUMOSAXAttributes
Encapsulated SAX-Attributes.
Definition: SUMOSAXAttributes.h:56
ROJTRTurnDefLoader::beginFromEdge
void beginFromEdge(const SUMOSAXAttributes &attrs)
Begins the processing of a incoming edge definition.
Definition: ROJTRTurnDefLoader.cpp:100
ROJTRTurnDefLoader::~ROJTRTurnDefLoader
~ROJTRTurnDefLoader()
Destructor.
Definition: ROJTRTurnDefLoader.cpp:47