74 const std::vector<const ROEdge*>& route,
const RGBColor*
const color,
75 const std::vector<SUMOVehicleParameter::Stop>& stops);
146 return (
unsigned int)
myRoute.size();
173 const bool withCosts,
const bool withExitTimes)
const;
183 const std::vector<SUMOVehicleParameter::Stop>&
getStops()
const {
201 std::vector<SUMOVehicleParameter::Stop>
myStops;
RORoute & operator=(const RORoute &src)
Invalidated assignment operator.
OutputDevice & writeXMLDefinition(OutputDevice &dev, const ROVehicle *const veh, const bool withCosts, const bool withExitTimes) const
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
RORoute(const std::string &id, SUMOReal costs, SUMOReal prob, const std::vector< const ROEdge * > &route, const RGBColor *const color, const std::vector< SUMOVehicleParameter::Stop > &stops)
Constructor.
A vehicle as used by router.
std::vector< SUMOVehicleParameter::Stop > myStops
List of the stops on the parsed route.
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.
Static storage of an output device and its base (abstract) implementation.
const std::vector< SUMOVehicleParameter::Stop > & getStops() const
Returns the list of stops this route contains.
A complete router's route.