70 while (st.hasNext()) {
71 std::string
id = st.next();
73 if (edge ==
nullptr) {
74 throw ProcessError(
"The edge '" +
id +
"' declared as a sink is not known.");
84 while (st.hasNext()) {
85 std::string
id = st.next();
87 if (edge ==
nullptr) {
88 throw ProcessError(
"The edge '" +
id +
"' declared as a source is not known.");
112 WRITE_ERROR(
"The edge '" +
id +
"' is not known within the network (within a 'from-edge' tag).");
131 if (edge ==
nullptr) {
132 WRITE_ERROR(
"The edge '" +
id +
"' is not known within the network (within a 'to-edge' tag).");
137 if (probability < 0) {
138 WRITE_ERROR(
"'probability' must be positive (in definition of to-edge '" +
id +
"').");
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.
Outgoing edge specification (jtrrouter)
ROJTREdge * myEdge
The current incoming edge the turning probabilities are set into.
static const int WHITECHARS
void setSource(const bool isSource=true)
Sets whether the edge is a source.
weights: time range begin
void setSink(const bool isSink=true)
Sets whether the edge is a sink.
double myIntervalBegin
The begin and the end of the current interval.
SAX-handler base for SUMO-files.
virtual bool hasAttribute(int id) const =0
Returns the information whether the named (by its enum-value) attribute is within the current list...
void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag;.
Encapsulated SAX-Attributes.
T get(int attr, const char *objectid, bool &ok, bool report=true) const
Tries to read given attribute assuming it is an int.
Incoming edge specification (jtrrouter)
An edge the jtr-router may route through.
RONet & myNet
The network to set the information into.
void addFollowerProbability(ROJTREdge *follower, double begTime, double endTime, double probability)
adds the information about the percentage of using a certain follower
ROJTRTurnDefLoader(RONet &net)
Constructor.
A basic edge for routing applications.
The router's network representation.
an aggreagated-output interval
ROEdge * getEdge(const std::string &name) const
Retrieves an edge from the network.
~ROJTRTurnDefLoader()
Destructor.