77 while (st.hasNext()) {
78 std::string
id = st.next();
81 throw ProcessError(
"The edge '" +
id +
"' declared as a sink is not known.");
91 while (st.hasNext()) {
92 std::string
id = st.next();
95 throw ProcessError(
"The edge '" +
id +
"' declared as a source is not known.");
119 WRITE_ERROR(
"The edge '" +
id +
"' is not known within the network (within a 'from-edge' tag).");
139 WRITE_ERROR(
"The edge '" +
id +
"' is not known within the network (within a 'to-edge' tag).");
144 if (probability < 0) {
145 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
weights: time range begin
void setFunc(EdgeFunc func)
Sets the function of the edge.
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;.
An edge where vehicles disappear (no vehicle may leave this edge)
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.
An edge where vehicles are inserted at (no vehicle may come from back)
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.