public class RoutingContext extends Object implements Cloneable
Modifier and Type | Field and Description |
---|---|
boolean |
aborted
Indicates that the search timed out or was otherwise aborted.
|
org.onebusaway.gtfs.services.calendar.CalendarService |
calendarService |
DebugOutput |
debugOutput
An object that accumulates profiling and debugging info for inclusion in the response.
|
Vertex |
fromVertex |
Graph |
graph |
RoutingRequest |
opt |
Vertex |
origin |
Edge |
originBackEdge |
RemainingWeightHeuristic |
remainingWeightHeuristic |
long |
searchAbortTime
The search will be aborted if it is still running after this time (in milliseconds since the epoch).
|
Map<org.onebusaway.gtfs.model.AgencyAndId,Set<org.onebusaway.gtfs.model.calendar.ServiceDate>> |
serviceDatesByServiceId |
ArrayList<ServiceDay> |
serviceDays
Cache lists of which transit services run on which midnight-to-midnight periods.
|
boolean |
slopeRestrictionRemoved
Indicates that a maximum slope constraint was specified but was removed during routing to produce a result.
|
Vertex |
startingStop |
StreetSpeedSnapshot |
streetSpeedSnapshot
A snapshot of street speeds for looking up real-time or historical traffic data
|
Vertex |
target |
TimetableSnapshot |
timetableSnapshot
The timetableSnapshot is a
TimetableSnapshot for looking up real-time updates. |
Vertex |
toVertex |
TransferTable |
transferTable |
Constructor and Description |
---|
RoutingContext(RoutingRequest routingRequest,
Graph graph)
Constructor that automatically computes origin/target from RoutingRequest.
|
RoutingContext(RoutingRequest routingRequest,
Graph graph,
Vertex from,
Vertex to)
Constructor that takes to/from vertices as input.
|
Modifier and Type | Method and Description |
---|---|
void |
check() |
void |
destroy()
Tear down this routing context, removing any temporary edges.
|
boolean |
isAccessible()
check if the start and end locations are accessible
|
boolean |
isWheelchairAccessible(Vertex v) |
public RoutingRequest opt
public final Graph graph
public final Vertex fromVertex
public final Vertex toVertex
public final Vertex origin
public final Vertex target
public Edge originBackEdge
public final org.onebusaway.gtfs.services.calendar.CalendarService calendarService
public final Map<org.onebusaway.gtfs.model.AgencyAndId,Set<org.onebusaway.gtfs.model.calendar.ServiceDate>> serviceDatesByServiceId
public RemainingWeightHeuristic remainingWeightHeuristic
public final TransferTable transferTable
public final TimetableSnapshot timetableSnapshot
TimetableSnapshot
for looking up real-time updates.public final StreetSpeedSnapshot streetSpeedSnapshot
public ArrayList<ServiceDay> serviceDays
public long searchAbortTime
public Vertex startingStop
public DebugOutput debugOutput
public boolean aborted
public boolean slopeRestrictionRemoved
public RoutingContext(RoutingRequest routingRequest, Graph graph)
public RoutingContext(RoutingRequest routingRequest, Graph graph, Vertex from, Vertex to)
public void check()
public boolean isAccessible()
public boolean isWheelchairAccessible(Vertex v)
public void destroy()
Copyright © 2018. All rights reserved.