69 RORouteDef(
const std::string&
id,
const int lastUsed,
70 const bool tryRepair,
const bool mayBeDisconnected);
123 bool asAlternatives,
bool withExitTimes)
const;
int myLastUsed
Index of the route used within the last step.
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.
bool repairCurrentRoute(SUMOAbstractRouter< ROEdge, ROVehicle > &router, SUMOTime begin, const ROVehicle &veh, ConstROEdgeVector oldEdges, ConstROEdgeVector &newEdges) const
Builds the complete route (or chooses her from the list of alternatives, when existing) ...
double getOverallProb() const
Returns the sum of the probablities of the contained routes.
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) ...
std::vector< const ROEdge * > ConstROEdgeVector
RORoute * myPrecomputed
precomputed route for out-of-order computation
const bool myMayBeDisconnected
A vehicle as used by router.
std::set< RORoute * > myRouteRefs
Routes which are deleted someplace else.
OutputDevice & writeXMLDefinition(OutputDevice &dev, const ROVehicle *const veh, bool asAlternatives, bool withExitTimes) const
Saves the built route / route alternatives.
RORouteDef(const std::string &id, const int lastUsed, const bool tryRepair, const bool mayBeDisconnected)
Constructor.
const ROEdge * getDestination() const
A basic edge for routing applications.
Base class for objects which have an id.
virtual ~RORouteDef()
Destructor.
bool operator()(const RORoute *const a, const RORoute *const b)
static void setUsingJTRR()
RORouteDef * copy(const std::string &id, const SUMOTime stopOffset) 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.
const RORoute * getFirstRoute() const
RORouteDef & operator=(const RORouteDef &src)
Invalidated assignment operator.
double getProbability() const
Returns the probability the driver will take this route with.
std::vector< RORoute * > myAlternatives
The alternatives.
A complete router's route.