org.onebusaway.transit_data_federation.impl.transit_graph
Class TransitGraphImpl
java.lang.Object
org.onebusaway.transit_data_federation.impl.transit_graph.TransitGraphImpl
- All Implemented Interfaces:
- Serializable, TripPlannerGraph
public class TransitGraphImpl
- extends Object
- implements Serializable, TripPlannerGraph
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransitGraphImpl
public TransitGraphImpl()
empty
public void empty()
initialize
public void initialize()
initializeFromExistinGraph
public void initializeFromExistinGraph(TransitGraphImpl graph)
putAgencyEntry
public void putAgencyEntry(AgencyEntryImpl agencyEntry)
putStopEntry
public void putStopEntry(StopEntryImpl stopEntry)
getStops
public List<StopEntryImpl> getStops()
putTripEntry
public void putTripEntry(TripEntryImpl tripEntry)
getTrips
public List<TripEntryImpl> getTrips()
putBlockEntry
public void putBlockEntry(BlockEntryImpl blockEntry)
getBlocks
public List<BlockEntryImpl> getBlocks()
putRouteEntry
public void putRouteEntry(RouteEntryImpl routeEntry)
getRoutes
public List<RouteEntryImpl> getRoutes()
putRouteCollectionEntry
public void putRouteCollectionEntry(RouteCollectionEntryImpl routeCollection)
refreshAgencyMapping
public void refreshAgencyMapping()
refreshTripMapping
public void refreshTripMapping()
refreshBlockMapping
public void refreshBlockMapping()
refreshStopMapping
public void refreshStopMapping()
refreshRouteMapping
public void refreshRouteMapping()
refreshRouteCollectionMapping
public void refreshRouteCollectionMapping()
getAllAgencies
public List<AgencyEntry> getAllAgencies()
TripPlannerGraph
Interface
- Specified by:
getAllAgencies
in interface TripPlannerGraph
getAgencyForId
public AgencyEntryImpl getAgencyForId(String id)
- Specified by:
getAgencyForId
in interface TripPlannerGraph
getAllStops
public List<StopEntry> getAllStops()
- Specified by:
getAllStops
in interface TripPlannerGraph
getAllTrips
public List<TripEntry> getAllTrips()
- Specified by:
getAllTrips
in interface TripPlannerGraph
getAllBlocks
public List<BlockEntry> getAllBlocks()
- Specified by:
getAllBlocks
in interface TripPlannerGraph
getAllRouteCollections
public List<RouteCollectionEntry> getAllRouteCollections()
- Specified by:
getAllRouteCollections
in interface TripPlannerGraph
getAllRoutes
public List<RouteEntry> getAllRoutes()
- Specified by:
getAllRoutes
in interface TripPlannerGraph
getStopEntryForId
public StopEntryImpl getStopEntryForId(org.onebusaway.gtfs.model.AgencyAndId id)
- Specified by:
getStopEntryForId
in interface TripPlannerGraph
getTripEntryForId
public TripEntryImpl getTripEntryForId(org.onebusaway.gtfs.model.AgencyAndId id)
- Specified by:
getTripEntryForId
in interface TripPlannerGraph
getBlockEntryForId
public BlockEntry getBlockEntryForId(org.onebusaway.gtfs.model.AgencyAndId blockId)
- Specified by:
getBlockEntryForId
in interface TripPlannerGraph
getRouteCollectionForId
public RouteCollectionEntry getRouteCollectionForId(org.onebusaway.gtfs.model.AgencyAndId id)
- Specified by:
getRouteCollectionForId
in interface TripPlannerGraph
getRouteForId
public RouteEntryImpl getRouteForId(org.onebusaway.gtfs.model.AgencyAndId id)
- Specified by:
getRouteForId
in interface TripPlannerGraph
getStopsByLocation
public List<StopEntry> getStopsByLocation(CoordinateBounds bounds)
- Specified by:
getStopsByLocation
in interface TripPlannerGraph
handleStopEntryRead
public static void handleStopEntryRead(StopEntryImpl stopEntryImpl)
- Serialization Support
handleTripEntryRead
public static void handleTripEntryRead(TripEntryImpl tripEntryImpl)
addStopEntryCallback
public static void addStopEntryCallback(org.onebusaway.gtfs.model.AgencyAndId stopEntry,
EntryCallback<StopEntryImpl> entry)
addTripEntryCallback
public static void addTripEntryCallback(org.onebusaway.gtfs.model.AgencyAndId tripEntry,
EntryCallback<TripEntryImpl> entry)
Copyright © 2012 OneBusAway. All Rights Reserved.