76 const std::vector<SUMOVehicleParameter::Stop>& stops);
147 return (
unsigned int)
myRoute.size();
174 const bool withCosts,
const bool withExitTimes)
const;
184 const std::vector<SUMOVehicleParameter::Stop>&
getStops()
const {
202 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.
const ConstROEdgeVector & getEdgeVector() const
Returns the list of edges this route consists of.
void setProbability(SUMOReal prob)
Sets the probability of the route.
void recheckForLoops()
Checks whether this route contains loops and removes such.
std::vector< const ROEdge * > ConstROEdgeVector
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.
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.
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.
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.
std::vector< const ROEdge * > ConstROEdgeVector
const std::vector< SUMOVehicleParameter::Stop > & getStops() const
Returns the list of stops this route contains.
A complete router's route.
ConstROEdgeVector myRoute
The edges the route consists of.