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) |
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.
|
inline |
Definition at line 43 of file RailEdge.h.
|
inline |
Definition at line 50 of file RailEdge.h.
References RailEdge< E, V >::myViaSuccessors.
|
inline |
Definition at line 76 of file RailEdge.h.
References RailEdge< E, V >::addVirtualTurns(), RailEdge< E, V >::getID(), RailEdge< E, V >::myTurnaround, RailEdge< E, V >::myViaSuccessors, REVERSAL_SLACK, SVC_IGNORING, toString(), and RailEdge< E, V >::update().
Referenced by RailEdge< E, V >::addVirtualTurns(), and RailEdge< E, V >::init().
Returns the id of the edge.
Definition at line 177 of file RailEdge.h.
References RailEdge< E, V >::myID, and RailEdge< E, V >::myOriginal.
Referenced by RailEdge< E, V >::addVirtualTurns(), RailEdge< E, V >::init(), RailEdge< E, V >::prohibits(), and RailEdge< E, V >::update().
Returns the length of the edge.
Definition at line 211 of file RailEdge.h.
References RailEdge< E, V >::myOriginal.
Referenced by RailEdge< E, V >::init().
Returns the index (numeric id) of the edge.
Definition at line 165 of file RailEdge.h.
References RailEdge< E, V >::myNumericalID.
Returns the original edge.
Definition at line 170 of file RailEdge.h.
References RailEdge< E, V >::myOriginal.
Referenced by RailwayRouter< E, V >::getTravelTimeStatic().
|
inline |
Definition at line 236 of file RailEdge.h.
References RailEdge< E, V >::myClassesViaSuccessorMap, RailEdge< E, V >::myOriginal, RailEdge< E, V >::myViaSuccessors, SVC_IGNORING, and UNUSED_PARAMETER.
|
inline |
Definition at line 129 of file RailEdge.h.
References RailEdge< E, V >::addVirtualTurns(), RailEdge< E, V >::getID(), RailEdge< E, V >::getLength(), MAX2(), RailEdge< E, V >::myIsVirtual, RailEdge< E, V >::myOriginal, RailEdge< E, V >::myTurnaround, and RailEdge< E, V >::myViaSuccessors.
|
inline |
Definition at line 181 of file RailEdge.h.
References RailEdge< E, V >::myIsVirtual, RailEdge< E, V >::myOriginal, RailEdge< E, V >::myReplacementEdges, RailEdge< E, V >::myStartLength, REVERSAL_SLACK, and SVC_IGNORING.
Referenced by RailwayRouter< E, V >::getTravelTimeStatic().
Definition at line 219 of file RailEdge.h.
References RailEdge< E, V >::myOriginal.
Definition at line 262 of file RailEdge.h.
References RailEdge< E, V >::myIsVirtual.
Referenced by RailwayRouter< E, V >::getTravelTimeStatic().
|
inline |
Definition at line 223 of file RailEdge.h.
References RailEdge< E, V >::getID(), RailEdge< E, V >::myMaxLength, RailEdge< E, V >::myOriginal, and RailEdge_DEBUG_COND.
|
inline |
Definition at line 232 of file RailEdge.h.
References RailEdge< E, V >::myOriginal.
|
inline |
Definition at line 66 of file RailEdge.h.
References RailEdge< E, V >::getID(), RailEdge< E, V >::myMaxLength, RailEdge< E, V >::myReplacementEdges, and toString().
Referenced by RailEdge< E, V >::addVirtualTurns().
|
mutableprivate |
The successors available for a given vClass.
Definition at line 282 of file RailEdge.h.
Referenced by RailEdge< E, V >::getViaSuccessors().
Definition at line 268 of file RailEdge.h.
Referenced by RailEdge< E, V >::getID().
Definition at line 271 of file RailEdge.h.
Referenced by RailEdge< E, V >::init(), RailEdge< E, V >::insertOriginalEdges(), and RailEdge< E, V >::isVirtual().
|
private |
maximum train length for passing this (turnaround) edge
Definition at line 277 of file RailEdge.h.
Referenced by RailEdge< E, V >::prohibits(), and RailEdge< E, V >::update().
Definition at line 267 of file RailEdge.h.
Referenced by RailEdge< E, V >::getNumericalID().
Definition at line 269 of file RailEdge.h.
Referenced by RailEdge< E, V >::getID(), RailEdge< E, V >::getLength(), RailEdge< E, V >::getOriginal(), RailEdge< E, V >::getViaSuccessors(), RailEdge< E, V >::init(), RailEdge< E, V >::insertOriginalEdges(), RailEdge< E, V >::isInternal(), RailEdge< E, V >::prohibits(), and RailEdge< E, V >::restricts().
actual edges to return when passing this (turnaround) edge - only forward
Definition at line 274 of file RailEdge.h.
Referenced by RailEdge< E, V >::insertOriginalEdges(), and RailEdge< E, V >::update().
length of the edge where this turn starts
Definition at line 279 of file RailEdge.h.
Referenced by RailEdge< E, V >::insertOriginalEdges().
Definition at line 270 of file RailEdge.h.
Referenced by RailEdge< E, V >::addVirtualTurns(), RailEdge< E, V >::init(), and RailEdge< E, V >::~RailEdge().
|
mutableprivate |
Definition at line 284 of file RailEdge.h.
Referenced by RailEdge< E, V >::addVirtualTurns(), RailEdge< E, V >::getViaSuccessors(), RailEdge< E, V >::init(), and RailEdge< E, V >::RailEdge().