74 RORoute(
const std::string&
id,
double costs,
double prob,
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(double 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
A vehicle as used by router.
std::vector< SUMOVehicleParameter::Stop > myStops
List of the stops on the parsed route.
double getProbability() const
Returns the probability the driver will take this route with.
const RGBColor * myColor
The color of the route.
const std::vector< SUMOVehicleParameter::Stop > & getStops() const
Returns the list of stops this route contains.
RORoute(const std::string &id, double costs, double prob, const ConstROEdgeVector &route, const RGBColor *const color, const std::vector< SUMOVehicleParameter::Stop > &stops)
Constructor.
const ROEdge * getLast() const
Returns the last edge in the route.
double myProbability
The probability the driver will take this route with.
double myCosts
The costs of 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.
double getCosts() const
Returns the costs of the route.
int size() const
Returns the number of edges in this route.
void setCosts(double costs)
Sets the costs of the route.
const ConstROEdgeVector & getEdgeVector() const
Returns the list of edges this route consists of.
Static storage of an output device and its base (abstract) implementation.
void addProbability(double prob)
add additional vehicles/probability
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.