org.onebusaway.transit_data_federation.impl.transit_graph
Class TransitGraphImpl

java.lang.Object
  extended by 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

Constructor Summary
TransitGraphImpl()
           
 
Method Summary
static void addStopEntryCallback(org.onebusaway.gtfs.model.AgencyAndId stopEntry, EntryCallback<StopEntryImpl> entry)
           
static void addTripEntryCallback(org.onebusaway.gtfs.model.AgencyAndId tripEntry, EntryCallback<TripEntryImpl> entry)
           
 AgencyEntryImpl getAgencyForId(String id)
           
 List<AgencyEntry> getAllAgencies()
          TripPlannerGraph Interface
 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)
           
 RouteEntryImpl getRouteForId(org.onebusaway.gtfs.model.AgencyAndId id)
           
 List<RouteEntryImpl> getRoutes()
           
 StopEntryImpl getStopEntryForId(org.onebusaway.gtfs.model.AgencyAndId id)
           
 List<StopEntryImpl> getStops()
           
 List<StopEntry> getStopsByLocation(CoordinateBounds bounds)
           
 TripEntryImpl getTripEntryForId(org.onebusaway.gtfs.model.AgencyAndId id)
           
 List<TripEntryImpl> getTrips()
           
static void handleStopEntryRead(StopEntryImpl stopEntryImpl)
          Serialization Support
static void handleTripEntryRead(TripEntryImpl tripEntryImpl)
           
 void initialize()
           
 void initializeFromExistinGraph(TransitGraphImpl graph)
           
 void putAgencyEntry(AgencyEntryImpl agencyEntry)
           
 void putBlockEntry(BlockEntryImpl blockEntry)
           
 void putRouteCollectionEntry(RouteCollectionEntryImpl routeCollection)
           
 void putRouteEntry(RouteEntryImpl routeEntry)
           
 void putStopEntry(StopEntryImpl stopEntry)
           
 void putTripEntry(TripEntryImpl tripEntry)
           
 void refreshAgencyMapping()
           
 void refreshBlockMapping()
           
 void refreshRouteCollectionMapping()
           
 void refreshRouteMapping()
           
 void refreshStopMapping()
           
 void refreshTripMapping()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransitGraphImpl

public TransitGraphImpl()
Method Detail

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)

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 © 2011 OneBusAway. All Rights Reserved.