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.
|
getPattern
getAzimuth, getDirection, getDisplayGeometry, getFromVertex, getId, getToVertex, getTrip, getValidVertexTypes, hasBogusName, hashCode, isEquivalentTo, isPartial, isReverseOf, isRoundabout, vertexTypesValid
protected 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 Edge
public TraverseMode getMode()
public String getName(Locale locale)
Edge
public State optimisticTraverse(State state0)
optimisticTraverse
in class Edge
public double timeLowerBound(RoutingRequest options)
Edge
timeLowerBound
in class Edge
public double weightLowerBound(RoutingRequest options)
Edge
weightLowerBound
in class Edge
public 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 HopEdge
public org.locationtech.jts.geom.LineString getGeometry()
getGeometry
in class Edge
public Stop getEndStop()
getEndStop
in interface HopEdge
public Stop getBeginStop()
getBeginStop
in interface HopEdge
public boolean hasFlexService()
public int getStopIndex()
OnboardEdge
getStopIndex
in interface OnboardEdge
getStopIndex
in class TablePatternEdge
Copyright © 2019. All rights reserved.