org.onebusaway.transit_data_federation.bundle.tasks
Class GtfsMultiReaderImpl

java.lang.Object
  extended by org.onebusaway.transit_data_federation.bundle.tasks.GtfsMultiReaderImpl
All Implemented Interfaces:
Runnable

public class GtfsMultiReaderImpl
extends Object
implements Runnable

Supports reading from multiple GtfsReader instances sequentially with respect to GTFS entity classes. That is to say, given three readers A, B, and C, all Agency entities will be read from A, B, and C in turn, and then all ShapePoint entities will be read from A, B, and C in turn, and so forth. This sequential reading scheme allows for cases where two separate feeds may have cross-feed references (ex. StopTime => Stop) as facilitated by the use of an EntityReplacementStrategy.

Author:
bdferris
See Also:
EntityReplacementStrategy, GtfsReader, GtfsReadingSupport

Constructor Summary
GtfsMultiReaderImpl()
           
 
Method Summary
 void addGtfsReader(org.onebusaway.gtfs.serialization.GtfsReader reader)
           
 void addGtfsReaderFromInputLocation(File inputLocation)
           
 void run()
           
 void setEntityReplacementStrategy(EntityReplacementStrategy strategy)
           
 void setStore(org.onebusaway.gtfs.services.GenericMutableDao store)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GtfsMultiReaderImpl

public GtfsMultiReaderImpl()
Method Detail

setStore

public void setStore(org.onebusaway.gtfs.services.GenericMutableDao store)

setEntityReplacementStrategy

public void setEntityReplacementStrategy(EntityReplacementStrategy strategy)

addGtfsReader

public void addGtfsReader(org.onebusaway.gtfs.serialization.GtfsReader reader)

addGtfsReaderFromInputLocation

public void addGtfsReaderFromInputLocation(File inputLocation)
                                    throws IOException
Throws:
IOException

run

public void run()
Specified by:
run in interface Runnable


Copyright © 2012 OneBusAway. All Rights Reserved.