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.dev/sumo
3 // Copyright (C) 2001-2024 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials are made available under the
5 // terms of the Eclipse Public License 2.0 which is available at
6 // https://www.eclipse.org/legal/epl-2.0/
7 // This Source Code may also be made available under the following Secondary
8 // Licenses when the conditions for such availability set forth in the Eclipse
9 // Public License 2.0 are satisfied: GNU General Public License, version 2
10 // or later which is available at
11 // https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12 // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13 /****************************************************************************/
20 // Loader for the of turning percentages and source/sink definitions
21 /****************************************************************************/
22 #pragma once
23 #include <config.h>
24 
25 #include <set>
26 #include <string>
30 
31 
32 // ===========================================================================
33 // class declarations
34 // ===========================================================================
35 class ROJTREdge;
36 class RONet;
37 
38 
39 // ===========================================================================
40 // class definitions
41 // ===========================================================================
53 public:
59 
60 
63 
64 
65 protected:
67 
68 
76  void myStartElement(int element, const SUMOSAXAttributes& attrs);
78 
79 
80 private:
91  void beginFromEdge(const SUMOSAXAttributes& attrs);
92 
93 
107  void addToEdge(const SUMOSAXAttributes& attrs);
108 
112  void addEdgeRel(const SUMOSAXAttributes& attrs);
113 
114 private:
117 
120 
123 
126 
129 
132 
133 };
An edge the jtr-router may route through.
Definition: ROJTREdge.h:48
Loader for the of turning percentages and source/sink definitions.
~ROJTRTurnDefLoader()
Destructor.
ROJTRTurnDefLoader(RONet &net)
Constructor.
void addEdgeRel(const SUMOSAXAttributes &attrs)
Parses the probability to use a certain incoming-outgoing edge relation.
void addToEdge(const SUMOSAXAttributes &attrs)
Parses the probability to use a certain outgoing edge.
bool myHaveWarnedAboutDeprecatedFormat
whether the warning for the deprecated format has been issued
ROJTREdge * myEdge
The current incoming edge the turning probabilities are set into.
double myIntervalBegin
The begin and the end of the current interval.
void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag;.
RONet & myNet
The network to set the information into.
bool mySourcesAreSinks
whether all sources are sinks
void beginFromEdge(const SUMOSAXAttributes &attrs)
Begins the processing of a incoming edge definition.
bool myDiscountSources
whether upstream flows should be discounted from source flows
The router's network representation.
Definition: RONet.h:62
Encapsulated SAX-Attributes.
SAX-handler base for SUMO-files.