64 RORoute(
const std::string&
id,
double costs,
double prob,
66 const std::vector<SUMOVehicleParameter::Stop>& stops);
171 const bool withCosts,
const bool withExitTimes)
const;
181 const std::vector<SUMOVehicleParameter::Stop>&
getStops()
const {
188 for (std::vector<SUMOVehicleParameter::Stop>::iterator stop =
myStops.begin(); stop !=
myStops.end(); ++stop) {
189 if (stop->until >= 0) {
190 stop->until += offset;
209 std::vector<SUMOVehicleParameter::Stop>
myStops;
std::vector< const ROEdge * > ConstROEdgeVector
std::vector< const ROEdge * > ConstROEdgeVector
Base class for objects which have an id.
Static storage of an output device and its base (abstract) implementation.
A basic edge for routing applications.
A complete router's route.
double getCosts() const
Returns the costs of the route.
const ROEdge * getFirst() const
Returns the first edge in the route.
ConstROEdgeVector myRoute
The edges the route consists of.
double myCosts
The costs of the route.
void setProbability(double prob)
Sets the probability of the route.
const std::vector< SUMOVehicleParameter::Stop > & getStops() const
Returns the list of stops this route contains.
double getProbability() const
Returns the probability the driver will take this route with.
double myProbability
The probability the driver will take this route with.
int size() const
Returns the number of edges in this route.
void addStopOffset(const SUMOTime offset)
Adapts the until time of all stops by the given offset.
RORoute(const std::string &id, double costs, double prob, const ConstROEdgeVector &route, const RGBColor *const color, const std::vector< SUMOVehicleParameter::Stop > &stops)
Constructor.
RORoute & operator=(const RORoute &src)
Invalidated assignment operator.
void addProbability(double prob)
add additional vehicles/probability
const RGBColor * myColor
The color of the route.
const RGBColor * getColor() const
Returns this route's color.
void recheckForLoops(const ConstROEdgeVector &mandatory)
Checks whether this route contains loops and removes such.
const ConstROEdgeVector & getEdgeVector() const
Returns the list of edges this route consists of.
const ROEdge * getLast() const
Returns the last edge in the route.
void setCosts(double costs)
Sets the costs of the route.
std::vector< SUMOVehicleParameter::Stop > myStops
List of the stops on the parsed route.
OutputDevice & writeXMLDefinition(OutputDevice &dev, const ROVehicle *const veh, const bool withCosts, const bool withExitTimes) const
A vehicle as used by router.