org.onebusaway.transit_data_federation.impl.transit_graph
Class TransitGraphDaoImpl
java.lang.Object
org.onebusaway.transit_data_federation.impl.transit_graph.TransitGraphDaoImpl
- All Implemented Interfaces:
- TransitGraphDao
@Component
public class TransitGraphDaoImpl
- extends Object
- implements TransitGraphDao
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransitGraphDaoImpl
public TransitGraphDaoImpl()
setBundle
public void setBundle(FederatedTransitDataBundle bundle)
setTripPlannerGraph
public void setTripPlannerGraph(TripPlannerGraph graph)
setup
@PostConstruct
@Refreshable(dependsOn="transitGraph")
public void setup()
throws IOException,
ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
getAllAgencies
public List<AgencyEntry> getAllAgencies()
TransitGraphDao
Interface
- Specified by:
getAllAgencies
in interface TransitGraphDao
- Returns:
- the list of all agency entries in the transit graph
getAgencyForId
public AgencyEntry getAgencyForId(String id)
- Specified by:
getAgencyForId
in interface TransitGraphDao
- Parameters:
id
- a agency id to query
- Returns:
- the agency entry with the specified id, or null if not found
getAllStops
public List<StopEntry> getAllStops()
- Specified by:
getAllStops
in interface TransitGraphDao
- Returns:
- the list of all stop entries in the transit graph
getStopEntryForId
public StopEntry getStopEntryForId(org.onebusaway.gtfs.model.AgencyAndId id)
- Specified by:
getStopEntryForId
in interface TransitGraphDao
- Parameters:
id
- a stop id to query
- Returns:
- the stop entry with the specified id, or null if not found
getStopEntryForId
public StopEntry getStopEntryForId(org.onebusaway.gtfs.model.AgencyAndId id,
boolean throwExceptionIfNotFound)
- Specified by:
getStopEntryForId
in interface TransitGraphDao
getStopsByLocation
public List<StopEntry> getStopsByLocation(CoordinateBounds bounds)
- Specified by:
getStopsByLocation
in interface TransitGraphDao
- Parameters:
bounds
- coordinate bounds query
- Returns:
- a list of stop entries located within in the specified bounds
getAllBlocks
public List<BlockEntry> getAllBlocks()
- Specified by:
getAllBlocks
in interface TransitGraphDao
- Returns:
- the list of all block entries in the transit graph
getBlockEntryForId
public BlockEntry getBlockEntryForId(org.onebusaway.gtfs.model.AgencyAndId blockId)
- Specified by:
getBlockEntryForId
in interface TransitGraphDao
- Parameters:
blockId
- a block id to query
- Returns:
- the block entry with the specified id, or null if not found
getAllTrips
public List<TripEntry> getAllTrips()
- Specified by:
getAllTrips
in interface TransitGraphDao
- Returns:
- the list of all trip entries in the transit graph
getTripEntryForId
public TripEntry getTripEntryForId(org.onebusaway.gtfs.model.AgencyAndId id)
- Specified by:
getTripEntryForId
in interface TransitGraphDao
- Parameters:
id
- a trip id to query
- Returns:
- the trip entry with the specified id, or null if not found
getAllRouteCollections
public List<RouteCollectionEntry> getAllRouteCollections()
- Specified by:
getAllRouteCollections
in interface TransitGraphDao
- Returns:
- the list of all route collections in the transit graph
getRouteCollectionForId
public RouteCollectionEntry getRouteCollectionForId(org.onebusaway.gtfs.model.AgencyAndId id)
- Specified by:
getRouteCollectionForId
in interface TransitGraphDao
- Parameters:
id
- a route collection id to query
- Returns:
- the route collection entry with the specified id, or null if not
found
getAllRoutes
public List<RouteEntry> getAllRoutes()
- Specified by:
getAllRoutes
in interface TransitGraphDao
- Returns:
- the list of all routes in the transit graph
getRouteForId
public RouteEntry getRouteForId(org.onebusaway.gtfs.model.AgencyAndId id)
- Specified by:
getRouteForId
in interface TransitGraphDao
- 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.