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