org.onebusaway.transit_data_federation.bundle.tasks.transit_graph
Class RouteCollectionEntriesFactory

java.lang.Object
  extended by org.onebusaway.transit_data_federation.bundle.tasks.transit_graph.RouteCollectionEntriesFactory

@Component
public class RouteCollectionEntriesFactory
extends Object

Compute RouteCollectionEntry objects from RouteEntry instances. Recall that route collections are virtual route objects that bundle potentially multiple underlying RouteEntry objects with the same short name, depending on the setting of setGroupRoutesByShortName(boolean). This addresses the fact that some agencies break up what riders would consider a single route into multiple route entries according to their own organizational methods (different direction, different levels of service, express vs local, etc).

Author:
bdferris

Constructor Summary
RouteCollectionEntriesFactory()
           
 
Method Summary
 void processRouteCollections(TransitGraphImpl graph)
           
 void setGroupRoutesByShortName(boolean groupRoutesByShortName)
           
 void setGtfsDao(org.onebusaway.gtfs.services.GtfsRelationalDao gtfsDao)
           
 void setUniqueService(UniqueService uniqueService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RouteCollectionEntriesFactory

public RouteCollectionEntriesFactory()
Method Detail

setGtfsDao

public void setGtfsDao(org.onebusaway.gtfs.services.GtfsRelationalDao gtfsDao)

setUniqueService

public void setUniqueService(UniqueService uniqueService)

setGroupRoutesByShortName

public void setGroupRoutesByShortName(boolean groupRoutesByShortName)

processRouteCollections

public void processRouteCollections(TransitGraphImpl graph)


Copyright © 2011 OneBusAway. All Rights Reserved.