public class TimetableSnapshotSource extends Object
Modifier and Type | Field and Description |
---|---|
GtfsRealtimeFuzzyTripMatcher |
fuzzyTripMatcher |
protected ServiceDate |
lastPurgeDate |
protected long |
lastSnapshotTime |
int |
logFrequency |
int |
maxSnapshotFrequency
If a timetable snapshot is requested less than this number of milliseconds after the previous
snapshot, just return the same one.
|
boolean |
purgeExpiredData
Should expired realtime data be purged from the graph.
|
Constructor and Description |
---|
TimetableSnapshotSource(Graph graph) |
Modifier and Type | Method and Description |
---|---|
void |
applyTripUpdates(Graph graph,
boolean fullDataset,
List<GtfsRealtime.TripUpdate> updates,
String feedId)
Method to apply a trip update list to the most recent version of the timetable snapshot.
|
TimetableSnapshot |
getTimetableSnapshot() |
public int logFrequency
public int maxSnapshotFrequency
public boolean purgeExpiredData
protected ServiceDate lastPurgeDate
protected long lastSnapshotTime
public GtfsRealtimeFuzzyTripMatcher fuzzyTripMatcher
public TimetableSnapshotSource(Graph graph)
public TimetableSnapshot getTimetableSnapshot()
public void applyTripUpdates(Graph graph, boolean fullDataset, List<GtfsRealtime.TripUpdate> updates, String feedId)
graph
- graph to update (needed for adding/changing stop patterns)fullDataset
- true iff the list with updates represent all updates that are active right
now, i.e. all previous updates should be disregardedupdates
- GTFS-RT TripUpdate's that should be applied atomicallyfeedId
- Copyright © 2019. All rights reserved.