70 RORouteDef(
const std::string&
id,
const unsigned int lastUsed,
71 const bool tryRepair);
117 bool asAlternatives,
bool withExitTimes)
const;
bool myNewRoute
Information whether a new route was generated.
RORouteDef * copyOrigDest(const std::string &id) const
Returns a origin-destination copy of the route definition.
void addAlternative(SUMOAbstractRouter< ROEdge, ROVehicle > &router, const ROVehicle *const, RORoute *current, SUMOTime begin)
Adds an alternative to the list of routes.
RORoute * buildCurrentRoute(SUMOAbstractRouter< ROEdge, ROVehicle > &router, SUMOTime begin, const ROVehicle &veh) const
Triggers building of the complete route (via preComputeCurrentRoute) or returns precomputed route...
void addAlternativeDef(const RORouteDef *alternative)
Adds an alternative loaded from the file.
void preComputeCurrentRoute(SUMOAbstractRouter< ROEdge, ROVehicle > &router, SUMOTime begin, const ROVehicle &veh) const
Builds the complete route (or chooses her from the list of alternatives, when existing) ...
void repairCurrentRoute(SUMOAbstractRouter< ROEdge, ROVehicle > &router, SUMOTime begin, const ROVehicle &veh) const
Builds the complete route (or chooses her from the list of alternatives, when existing) ...
RORoute * myPrecomputed
precomputed route for out-of-order computation
A vehicle as used by router.
Helper base for things that are referenced and have to be saved only once.
OutputDevice & writeXMLDefinition(OutputDevice &dev, const ROVehicle *const veh, bool asAlternatives, bool withExitTimes) const
Saves the built route / route alternatives.
SUMOReal getProbability() const
Returns the probability the driver will take this route with.
const ROEdge * getDestination() const
A basic edge for routing applications.
Base class for objects which have an id.
virtual ~RORouteDef()
Destructor.
unsigned int myLastUsed
Index of the route used within the last step.
bool operator()(const RORoute *const a, const RORoute *const b)
RORouteDef(const std::string &id, const unsigned int lastUsed, const bool tryRepair)
Constructor.
RORouteDef * copy(const std::string &id) const
Returns a deep copy of the route definition.
A storage for options typed value containers)
Base class for a vehicle's route definition.
void addLoadedAlternative(RORoute *alternative)
Adds a single alternative loaded from the file An alternative may also be generated during DUA...
Static storage of an output device and its base (abstract) implementation.
RORouteDef & operator=(const RORouteDef &src)
Invalidated assignment operator.
std::vector< RORoute * > myAlternatives
The alternatives.
SUMOReal getOverallProb() const
Returns the sum of the probablities of the contained routes.
A complete router's route.