public class Ride extends Object
Constructor and Description |
---|
Ride(Ride other,
StopCluster to)
Construct a partial copy with no PatternRides or Stats and the given arrival StopCluster.
|
Ride(StopCluster from,
Ride previous)
Construct a partial ride (resulting from a transfer, waiting to be completed).
|
Modifier and Type | Method and Description |
---|---|
void |
calcStats(TimeWindow window,
double walkSpeed)
Create a compound Stats for all the constituent PatternRides of this Ride.
|
org.opentripplanner.profile.Stats |
calcStatsForBoarding(TimeWindow window)
Produce stats about boarding an initial Ride, which has no previous ride.
|
org.opentripplanner.profile.Stats |
calcStatsForTransfer(TimeWindow window,
double walkSpeed)
Calculates Stats for the transfer to the given ride from the previous ride.
|
boolean |
containsPattern(TripPattern pattern) |
void |
dumpRideChain()
Output this entire chain of rides.
|
Ride |
extendTo(StopCluster toStopCluster)
Extend this incomplete ride to the given stop, creating a container for PatternRides.
|
StopCluster |
getAccessStopCluster() |
StopCluster |
getEgressStopCluster() |
com.google.common.collect.Multimap<Route,org.opentripplanner.profile.PatternRide> |
getPatternRidesByRoute() |
Set<Route> |
getRoutes() |
gnu.trove.list.TIntList |
getSortedStoptimes(TimeWindow window,
boolean arrivals) |
boolean |
pathContainsRoute(Route route) |
boolean |
pathContainsStop(StopCluster stopCluster) |
void |
recomputeBounds()
Calculate length and upper and lower bounds on duration for the chain of rides ending with this one.
|
String |
toString() |
public Ride(StopCluster from, Ride previous)
public Ride(Ride other, StopCluster to)
public Ride extendTo(StopCluster toStopCluster)
public void dumpRideChain()
public com.google.common.collect.Multimap<Route,org.opentripplanner.profile.PatternRide> getPatternRidesByRoute()
public boolean containsPattern(TripPattern pattern)
public boolean pathContainsRoute(Route route)
public boolean pathContainsStop(StopCluster stopCluster)
public void recomputeBounds()
public void calcStats(TimeWindow window, double walkSpeed)
public gnu.trove.list.TIntList getSortedStoptimes(TimeWindow window, boolean arrivals)
arrivals
- find arrival times rather than departure times for this Ride.public org.opentripplanner.profile.Stats calcStatsForBoarding(TimeWindow window)
public org.opentripplanner.profile.Stats calcStatsForTransfer(TimeWindow window, double walkSpeed)
public StopCluster getAccessStopCluster()
public StopCluster getEgressStopCluster()
Copyright © 2019. All rights reserved.