public class OnBoardDepartPatternHop extends Edge implements OnboardEdge, TemporaryEdge
Edge.ValidVertexTypes| Constructor and Description |
|---|
OnBoardDepartPatternHop(OnboardDepartVertex from,
PatternStopVertex to,
TripTimes tripTimes,
ServiceDay serviceDay,
int stopIndex,
double positionInHop) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
String |
getDirection()
Get a direction on paths where it matters, or null
|
double |
getDistance() |
com.vividsolutions.jts.geom.LineString |
getGeometry() |
TraverseMode |
getMode() |
String |
getName()
Gets english localized name
|
String |
getName(Locale locale)
Gets wanted localization
|
int |
getStopIndex()
The stop index (within the trip) of the stop this edge comes from.
|
org.onebusaway.gtfs.model.Trip |
getTrip()
This should only be called inside State; other methods should call
org.opentripplanner.routing.core.State.getBackTrip()
|
State |
optimisticTraverse(State state0) |
void |
setGeometry(com.vividsolutions.jts.geom.LineString geometry) |
String |
toString() |
State |
traverse(State state0)
Traverse this edge.
|
getAzimuth, getFromVertex, getId, getToVertex, getValidVertexTypes, hasBogusName, hashCode, isEquivalentTo, isPartial, isReverseOf, isRoundabout, timeLowerBound, vertexTypesValid, weightLowerBoundpublic OnBoardDepartPatternHop(OnboardDepartVertex from, PatternStopVertex to, TripTimes tripTimes, ServiceDay serviceDay, int stopIndex, double positionInHop)
from - Originating vertex.to - Destination vertex: a PatternStopVertex for the next stop of the current hop.tripTimes - Resolved trip times for the trip with updated real-time info if available.serviceDay - Service day on which trip is running.stopIndex - Index of the current stop.positionInHop - Between 0 to 1, an estimation of the covered distance in this hop so
far.public double getDistance()
getDistance in class Edgepublic TraverseMode getMode()
public String getName(Locale locale)
Edgepublic State optimisticTraverse(State state0)
optimisticTraverse in class Edgepublic State traverse(State state0)
Edgepublic void setGeometry(com.vividsolutions.jts.geom.LineString geometry)
public com.vividsolutions.jts.geom.LineString getGeometry()
getGeometry in class Edgepublic int getStopIndex()
OnboardEdgegetStopIndex in interface OnboardEdgepublic org.onebusaway.gtfs.model.Trip getTrip()
Edgepublic String getDirection()
EdgegetDirection in class Edgepublic void dispose()
dispose in interface TemporaryEdgeCopyright © 2018. All rights reserved.