 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
62 RORouteDef(
const std::string&
id,
const int lastUsed,
63 const bool tryRepair,
const bool mayBeDisconnected);
116 bool asAlternatives,
bool withExitTimes)
const;
void addAlternative(SUMOAbstractRouter< ROEdge, ROVehicle > &router, const ROVehicle *const, RORoute *current, SUMOTime begin)
Adds an alternative to the list of routes.
double getProbability() const
Returns the probability the driver will take this route with.
RORoute * buildCurrentRoute(SUMOAbstractRouter< ROEdge, ROVehicle > &router, SUMOTime begin, const ROVehicle &veh) const
Triggers building of the complete route (via preComputeCurrentRoute) or returns precomputed route.
Base class for objects which have an id.
Static storage of an output device and its base (abstract) implementation.
void addAlternativeDef(const RORouteDef *alternative)
Adds an alternative loaded from the file.
const RORoute * getFirstRoute() const
Base class for a vehicle's route definition.
A vehicle as used by router.
RORouteDef & operator=(const RORouteDef &src)
Invalidated assignment operator.
double getOverallProb() const
Returns the sum of the probablities of the contained routes.
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)
OutputDevice & writeXMLDefinition(OutputDevice &dev, const ROVehicle *const veh, bool asAlternatives, bool withExitTimes) const
Saves the built route / route alternatives.
std::set< RORoute * > myRouteRefs
Routes which are deleted someplace else.
A complete router's route.
bool myNewRoute
Information whether a new route was generated.
A storage for options typed value containers)
const bool myMayBeDisconnected
int myLastUsed
Index of the route used within the last step.
RORoute * myPrecomputed
precomputed route for out-of-order computation
void addLoadedAlternative(RORoute *alternative)
Adds a single alternative loaded from the file An alternative may also be generated during DUA.
const ROEdge * getDestination() const
bool operator()(const RORoute *const a, const RORoute *const b)
RORouteDef(const RORouteDef &src)
Invalidated copy constructor.
A basic edge for routing applications.
virtual ~RORouteDef()
Destructor.
RORouteDef * copyOrigDest(const std::string &id) const
Returns a origin-destination copy of the route definition.
RORouteDef * copy(const std::string &id, const SUMOTime stopOffset) const
Returns a deep copy of the route definition.
RORouteDef(const std::string &id, const int lastUsed, const bool tryRepair, const bool mayBeDisconnected)
Constructor.
static void setUsingJTRR()
std::vector< const ROEdge * > ConstROEdgeVector
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)
std::vector< RORoute * > myAlternatives
The alternatives.