![]() |
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. More... | |
double | getLength () const |
Returns the length of the edge. More... | |
int | getNumericalID () const |
Returns the index (numeric id) of the edge. More... | |
const E * | getOriginal () const |
Returns the original edge. More... | |
const ConstEdgePairVector & | getViaSuccessors (SUMOVehicleClass vClass=SVC_IGNORING) 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) |
Private Attributes | |
std::map< SUMOVehicleClass, ConstEdgePairVector > | myClassesViaSuccessorMap |
The successors available for a given vClass. More... | |
const std::string | myID |
bool | myIsVirtual |
double | myMaxLength = std::numeric_limits<double>::max() |
maximum train length for passing this (turnaround) edge More... | |
const int | myNumericalID |
const E * | myOriginal |
std::vector< const E * > | myReplacementEdges |
actual edges to return when passing this (turnaround) edge - only forward More... | |
double | myStartLength = 0 |
length of the edge where this turn starts More... | |
_RailEdge * | myTurnaround |
ConstEdgePairVector | myViaSuccessors |
the edge type representing backward edges
Definition at line 36 of file RailEdge.h.
Definition at line 38 of file RailEdge.h.
typedef std::vector<std::pair<const _RailEdge*, const _RailEdge*> > RailEdge< E, V >::ConstEdgePairVector |
Definition at line 39 of file RailEdge.h.
Definition at line 41 of file RailEdge.h.
|
inline |
Definition at line 48 of file RailEdge.h.
References RailEdge< E, V >::myViaSuccessors.
|
inline |
Definition at line 69 of file RailEdge.h.
References RailEdge< E, V >::getID(), RailEdge< E, V >::myTurnaround, RailEdge< E, V >::myViaSuccessors, SVC_IGNORING, toString(), and RailEdge< E, V >::update().
Referenced by RailEdge< E, V >::init().
|
inline |
Returns the id of the edge.
Definition at line 148 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().
|
inline |
Returns the length of the edge.
Definition at line 181 of file RailEdge.h.
References RailEdge< E, V >::myOriginal.
Referenced by RailEdge< E, V >::init().
|
inline |
Returns the index (numeric id) of the edge.
Definition at line 136 of file RailEdge.h.
References RailEdge< E, V >::myNumericalID.
|
inline |
Returns the original edge.
Definition at line 141 of file RailEdge.h.
References RailEdge< E, V >::myOriginal.
Referenced by RailwayRouter< E, V >::getTravelTimeStatic().
|
inline |
Definition at line 206 of file RailEdge.h.
References RailEdge< E, V >::myClassesViaSuccessorMap, RailEdge< E, V >::myOriginal, RailEdge< E, V >::myViaSuccessors, and SVC_IGNORING.
|
inline |
Definition at line 106 of file RailEdge.h.
References RailEdge< E, V >::addVirtualTurns(), RailEdge< E, V >::getID(), RailEdge< E, V >::getLength(), RailEdge< E, V >::myIsVirtual, RailEdge< E, V >::myOriginal, RailEdge< E, V >::myTurnaround, and RailEdge< E, V >::myViaSuccessors.
|
inline |
Definition at line 152 of file RailEdge.h.
References RailEdge< E, V >::myIsVirtual, RailEdge< E, V >::myOriginal, RailEdge< E, V >::myReplacementEdges, RailEdge< E, V >::myStartLength, and SVC_IGNORING.
Referenced by RailwayRouter< E, V >::getTravelTimeStatic().
|
inline |
Definition at line 189 of file RailEdge.h.
References RailEdge< E, V >::myOriginal.
|
inline |
Definition at line 231 of file RailEdge.h.
References RailEdge< E, V >::myIsVirtual.
Referenced by RailwayRouter< E, V >::getTravelTimeStatic().
|
inline |
Definition at line 193 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 202 of file RailEdge.h.
References RailEdge< E, V >::myOriginal.
|
inline |
Definition at line 59 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 251 of file RailEdge.h.
Referenced by RailEdge< E, V >::getViaSuccessors().
|
private |
Definition at line 237 of file RailEdge.h.
Referenced by RailEdge< E, V >::getID().
|
private |
Definition at line 240 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 246 of file RailEdge.h.
Referenced by RailEdge< E, V >::prohibits(), and RailEdge< E, V >::update().
|
private |
Definition at line 236 of file RailEdge.h.
Referenced by RailEdge< E, V >::getNumericalID().
|
private |
Definition at line 238 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().
|
private |
actual edges to return when passing this (turnaround) edge - only forward
Definition at line 243 of file RailEdge.h.
Referenced by RailEdge< E, V >::insertOriginalEdges(), and RailEdge< E, V >::update().
|
private |
length of the edge where this turn starts
Definition at line 248 of file RailEdge.h.
Referenced by RailEdge< E, V >::insertOriginalEdges().
Definition at line 239 of file RailEdge.h.
Referenced by RailEdge< E, V >::addVirtualTurns(), and RailEdge< E, V >::init().
|
mutableprivate |
Definition at line 253 of file RailEdge.h.
Referenced by RailEdge< E, V >::addVirtualTurns(), RailEdge< E, V >::getViaSuccessors(), RailEdge< E, V >::init(), and RailEdge< E, V >::RailEdge().