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 
SUMOSAXHandler
SAX-handler base for SUMO-files.
Definition: SUMOSAXHandler.h:42
ROJTRTurnDefLoader::ROJTRTurnDefLoader
ROJTRTurnDefLoader(RONet &net)
Constructor.
Definition: ROJTRTurnDefLoader.cpp:43
SUMOSAXHandler.h
RONet
The router's network representation.
Definition: RONet.h:64
ROJTRTurnDefLoader::myStartElement
void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag;.
Definition: ROJTRTurnDefLoader.cpp:52
ROJTRTurnDefLoader::myIntervalBegin
double myIntervalBegin
The begin and the end of the current interval.
Definition: ROJTRTurnDefLoader.h:118
ROJTRTurnDefLoader::myEdge
ROJTREdge * myEdge
The current incoming edge the turning probabilities are set into.
Definition: ROJTRTurnDefLoader.h:121
NamedColumnsParser.h
ROJTREdge
An edge the jtr-router may route through.
Definition: ROJTREdge.h:51
ROJTRTurnDefLoader::addToEdge
void addToEdge(const SUMOSAXAttributes &attrs)
Parses the probability to use a certain outgoing edge.
Definition: ROJTRTurnDefLoader.cpp:119
LineHandler.h
ROJTRTurnDefLoader::myIntervalEnd
double myIntervalEnd
Definition: ROJTRTurnDefLoader.h:118
config.h
ROJTRTurnDefLoader::myNet
RONet & myNet
The network to set the information into.
Definition: ROJTRTurnDefLoader.h:115
ROJTRTurnDefLoader
Loader for the of turning percentages and source/sink definitions.
Definition: ROJTRTurnDefLoader.h:55
SUMOSAXAttributes
Encapsulated SAX-Attributes.
Definition: SUMOSAXAttributes.h:57
ROJTRTurnDefLoader::beginFromEdge
void beginFromEdge(const SUMOSAXAttributes &attrs)
Begins the processing of a incoming edge definition.
Definition: ROJTRTurnDefLoader.cpp:101
ROJTRTurnDefLoader::~ROJTRTurnDefLoader
~ROJTRTurnDefLoader()
Destructor.
Definition: ROJTRTurnDefLoader.cpp:48