73 RORoute(
const std::string&
id,
double costs,
double prob,
75 const std::vector<SUMOVehicleParameter::Stop>& stops);
180 const bool withCosts,
const bool withExitTimes)
const;
190 const std::vector<SUMOVehicleParameter::Stop>&
getStops()
const {
197 for (std::vector<SUMOVehicleParameter::Stop>::iterator stop =
myStops.begin(); stop !=
myStops.end(); ++stop) {
198 if (stop->until >= 0) {
199 stop->until += offset;
218 std::vector<SUMOVehicleParameter::Stop>
myStops;
RORoute & operator=(const RORoute &src)
Invalidated assignment operator.
void setProbability(double prob)
Sets the probability of the route.
OutputDevice & writeXMLDefinition(OutputDevice &dev, const ROVehicle *const veh, const bool withCosts, const bool withExitTimes) const
double getCosts() const
Returns the costs of the route.
const ConstROEdgeVector & getEdgeVector() const
Returns the list of edges this route consists of.
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.
std::vector< const ROEdge * > ConstROEdgeVector
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.
const RGBColor * myColor
The color of the route.
const RGBColor * getColor() const
Returns this route's color.
RORoute(const std::string &id, double costs, double prob, const ConstROEdgeVector &route, const RGBColor *const color, const std::vector< SUMOVehicleParameter::Stop > &stops)
Constructor.
double myProbability
The probability the driver will take this route with.
double myCosts
The costs of the route.
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.
void setCosts(double costs)
Sets the costs of the route.
Static storage of an output device and its base (abstract) implementation.
void addProbability(double prob)
add additional vehicles/probability
double getProbability() const
Returns the probability the driver will take this route with.
std::vector< const ROEdge * > ConstROEdgeVector
int size() const
Returns the number of edges in this route.
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.