43 #ifdef CHECK_MEMORY_LEAKS 45 #endif // CHECK_MEMORY_LEAKS 54 const std::vector<SUMOVehicleParameter::Stop>& stops)
56 myProbability(prop), myRoute(route), myColor(color), myStops(stops) {}
101 const bool withCosts,
102 const bool withExitTimes)
const {
116 if (frontOffset + backOffset > 0) {
126 std::string exitTimes;
128 for (ConstROEdgeVector::const_iterator i =
myRoute.begin(); i !=
myRoute.end(); ++i) {
132 time += (*i)->getTravelTime(veh, time);
SUMOTime getDepartureTime() const
Returns the time the vehicle starts at, 0 for triggered vehicles.
OutputDevice & writeAttr(const SumoXMLAttr attr, const T &val)
writes a named attribute
OutputDevice & writeXMLDefinition(OutputDevice &dev, const ROVehicle *const veh, const bool withCosts, const bool withExitTimes) const
Some static methods for string processing.
void setProbability(SUMOReal prob)
Sets the probability of the route.
void setPrecision(int precision=gPrecision)
Sets the precison or resets it to default.
void recheckForLoops(ConstROEdgeVector &edges)
Checks whether the given edge list contains loops and removes them.
void recheckForLoops()
Checks whether this route contains loops and removes such.
std::vector< const ROEdge * > ConstROEdgeVector
begin/end of the description of a route
void addProbability(SUMOReal prob)
add additional vehicles/probability
A vehicle as used by router.
std::vector< SUMOVehicleParameter::Stop > myStops
List of the stops on the parsed route.
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
SUMOReal myCosts
The costs of the route.
const RGBColor * myColor
The color of the route.
void setCosts(SUMOReal costs)
Sets the costs of the route.
SUMOReal myProbability
The probability the driver will take this route with.
Base class for objects which have an id.
std::string myID
The name of the object.
RORoute(const std::string &id, SUMOReal costs, SUMOReal prob, const ConstROEdgeVector &route, const RGBColor *const color, const std::vector< SUMOVehicleParameter::Stop > &stops)
Constructor.
Static storage of an output device and its base (abstract) implementation.
bool closeTag()
Closes the most recently opened tag.
An edge representing a whole district.
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
A complete router's route.
ConstROEdgeVector myRoute
The edges the route consists of.