71 const std::vector<const ROEdge*>& route,
const RGBColor*
const color);
150 return (
unsigned int)
myRoute.size();
177 const bool withCosts,
const bool withExitTimes)
const;
RORoute & operator=(const RORoute &src)
Invalidated assignment operator.
OutputDevice & writeXMLDefinition(OutputDevice &dev, const ROVehicle *const veh, const bool withCosts, const bool withExitTimes) const
void add(ROEdge *edge)
Adds an edge to the end of the route.
unsigned int size() const
Returns the number of edges in this route.
SUMOReal getCosts() const
Returns the costs of the route.
void setProbability(SUMOReal prob)
Sets the probability of the route.
void recheckForLoops()
Checks whether this route contains loops and removes such.
void addProbability(SUMOReal prob)
add additional vehicles/probability
A vehicle as used by router.
const ROEdge * getLast() const
Returns the last edge in the route.
SUMOReal myCosts
The costs of the route.
const RGBColor * myColor
The color of the route.
const RGBColor * getColor() const
Returns this route's color.
std::vector< const ROEdge * > myRoute
The edges the route consists of.
SUMOReal getProbability() const
Returns the probability the driver will take this route with.
void setCosts(SUMOReal costs)
Sets the costs of the route.
SUMOReal myProbability
The probability the driver will take this route with.
const ROEdge * getFirst() const
Returns the first edge in the route.
A basic edge for routing applications.
Base class for objects which have an id.
const std::vector< const ROEdge * > & getEdgeVector() const
Returns the list of edges this route consists of.
RORoute(const std::string &id, SUMOReal costs, SUMOReal prob, const std::vector< const ROEdge * > &route, const RGBColor *const color)
Constructor.
Static storage of an output device and its base (abstract) implementation.
A complete router's route.