T
- The TripSchedule type defined by the user of the range raptor API.public final class TransitPathLeg<T extends TripScheduleInfo> extends IntermediatePathLeg<T>
Constructor and Description |
---|
TransitPathLeg(int fromStop,
int fromTime,
int toStop,
int toTime,
T trip,
PathLeg<T> next) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isTransitLeg() |
PathLeg<T> |
nextLeg()
An access leg is always followed by a transit leg.
|
T |
trip()
The trip schedule info object passed into Raptor routing algorithm.
|
fromStop, fromTime, toStop, toTime
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
asEgressLeg, asTransferLeg, asTransitLeg, duration, isEgressLeg, isTransferLeg
public T trip()
public final boolean isTransitLeg()
true
if transit leg, if not false
.public final PathLeg<T> nextLeg()
PathLeg
UnsupportedOperationException
.
Use the PathLeg.isEgressLeg()
to check if the last leg is reached.
public boolean equals(Object o)
equals
in class IntermediatePathLeg<T extends TripScheduleInfo>
public int hashCode()
hashCode
in class IntermediatePathLeg<T extends TripScheduleInfo>
Copyright © 2019. All rights reserved.