public class PatternFinder extends Object
| Constructor and Description |
|---|
PatternFinder() |
| Modifier and Type | Method and Description |
|---|---|
Map<TripPatternKey,Pattern> |
createPatternObjects(Map<String,Stop> stopById,
SQLErrorStorage errorStorage)
Once all trips have been processed, call this method to produce the final Pattern objects representing all the
unique sequences of stops encountered.
|
void |
processTrip(Trip trip,
Iterable<StopTime> orderedStopTimes)
Bin all trips by the sequence of stops they visit.
|
static void |
renamePatterns(Collection<Pattern> patterns,
Map<String,Stop> stopById)
Destructively rename the supplied collection of patterns.
|
public void processTrip(Trip trip, Iterable<StopTime> orderedStopTimes)
public Map<TripPatternKey,Pattern> createPatternObjects(Map<String,Stop> stopById, SQLErrorStorage errorStorage)
public static void renamePatterns(Collection<Pattern> patterns, Map<String,Stop> stopById)
Copyright © 2019. All rights reserved.