public class PatternHop extends TablePatternEdge implements OnboardEdge, HopEdge
Edge.ValidVertexTypes| Modifier and Type | Field and Description |
|---|---|
int |
stopIndex |
| Modifier | Constructor and Description |
|---|---|
|
PatternHop(PatternStopVertex from,
PatternStopVertex to,
Stop begin,
Stop end,
int stopIndex) |
protected |
PatternHop(PatternStopVertex from,
PatternStopVertex to,
Stop begin,
Stop end,
int stopIndex,
boolean setInPattern) |
| Modifier and Type | Method and Description |
|---|---|
Stop |
getBeginStop() |
double |
getDistance() |
Stop |
getEndStop() |
String |
getFeedId() |
org.locationtech.jts.geom.LineString |
getGeometry() |
TraverseMode |
getMode() |
String |
getName()
Gets english localized name
|
String |
getName(Locale locale)
Gets wanted localization
|
int |
getRunningTime(State s0) |
int |
getStopIndex()
The stop index (within the trip) of the stop this edge comes from.
|
int |
getWeight(State s0,
int runningTime) |
boolean |
hasFlexService()
Return true if any GTFS-Flex service is defined for this hop.
|
State |
optimisticTraverse(State state0) |
void |
setGeometry(org.locationtech.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.
|
State |
traverse(State s0,
StateEditor s1) |
double |
weightLowerBound(RoutingRequest options)
Returns a lower bound on edge weight given the routing options.
|
getPatterngetAzimuth, getDirection, getDisplayGeometry, getFromVertex, getId, getToVertex, getTrip, getValidVertexTypes, hasBogusName, hashCode, isEquivalentTo, isPartial, isReverseOf, isRoundabout, vertexTypesValidprotected PatternHop(PatternStopVertex from, PatternStopVertex to, Stop begin, Stop end, int stopIndex, boolean setInPattern)
public PatternHop(PatternStopVertex from, PatternStopVertex to, Stop begin, 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 State traverse(State s0, StateEditor s1)
public int getRunningTime(State s0)
public int getWeight(State s0, int runningTime)
public void setGeometry(org.locationtech.jts.geom.LineString geometry)
setGeometry in interface HopEdgepublic org.locationtech.jts.geom.LineString getGeometry()
getGeometry in class Edgepublic Stop getEndStop()
getEndStop in interface HopEdgepublic Stop getBeginStop()
getBeginStop in interface HopEdgepublic boolean hasFlexService()
public int getStopIndex()
OnboardEdgegetStopIndex in interface OnboardEdgegetStopIndex in class TablePatternEdgeCopyright © 2019. All rights reserved.