46 #ifdef CHECK_MEMORY_LEAKS 48 #endif // CHECK_MEMORY_LEAKS 81 while (st.hasNext()) {
82 std::string
id = st.next();
85 throw ProcessError(
"The edge '" +
id +
"' declared as a sink is not known.");
95 while (st.hasNext()) {
96 std::string
id = st.next();
99 throw ProcessError(
"The edge '" +
id +
"' declared as a source is not known.");
123 WRITE_ERROR(
"The edge '" +
id +
"' is not known within the network (within a 'from-edge' tag).");
143 WRITE_ERROR(
"The edge '" +
id +
"' is not known within the network (within a 'to-edge' tag).");
148 if (probability < 0) {
149 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 setFunc(EdgeFunc func)
Sets the function of the edge.
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.
ROJTRTurnDefLoader(RONet &net)
Constructor.
A basic edge for routing applications.
The router's network representation.
SUMOReal myIntervalBegin
The begin and the end of the current interval.
ROEdge * getEdge(const std::string &name) const
Retrieves an edge from the network.
void addFollowerProbability(ROJTREdge *follower, SUMOReal begTime, SUMOReal endTime, SUMOReal probability)
adds the information about the percentage of using a certain follower
~ROJTRTurnDefLoader()
Destructor.