public class TransitBoardAlight extends TablePatternEdge implements OnboardEdge
Edge.ValidVertexTypes
Modifier and Type | Field and Description |
---|---|
boolean |
boarding
True if this edge represents boarding a vehicle, false if it represents alighting.
|
Constructor and Description |
---|
TransitBoardAlight(PatternStopVertex fromPatternStop,
TransitStopArrive toStationVertex,
int stopIndex,
TraverseMode mode)
Alighting constructor (PatternStopVertex --> TransitStopArrive)
|
TransitBoardAlight(TransitStopDepart fromStopVertex,
PatternStopVertex toPatternVertex,
int stopIndex,
TraverseMode mode)
Boarding constructor (TransitStopDepart --> PatternStopVertex)
|
Modifier and Type | Method and Description |
---|---|
int |
calculateWait(State s0,
ServiceDay sd,
TripTimes tripTimes) |
String |
getDirection()
Get a direction on paths where it matters, or null
|
double |
getDistance() |
long |
getExtraWeight(RoutingRequest options) |
org.locationtech.jts.geom.LineString |
getGeometry() |
TraverseMode |
getMode() |
String |
getName()
Gets english localized name
|
String |
getName(Locale locale)
Gets wanted localization
|
TripTimes |
getNextTrip(State s0,
ServiceDay sd,
Timetable timetable) |
TripPattern |
getPattern()
Find the TripPattern this edge is boarding or alighting from.
|
int |
getStopIndex()
The stop index (within the trip) of the stop this edge comes from.
|
boolean |
isDeviated() |
State |
optimisticTraverse(State state0) |
double |
timeLowerBound(RoutingRequest options)
Returns a lower bound on traversal time given the routing options.
|
String |
toString() |
State |
traverse(State state0)
Traverse this edge.
|
State |
traverse(State s0,
long arrivalTimeAtStop)
NOTE: We do not need to check the pickup/drop off type.
|
double |
weightLowerBound(RoutingRequest options)
Returns a lower bound on edge weight given the routing options.
|
getAzimuth, getDisplayGeometry, getFromVertex, getId, getToVertex, getTrip, getValidVertexTypes, hasBogusName, hashCode, isEquivalentTo, isPartial, isReverseOf, isRoundabout, vertexTypesValid
public boolean boarding
public TransitBoardAlight(TransitStopDepart fromStopVertex, PatternStopVertex toPatternVertex, int stopIndex, TraverseMode mode)
public TransitBoardAlight(PatternStopVertex fromPatternStop, TransitStopArrive toStationVertex, int stopIndex, TraverseMode mode)
public TripPattern getPattern()
getPattern
in interface PatternEdge
getPattern
in class TablePatternEdge
public String getDirection()
Edge
getDirection
in class Edge
public double getDistance()
getDistance
in class Edge
public org.locationtech.jts.geom.LineString getGeometry()
getGeometry
in class Edge
public TraverseMode getMode()
public String getName(Locale locale)
Edge
public State traverse(State state0)
Edge
public State traverse(State s0, long arrivalTimeAtStop)
arrivalTimeAtStop
- TODO: clarify what this is.public long getExtraWeight(RoutingRequest options)
public TripTimes getNextTrip(State s0, ServiceDay sd, Timetable timetable)
public int calculateWait(State s0, ServiceDay sd, TripTimes tripTimes)
public boolean isDeviated()
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 int getStopIndex()
OnboardEdge
getStopIndex
in interface OnboardEdge
getStopIndex
in class TablePatternEdge
Copyright © 2019. All rights reserved.