public class RaptorWorkerData extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
gnu.trove.map.TObjectIntMap<AddTripPattern.TemporaryStop> |
addedStops
Map from stops that do not exist in the graph but only for the duration of this search to their stop indices in the RAPTOR data.
|
List<TransferRule> |
baseTransferRules
The transfer rules to be applied in the absence of another transfer rule
|
RaptorWorkerTimetable.BoardingAssumption |
boardingAssumption
The boarding assumption used for initial vehicle boarding, and for when there is no transfer rule defined
|
static int[] |
EMPTY_INT_ARRAY
we use empty int arrays for various things, e.g.
|
boolean |
hasFrequencies
does this RaptorData have any frequency trips?
|
boolean |
hasSchedules
does this RaptorData have any scheduled trips?
|
gnu.trove.map.TIntIntMap |
indexForStop
The 0-based RAPTOR indices of each stop from their vertex IDs
|
static org.slf4j.Logger |
LOG |
int |
nPatterns |
int |
nStops |
int |
nTargets
The number of targets (vertices or samples)
|
List<String> |
patternNames |
List<int[]> |
patternsForStop
A list of pattern indexes passing through each stop, again using Raptor indices.
|
List<String> |
stopNames
Optional debug data: the name of each stop.
|
List<int[]> |
targetsForStop
For each stop, one pair of ints (targetID, distanceMeters) for each destination near that stop.
|
List<RaptorWorkerTimetable> |
timetablesForPattern
For each pattern, a 2D array of stoptimes for each trip on the pattern.
|
gnu.trove.map.TIntObjectMap<List<TransferRule>> |
transferRules
Some stops may have special transfer rules.
|
List<int[]> |
transfersForStop
For every stop, one pair of ints (targetStopIndex, distanceMeters) for each transfer out of that stop.
|
Constructor and Description |
---|
RaptorWorkerData(Graph graph,
TimeWindow window,
ProfileRequest request) |
RaptorWorkerData(Graph graph,
TimeWindow window,
ProfileRequest request,
SampleSet sampleSet) |
RaptorWorkerData(Graph graph,
TimeWindow window,
ProfileRequest req,
SampleSet sampleSet,
TaskStatistics ts)
Create RaptorWorkerData to be used to build ResultSets directly without creating an intermediate SampleSet
|
RaptorWorkerData(Graph graph,
TimeWindow window,
ProfileRequest request,
TaskStatistics ts)
Create RaptorWorkerData for the given window and graph
|
Modifier and Type | Method and Description |
---|---|
gnu.trove.map.TIntIntMap |
findStopsNear(ShortestPathTree spt,
Graph graph,
boolean useTimes,
float walkSpeed)
find stops from a given SPT, including temporary stops.
|
public static final org.slf4j.Logger LOG
public static final int[] EMPTY_INT_ARRAY
public final int nStops
public final int nPatterns
public final int nTargets
public final List<int[]> transfersForStop
public final List<int[]> patternsForStop
public List<RaptorWorkerTimetable> timetablesForPattern
public boolean hasSchedules
public boolean hasFrequencies
public gnu.trove.map.TObjectIntMap<AddTripPattern.TemporaryStop> addedStops
public gnu.trove.map.TIntObjectMap<List<TransferRule>> transferRules
public List<TransferRule> baseTransferRules
public RaptorWorkerTimetable.BoardingAssumption boardingAssumption
public final List<int[]> targetsForStop
public final transient gnu.trove.map.TIntIntMap indexForStop
public RaptorWorkerData(Graph graph, TimeWindow window, ProfileRequest request, TaskStatistics ts)
public RaptorWorkerData(Graph graph, TimeWindow window, ProfileRequest request, SampleSet sampleSet)
public RaptorWorkerData(Graph graph, TimeWindow window, ProfileRequest request)
public RaptorWorkerData(Graph graph, TimeWindow window, ProfileRequest req, SampleSet sampleSet, TaskStatistics ts)
public gnu.trove.map.TIntIntMap findStopsNear(ShortestPathTree spt, Graph graph, boolean useTimes, float walkSpeed)
Copyright © 2018. All rights reserved.