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.
|
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<FeedScopedId,Set<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 |
Vertex |
target |
Collection<Vertex> |
temporaryVertices
Temporary vertices created during the request.
|
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,
Collection<Vertex> temporaryVertices)
Constructor that automatically computes origin/target from RoutingRequest, and sets the
context's temporary vertices.
|
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 from
the "permanent" graph objects.
|
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 CalendarService calendarService
public final Map<FeedScopedId,Set<ServiceDate>> serviceDatesByServiceId
public RemainingWeightHeuristic remainingWeightHeuristic
public final TransferTable transferTable
public final TimetableSnapshot timetableSnapshot
TimetableSnapshot
for looking up real-time updates.public ArrayList<ServiceDay> serviceDays
public long searchAbortTime
public Vertex startingStop
public DebugOutput debugOutput
public boolean aborted
public boolean slopeRestrictionRemoved
public Collection<Vertex> temporaryVertices
public RoutingContext(RoutingRequest routingRequest, Graph graph)
public RoutingContext(RoutingRequest routingRequest, Graph graph, Collection<Vertex> temporaryVertices)
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 © 2019. All rights reserved.