SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ROHelper Namespace Reference

Some helping methods for router. More...

Functions

void recheckForLoops (std::vector< const ROEdge * > &edges)
 Computes the costs (travel time) for the given list of edges. More...
 

Detailed Description

Some helping methods for router.

Function Documentation

void ROHelper::recheckForLoops ( std::vector< const ROEdge * > &  edges)

Computes the costs (travel time) for the given list of edges.

Parameters
[in]edgesThe edges to pass
[in]vThe vehicle that passes the edges
[in]timeThe time at which the vehicle begins to pass the edges
Returns
The time needed by the vehicle to pass the edges (completely)
Todo:
Check whether vehicle's max speed is considered

Checks whether the given edge list contains loops and removes them

Parameters
[in]edgesThe list of edges to remove loops from

Definition at line 60 of file ROHelper.cpp.

Referenced by RORoute::recheckForLoops().