public class PatternDwell extends TablePatternEdge implements OnboardEdge, DwellEdge
Edge.ValidVertexTypes
Constructor and Description |
---|
PatternDwell(PatternArriveVertex from,
PatternDepartVertex to,
int stopIndex,
TripPattern tripPattern) |
Modifier and Type | Method and Description |
---|---|
String |
getDirection()
Get a direction on paths where it matters, or null
|
double |
getDistance() |
org.locationtech.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 s0) |
void |
setStopIndex(int stopIndex) |
double |
timeLowerBound(RoutingRequest options)
Returns a lower bound on traversal time given the routing options.
|
String |
toString() |
State |
traverse(State state0)
Traverse this edge.
|
double |
weightLowerBound(RoutingRequest options)
Returns a lower bound on edge weight given the routing options.
|
getPattern
getAzimuth, getDisplayGeometry, getFromVertex, getId, getToVertex, getTrip, getValidVertexTypes, hasBogusName, hashCode, isEquivalentTo, isPartial, isReverseOf, isRoundabout, vertexTypesValid
public PatternDwell(PatternArriveVertex from, PatternDepartVertex to, int stopIndex, TripPattern tripPattern)
public String getDirection()
Edge
getDirection
in class Edge
public double getDistance()
getDistance
in class Edge
public TraverseMode getMode()
public String getName(Locale locale)
Edge
public State traverse(State state0)
Edge
public State optimisticTraverse(State s0)
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 org.locationtech.jts.geom.LineString getGeometry()
getGeometry
in class Edge
public void setStopIndex(int stopIndex)
public int getStopIndex()
OnboardEdge
getStopIndex
in interface OnboardEdge
getStopIndex
in class TablePatternEdge
Copyright © 2019. All rights reserved.