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) {}
60 :
Named(src.myID), myCosts(src.myCosts),
61 myProbability(src.myProbability), myRoute(src.myRoute), myColor(0) {
99 const bool withExitTimes)
const {
113 if (frontOffset + backOffset > 0) {
123 std::string exitTimes;
125 for (ConstROEdgeVector::const_iterator i =
myRoute.begin(); i !=
myRoute.end(); ++i) {
129 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 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
void setPrecision(unsigned int precision=OUTPUT_ACCURACY)
Sets the precison or resets it to default.
void addProbability(SUMOReal prob)
add additional vehicles/probability
A vehicle as used by router.
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.
An edge representing a whole district.
std::string toString(const T &t, std::streamsize accuracy=OUTPUT_ACCURACY)
Base class for objects which have an id.
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.
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
A complete router's route.
ConstROEdgeVector myRoute
The edges the route consists of.