![]() |
Eclipse SUMO - Simulation of Urban MObility
|
the edge type representing backward edges More...
#include <RailEdge.h>
Public Types | |
| typedef RailEdge< E, V > | _RailEdge |
| typedef std::vector< std::pair< const _RailEdge *, const _RailEdge * > > | ConstEdgePairVector |
Public Member Functions | |
| void | addVirtualTurns (const E *forward, const E *backward, std::vector< _RailEdge * > &railEdges, int &numericalID, double dist, double maxTrainLength, const std::vector< const E * > &replacementEdges) |
| const std::string & | getID () const |
| Returns the id of the edge. | |
| double | getLength () const |
| Returns the length of the edge. | |
| int | getNumericalID () const |
| Returns the index (numeric id) of the edge. | |
| const E * | getOriginal () const |
| Returns the original edge. | |
| const ConstEdgePairVector & | getViaSuccessors (SUMOVehicleClass vClass=SVC_IGNORING, bool ignoreTransientPermissions=false) const |
| void | init (std::vector< _RailEdge * > &railEdges, int &numericalID, double maxTrainLength, bool permitReversal) |
| void | insertOriginalEdges (double length, std::vector< const E * > &into) const |
| bool | isInternal () const |
| bool | isVirtual () const |
| bool | prohibits (const V *const vehicle) const |
| RailEdge (const E *orig) | |
| RailEdge (const E *turnStart, const E *turnEnd, int numericalID) | |
| bool | restricts (const V *const vehicle) const |
| void | update (double maxTrainLength, const std::vector< const E * > &replacementEdges) |
| virtual | ~RailEdge () |
| Destructor. | |
Private Attributes | |
| std::map< SUMOVehicleClass, ConstEdgePairVector > | myClassesViaSuccessorMap |
| The successors available for a given vClass. | |
| const std::string | myID |
| bool | myIsVirtual |
| double | myMaxLength = std::numeric_limits<double>::max() |
| maximum train length for passing this (turnaround) edge | |
| const int | myNumericalID |
| const E * | myOriginal |
| std::vector< const E * > | myReplacementEdges |
| actual edges to return when passing this (turnaround) edge - only forward | |
| double | myStartLength = 0 |
| length of the edge where this turn starts | |
| _RailEdge * | myTurnaround |
| ConstEdgePairVector | myViaSuccessors |
the edge type representing backward edges
Definition at line 38 of file RailEdge.h.
Definition at line 40 of file RailEdge.h.
| typedef std::vector<std::pair<const _RailEdge*, const _RailEdge*> > RailEdge< E, V >::ConstEdgePairVector |
Definition at line 41 of file RailEdge.h.
Definition at line 43 of file RailEdge.h.
References getNumericalID(), myIsVirtual, myNumericalID, myOriginal, and myTurnaround.
|
inline |
Definition at line 50 of file RailEdge.h.
References getID(), getLength(), myID, myIsVirtual, myMaxLength, myNumericalID, myOriginal, myStartLength, myTurnaround, myViaSuccessors, and REVERSAL_SLACK.
|
inline |
Definition at line 76 of file RailEdge.h.
References addVirtualTurns(), getID(), myTurnaround, myViaSuccessors, REVERSAL_SLACK, SVC_IGNORING, toString(), and update().
Referenced by addVirtualTurns(), and init().
Returns the id of the edge.
Definition at line 180 of file RailEdge.h.
References myID, and myOriginal.
Referenced by addVirtualTurns(), init(), prohibits(), RailEdge(), and update().
Returns the length of the edge.
Definition at line 214 of file RailEdge.h.
References myOriginal.
Referenced by init(), and RailEdge().
Returns the index (numeric id) of the edge.
Definition at line 168 of file RailEdge.h.
References myNumericalID.
Referenced by RailEdge().
Returns the original edge.
Definition at line 173 of file RailEdge.h.
References myOriginal.
Referenced by RailwayRouter< E, V >::getTravelTimeStatic().
|
inline |
Definition at line 239 of file RailEdge.h.
References myClassesViaSuccessorMap, myOriginal, myViaSuccessors, and SVC_IGNORING.
|
inline |
Definition at line 129 of file RailEdge.h.
References addVirtualTurns(), getID(), getLength(), MAX2(), myOriginal, myTurnaround, and myViaSuccessors.
|
inline |
Definition at line 184 of file RailEdge.h.
References myIsVirtual, myOriginal, myReplacementEdges, myStartLength, REVERSAL_SLACK, and SVC_IGNORING.
Referenced by RailwayRouter< E, V >::getTravelTimeStatic().
Definition at line 222 of file RailEdge.h.
References myOriginal.
Definition at line 264 of file RailEdge.h.
References myIsVirtual.
Referenced by RailwayRouter< E, V >::getTravelTimeStatic().
Definition at line 226 of file RailEdge.h.
References getID(), myMaxLength, myOriginal, and RailEdge_DEBUG_COND.
Definition at line 235 of file RailEdge.h.
References myOriginal.
|
inline |
Definition at line 66 of file RailEdge.h.
References getID(), myMaxLength, myReplacementEdges, and toString().
Referenced by addVirtualTurns().
|
mutableprivate |
The successors available for a given vClass.
Definition at line 284 of file RailEdge.h.
Referenced by getViaSuccessors().
Definition at line 270 of file RailEdge.h.
Referenced by getID(), and RailEdge().
Definition at line 273 of file RailEdge.h.
Referenced by insertOriginalEdges(), isVirtual(), RailEdge(), and RailEdge().
|
private |
maximum train length for passing this (turnaround) edge
Definition at line 279 of file RailEdge.h.
Referenced by prohibits(), RailEdge(), and update().
Definition at line 269 of file RailEdge.h.
Referenced by getNumericalID(), RailEdge(), and RailEdge().
Definition at line 271 of file RailEdge.h.
Referenced by getID(), getLength(), getOriginal(), getViaSuccessors(), init(), insertOriginalEdges(), isInternal(), prohibits(), RailEdge(), RailEdge(), and restricts().
actual edges to return when passing this (turnaround) edge - only forward
Definition at line 276 of file RailEdge.h.
Referenced by insertOriginalEdges(), and update().
length of the edge where this turn starts
Definition at line 281 of file RailEdge.h.
Referenced by insertOriginalEdges(), and RailEdge().
Definition at line 272 of file RailEdge.h.
Referenced by addVirtualTurns(), init(), RailEdge(), RailEdge(), and ~RailEdge().
|
mutableprivate |
Definition at line 286 of file RailEdge.h.
Referenced by addVirtualTurns(), getViaSuccessors(), init(), and RailEdge().