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, weightLowerBound
public 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 Edge
public TraverseMode getMode()
public String getName(Locale locale)
Edge
public State optimisticTraverse(State state0)
optimisticTraverse
in class Edge
public State traverse(State state0)
Edge
public void setGeometry(com.vividsolutions.jts.geom.LineString geometry)
public com.vividsolutions.jts.geom.LineString getGeometry()
getGeometry
in class Edge
public int getStopIndex()
OnboardEdge
getStopIndex
in interface OnboardEdge
public org.onebusaway.gtfs.model.Trip getTrip()
Edge
public String getDirection()
Edge
getDirection
in class Edge
public void dispose()
dispose
in interface TemporaryEdge
Copyright © 2018. All rights reserved.