public class TripPatternCache extends Object
Constructor and Description |
---|
TripPatternCache() |
Modifier and Type | Method and Description |
---|---|
TripPattern |
getOrCreateTripPattern(StopPattern stopPattern,
Route route,
Graph graph)
Get cached trip pattern or create one if it doesn't exist yet.
|
public TripPattern getOrCreateTripPattern(StopPattern stopPattern, Route route, Graph graph)
stopPattern
- stop pattern to retrieve/create trip patternroute
- route of new trip pattern in case a new trip pattern will be createdgraph
- graph to add vertices and edges in case a new trip pattern will be createdCopyright © 2019. All rights reserved.