
org.opentripplanner.updater.RealTimeUpdateContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp Show documentation
Show all versions of otp Show documentation
The OpenTripPlanner multimodal journey planning system
The newest version!
package org.opentripplanner.updater;
import org.opentripplanner.ext.siri.EntityResolver;
import org.opentripplanner.ext.siri.SiriFuzzyTripMatcher;
import org.opentripplanner.routing.graph.Graph;
import org.opentripplanner.transit.service.TransitService;
/**
* Give access to the transit data and street model in the context of a real-time updater.
* The services exposed should be used only from the GraphWriter thread.
*/
public interface RealTimeUpdateContext {
/**
* Return the street model (graph).
*/
Graph graph();
/**
* Return a transit service that can look up both scheduled and real-time data.
* The transit service has access to all real-time updates applied so far,
* including those not yet committed in a published snapshot.
*/
TransitService transitService();
/**
* Return a SIRI fuzzy trip matcher that can look up both scheduled and real-time data.
* The SIRI fuzzy trip matcher has access to all real-time updates applied so far,
* including those not yet committed in a published snapshot.
*/
SiriFuzzyTripMatcher siriFuzzyTripMatcher();
/**
* Return a GTFS-RT fuzzy trip matcher that can look up both scheduled and real-time data.
* The GTFS-RT fuzzy trip matcher has access to all real-time updates applied so far,
* including those not yet committed in a published snapshot.
*/
GtfsRealtimeFuzzyTripMatcher gtfsRealtimeFuzzyTripMatcher();
/**
* Return an entity resolver that can look up both scheduled and real-time data.
* The entity resolver has access to all real-time updates applied so far,
* including those not yet committed in a published snapshot.
*/
EntityResolver entityResolver(String feedId);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy