Eclipse SUMO - Simulation of Urban MObility
|
The edge type representing backward edges with flipped nodes. More...
#include <FlippedEdge.h>
Public Types | |
typedef std::vector< std::pair< const ReversedEdge< E, V > *, const ReversedEdge< E, V > * > > | ConstEdgePairVector |
typedef std::vector< std::pair< const FlippedEdge< E, N, V > *, const FlippedEdge< E, N, V > * > > | ConstFlippedEdgePairVector |
Public Member Functions | |
FlippedEdge (const E *originalEdge) | |
Constructor. | |
const FlippedEdge< E, N, V > * | getBidiEdge () const |
Returns the bidirectional edge. | |
double | getDistanceTo (const FlippedEdge< E, N, V > *other, const bool doBoundaryEstimate=false) const |
Returns the distance to another flipped edge param[in] other The other flipped edge param[in] doBoundaryEstimate The boolean flag indicating whether the distance is estimated using both boundaries or not. | |
const FlippedNode< E, N, V > * | getFromJunction () const |
Returns the from-junction. | |
const std::string & | getID () const |
Returns the id of the edge. | |
double | getLength () const |
Returns the length of the edge. | |
double | getLengthGeometryFactor () const |
Returns a lower bound on shape.length() / myLength. | |
double | getMinimumTravelTime (const V *const veh) const |
Returns the minimum travel time. | |
int | getNumericalID () const |
Returns the index (numeric id) of the edge. | |
const E * | getOriginalEdge () const |
Returns the original edge. | |
int | getPriority () const |
Returns the edge priority (road class) | |
double | getSpeedLimit () const |
Returns the speed allowed on this edge. | |
double | getTimePenalty () const |
Returns the time penalty. | |
const FlippedNode< E, N, V > * | getToJunction () const |
Returns the to-junction. | |
const ConstFlippedEdgePairVector & | getViaSuccessors (SUMOVehicleClass vClass=SVC_IGNORING, bool ignoreTransientPermissions=false) const |
Returns the via successors. | |
bool | hasLoadedTravelTimes () const |
Returns a boolean flag indicating whether this edge has loaded travel times or not. | |
void | init () |
Initialize the flipped edge. | |
bool | isInternal () const |
bool | prohibits (const V *const vehicle) const |
bool | restricts (const V *const vehicle) const |
~FlippedEdge () | |
Destructor. | |
Static Public Member Functions | |
static double | getTravelTimeStatic (const FlippedEdge< E, N, V > *const edge, const V *const veh, double time) |
Returns the time for travelling on the given edge with the given vehicle at the given time. | |
static double | getTravelTimeStatic (const ReversedEdge< E, V > *const edge, const V *const veh, double time) |
static double | getTravelTimeStaticRandomized (const FlippedEdge< E, N, V > *const edge, const V *const veh, double time) |
Returns the randomized time for travelling on the given edge with the given vehicle at the given time. | |
Protected Attributes | |
FlippedNode< E, N, V > * | myFromJunction |
The junctions for this edge. | |
FlippedNode< E, N, V > * | myToJunction |
Private Attributes | |
std::map< SUMOVehicleClass, ConstFlippedEdgePairVector > | myClassesViaSuccessorMap |
The successors available for a given vClass. | |
const E *const | myOriginal |
ConstFlippedEdgePairVector | myViaSuccessors |
The edge type representing backward edges with flipped nodes.
Definition at line 43 of file FlippedEdge.h.
|
inherited |
Definition at line 33 of file ReversedEdge.h.
typedef std::vector<std::pair<const FlippedEdge<E, N, V>*, const FlippedEdge<E, N, V>*> > FlippedEdge< E, N, V >::ConstFlippedEdgePairVector |
Definition at line 46 of file FlippedEdge.h.
|
inline |
Constructor.
[in] | originalEdge | The original (forward) edge |
Definition at line 51 of file FlippedEdge.h.
|
inline |
Destructor.
Definition at line 58 of file FlippedEdge.h.
|
inline |
Returns the bidirectional edge.
Definition at line 122 of file FlippedEdge.h.
References ReversedEdge< E, V >::getOriginalEdge().
|
inline |
Returns the distance to another flipped edge param[in] other The other flipped edge param[in] doBoundaryEstimate The boolean flag indicating whether the distance is estimated using both boundaries or not.
Definition at line 130 of file FlippedEdge.h.
References ReversedEdge< E, V >::getOriginalEdge().
|
inline |
Returns the from-junction.
Definition at line 63 of file FlippedEdge.h.
References FlippedEdge< E, N, V >::myFromJunction.
|
inlineinherited |
Returns the id of the edge.
Definition at line 69 of file ReversedEdge.h.
References ReversedEdge< E, V >::myOriginal.
|
inlineinherited |
Returns the length of the edge.
Definition at line 76 of file ReversedEdge.h.
References ReversedEdge< E, V >::myOriginal.
|
inline |
Returns a lower bound on shape.length() / myLength.
Definition at line 162 of file FlippedEdge.h.
References ReversedEdge< E, V >::getOriginalEdge().
|
inline |
Returns the minimum travel time.
[in] | veh | The vehicle |
Definition at line 137 of file FlippedEdge.h.
References ReversedEdge< E, V >::getOriginalEdge().
|
inlineinherited |
Returns the index (numeric id) of the edge.
Definition at line 62 of file ReversedEdge.h.
References ReversedEdge< E, V >::myOriginal.
|
inlineinherited |
Returns the original edge.
Definition at line 55 of file ReversedEdge.h.
References ReversedEdge< E, V >::myOriginal.
Referenced by FlippedEdge< E, N, V >::getBidiEdge(), FlippedEdge< E, N, V >::getDistanceTo(), FlippedEdge< E, N, V >::getLengthGeometryFactor(), FlippedEdge< E, N, V >::getMinimumTravelTime(), FlippedEdge< E, N, V >::getPriority(), FlippedEdge< E, N, V >::getSpeedLimit(), FlippedEdge< E, N, V >::getTimePenalty(), FlippedEdge< E, N, V >::getTravelTimeStatic(), FlippedEdge< E, N, V >::getTravelTimeStaticRandomized(), FlippedEdge< E, N, V >::getViaSuccessors(), and FlippedEdge< E, N, V >::hasLoadedTravelTimes().
|
inline |
Returns the edge priority (road class)
Definition at line 168 of file FlippedEdge.h.
References ReversedEdge< E, V >::getOriginalEdge().
|
inline |
Returns the speed allowed on this edge.
Definition at line 155 of file FlippedEdge.h.
References ReversedEdge< E, V >::getOriginalEdge().
|
inline |
Returns the time penalty.
Definition at line 143 of file FlippedEdge.h.
References ReversedEdge< E, V >::getOriginalEdge().
|
inline |
Returns the to-junction.
Definition at line 67 of file FlippedEdge.h.
References FlippedEdge< E, N, V >::myToJunction.
|
inlinestatic |
Returns the time for travelling on the given edge with the given vehicle at the given time.
[in] | edge | The edge |
[in] | veh | The vehicle |
[in] | time | The time |
Definition at line 76 of file FlippedEdge.h.
References ReversedEdge< E, V >::getOriginalEdge().
|
inlinestaticinherited |
Definition at line 96 of file ReversedEdge.h.
References ReversedEdge< E, V >::myOriginal.
|
inlinestatic |
Returns the randomized time for travelling on the given edge with the given vehicle at the given time.
[in] | edge | The edge |
[in] | veh | The vehicle |
[in] | time | The time |
Definition at line 85 of file FlippedEdge.h.
References ReversedEdge< E, V >::getOriginalEdge().
|
inline |
Returns the via successors.
[in] | vClass | The vehicle class |
[in] | ignoreTransientPermissions | Unused parameter |
Definition at line 94 of file FlippedEdge.h.
References ReversedEdge< E, V >::getOriginalEdge(), FlippedEdge< E, N, V >::myClassesViaSuccessorMap, FlippedEdge< E, N, V >::myViaSuccessors, SVC_IGNORING, and UNUSED_PARAMETER.
Referenced by FlippedEdge< E, N, V >::init().
|
inline |
Returns a boolean flag indicating whether this edge has loaded travel times or not.
Definition at line 149 of file FlippedEdge.h.
References ReversedEdge< E, V >::getOriginalEdge().
void FlippedEdge< E, N, V >::init | ( | ) |
Initialize the flipped edge.
Definition at line 193 of file FlippedEdge.h.
References FlippedEdge< E, N, V >::getViaSuccessors(), and FlippedEdge< E, N, V >::myViaSuccessors.
|
inlineinherited |
Definition at line 84 of file ReversedEdge.h.
References ReversedEdge< E, V >::myOriginal.
|
inlineinherited |
Definition at line 88 of file ReversedEdge.h.
References ReversedEdge< E, V >::myOriginal.
|
inlineinherited |
Definition at line 92 of file ReversedEdge.h.
References ReversedEdge< E, V >::myOriginal.
|
mutableprivate |
The successors available for a given vClass.
Definition at line 179 of file FlippedEdge.h.
Referenced by FlippedEdge< E, N, V >::getViaSuccessors().
|
protected |
The junctions for this edge.
Definition at line 174 of file FlippedEdge.h.
Referenced by FlippedEdge< E, N, V >::getFromJunction().
|
privateinherited |
Definition at line 125 of file ReversedEdge.h.
Referenced by ReversedEdge< E, V >::getBidiEdge(), ReversedEdge< E, V >::getID(), ReversedEdge< E, V >::getLength(), ReversedEdge< E, V >::getNumericalID(), ReversedEdge< E, V >::getOriginalEdge(), ReversedEdge< E, V >::getTravelTimeStatic(), ReversedEdge< E, V >::getViaSuccessors(), ReversedEdge< E, V >::init(), ReversedEdge< E, V >::isInternal(), ReversedEdge< E, V >::prohibits(), and ReversedEdge< E, V >::restricts().
|
protected |
Definition at line 175 of file FlippedEdge.h.
Referenced by FlippedEdge< E, N, V >::getToJunction().
|
mutableprivate |
Definition at line 180 of file FlippedEdge.h.
Referenced by FlippedEdge< E, N, V >::getViaSuccessors(), and FlippedEdge< E, N, V >::init().