org.onebusaway.transit_data_federation.services.transit_graph
Interface TransitGraphDao

All Known Implementing Classes:
TransitGraphDaoImpl

public interface TransitGraphDao

Service interface that abstract operations on a transit graph, such as access to stops and trips, away from the underlying graph implementation.

Author:
bdferris
See Also:
StopEntry, TripEntry

Method Summary
 AgencyEntry getAgencyForId(String id)
           
 List<AgencyEntry> getAllAgencies()
           
 List<BlockEntry> getAllBlocks()
           
 List<RouteCollectionEntry> getAllRouteCollections()
           
 List<RouteEntry> getAllRoutes()
           
 List<StopEntry> getAllStops()
           
 List<TripEntry> getAllTrips()
           
 BlockEntry getBlockEntryForId(org.onebusaway.gtfs.model.AgencyAndId blockId)
           
 RouteCollectionEntry getRouteCollectionForId(org.onebusaway.gtfs.model.AgencyAndId id)
           
 RouteEntry getRouteForId(org.onebusaway.gtfs.model.AgencyAndId id)
           
 StopEntry getStopEntryForId(org.onebusaway.gtfs.model.AgencyAndId id)
           
 StopEntry getStopEntryForId(org.onebusaway.gtfs.model.AgencyAndId id, boolean throwExceptionIfNotFound)
           
 List<StopEntry> getStopsByLocation(CoordinateBounds bounds)
           
 TripEntry getTripEntryForId(org.onebusaway.gtfs.model.AgencyAndId id)
           
 

Method Detail

getAllAgencies

List<AgencyEntry> getAllAgencies()
Returns:
the list of all agency entries in the transit graph

getAgencyForId

AgencyEntry getAgencyForId(String id)
Parameters:
id - a agency id to query
Returns:
the agency entry with the specified id, or null if not found

getAllStops

List<StopEntry> getAllStops()
Returns:
the list of all stop entries in the transit graph

getStopEntryForId

StopEntry getStopEntryForId(org.onebusaway.gtfs.model.AgencyAndId id)
Parameters:
id - a stop id to query
Returns:
the stop entry with the specified id, or null if not found

getStopEntryForId

StopEntry getStopEntryForId(org.onebusaway.gtfs.model.AgencyAndId id,
                            boolean throwExceptionIfNotFound)

getStopsByLocation

List<StopEntry> getStopsByLocation(CoordinateBounds bounds)
Parameters:
bounds - coordinate bounds query
Returns:
a list of stop entries located within in the specified bounds

getAllBlocks

List<BlockEntry> getAllBlocks()
Returns:
the list of all block entries in the transit graph

getBlockEntryForId

BlockEntry getBlockEntryForId(org.onebusaway.gtfs.model.AgencyAndId blockId)
Parameters:
blockId - a block id to query
Returns:
the block entry with the specified id, or null if not found

getAllTrips

List<TripEntry> getAllTrips()
Returns:
the list of all trip entries in the transit graph

getTripEntryForId

TripEntry getTripEntryForId(org.onebusaway.gtfs.model.AgencyAndId id)
Parameters:
id - a trip id to query
Returns:
the trip entry with the specified id, or null if not found

getAllRouteCollections

List<RouteCollectionEntry> getAllRouteCollections()
Returns:
the list of all route collections in the transit graph

getRouteCollectionForId

RouteCollectionEntry getRouteCollectionForId(org.onebusaway.gtfs.model.AgencyAndId id)
Parameters:
id - a route collection id to query
Returns:
the route collection entry with the specified id, or null if not found

getAllRoutes

List<RouteEntry> getAllRoutes()
Returns:
the list of all routes in the transit graph

getRouteForId

RouteEntry getRouteForId(org.onebusaway.gtfs.model.AgencyAndId id)
Parameters:
id - a route id to query
Returns:
the route entry with the specified id, or null if not found


Copyright © 2012 OneBusAway. All Rights Reserved.