public class PatternHop extends TablePatternEdge implements OnboardEdge, HopEdge
Edge.ValidVertexTypes| Modifier and Type | Field and Description |
|---|---|
int |
stopIndex |
| Constructor and Description |
|---|
PatternHop(PatternStopVertex from,
PatternStopVertex to,
org.onebusaway.gtfs.model.Stop begin,
org.onebusaway.gtfs.model.Stop end,
int stopIndex) |
| Modifier and Type | Method and Description |
|---|---|
org.onebusaway.gtfs.model.Stop |
getBeginStop() |
double |
getDistance() |
org.onebusaway.gtfs.model.Stop |
getEndStop() |
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.
|
State |
optimisticTraverse(State state0) |
void |
setGeometry(com.vividsolutions.jts.geom.LineString geometry) |
double |
timeLowerBound(RoutingRequest options)
Returns a lower bound on traversal time given the routing options.
|
String |
toString() |
State |
traverse(State s0)
Traverse this edge.
|
double |
weightLowerBound(RoutingRequest options)
Returns a lower bound on edge weight given the routing options.
|
getPatterngetAzimuth, getDirection, getFromVertex, getId, getToVertex, getTrip, getValidVertexTypes, hasBogusName, hashCode, isEquivalentTo, isPartial, isReverseOf, isRoundabout, vertexTypesValidpublic PatternHop(PatternStopVertex from, PatternStopVertex to, org.onebusaway.gtfs.model.Stop begin, org.onebusaway.gtfs.model.Stop end, int stopIndex)
public double getDistance()
getDistance in class Edgepublic TraverseMode getMode()
public String getName(Locale locale)
Edgepublic State optimisticTraverse(State state0)
optimisticTraverse in class Edgepublic double timeLowerBound(RoutingRequest options)
EdgetimeLowerBound in class Edgepublic double weightLowerBound(RoutingRequest options)
EdgeweightLowerBound in class Edgepublic void setGeometry(com.vividsolutions.jts.geom.LineString geometry)
setGeometry in interface HopEdgepublic com.vividsolutions.jts.geom.LineString getGeometry()
getGeometry in class Edgepublic org.onebusaway.gtfs.model.Stop getEndStop()
getEndStop in interface HopEdgepublic org.onebusaway.gtfs.model.Stop getBeginStop()
getBeginStop in interface HopEdgepublic int getStopIndex()
OnboardEdgegetStopIndex in interface OnboardEdgegetStopIndex in class TablePatternEdgeCopyright © 2018. All rights reserved.