76 const std::vector<SUMOVehicleParameter::Stop>& stops);
181 const bool withCosts,
const bool withExitTimes)
const;
191 const std::vector<SUMOVehicleParameter::Stop>&
getStops()
const {
198 for (std::vector<SUMOVehicleParameter::Stop>::iterator stop =
myStops.begin(); stop !=
myStops.end(); ++stop) {
199 if (stop->until >= 0) {
200 stop->until += offset;
219 std::vector<SUMOVehicleParameter::Stop>
myStops;
RORoute & operator=(const RORoute &src)
Invalidated assignment operator.
void setProbability(SUMOReal prob)
Sets the probability of the route.
void recheckForLoops()
Checks whether this route contains loops and removes such.
void addStopOffset(const SUMOTime offset)
Adapts the until time of all stops by the given offset.
const ROEdge * getFirst() const
Returns the first edge in the route.
std::vector< const ROEdge * > ConstROEdgeVector
SUMOReal getCosts() const
Returns the costs of the 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.
SUMOReal myCosts
The costs of the route.
const RGBColor * myColor
The color of the route.
const std::vector< SUMOVehicleParameter::Stop > & getStops() const
Returns the list of stops this route contains.
void setCosts(SUMOReal costs)
Sets the costs of the route.
SUMOReal myProbability
The probability the driver will take this route with.
const ROEdge * getLast() const
Returns the last edge in the route.
const RGBColor * getColor() const
Returns this route's color.
A basic edge for routing applications.
Base class for objects which have an id.
int size() const
Returns the number of edges in this route.
SUMOReal getProbability() const
Returns the probability the driver will take this route with.
const ConstROEdgeVector & getEdgeVector() const
Returns the list of edges this route consists of.
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
OutputDevice & writeXMLDefinition(OutputDevice &dev, const ROVehicle *const veh, const bool withCosts, const bool withExitTimes) const
A complete router's route.
ConstROEdgeVector myRoute
The edges the route consists of.