T - The TripSchedule type defined by the user of the range raptor API.public final class EgressPathLeg<T extends TripScheduleInfo> extends Object implements PathLeg<T>
| Constructor and Description |
|---|
EgressPathLeg(int fromStop,
int fromTime,
int toTime) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
fromStop()
The stop index where the leg start, also called the leg departure stop index.
|
int |
fromTime()
The time when the leg start/depart from the leg origin.
|
int |
hashCode() |
boolean |
isEgressLeg() |
TransitPathLeg<T> |
nextLeg()
An access leg is always followed by a transit leg.
|
int |
toTime()
The time when the leg end/arrive at the leg destination.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitasEgressLeg, asTransferLeg, asTransitLeg, duration, isTransferLeg, isTransitLegpublic final int fromStop()
public final int fromTime()
PathLegfromTime in interface PathLeg<T extends TripScheduleInfo>public final int toTime()
PathLegtoTime in interface PathLeg<T extends TripScheduleInfo>public final TransitPathLeg<T> nextLeg()
PathLegUnsupportedOperationException.
Use the PathLeg.isEgressLeg() to check if the last leg is reached.
nextLeg in interface PathLeg<T extends TripScheduleInfo>UnsupportedOperationException - - an egress leg is the last leg in a path and does not have a next leg.public final boolean isEgressLeg()
isEgressLeg in interface PathLeg<T extends TripScheduleInfo>true if egress leg, if not false.Copyright © 2019. All rights reserved.