org.onebusaway.transit_data_federation.services.blocks
Interface BlockIndexService

All Known Implementing Classes:
BlockIndexServiceImpl

public interface BlockIndexService

The BlockIndexService

Author:
bdferris

Method Summary
 List<BlockSequenceIndex> getAllBlockSequenceIndices()
           
 List<BlockLayoverIndex> getBlockLayoverIndices()
          Layover Indices
 List<BlockLayoverIndex> getBlockLayoverIndicesForAgencyId(String agencyId)
           
 List<BlockLayoverIndex> getBlockLayoverIndicesForBlock(org.onebusaway.gtfs.model.AgencyAndId blockId)
           
 List<BlockLayoverIndex> getBlockLayoverIndicesForRouteCollectionId(org.onebusaway.gtfs.model.AgencyAndId rotueCollectionId)
           
 List<org.onebusaway.collections.tuple.Pair<BlockStopSequenceIndex>> getBlockSequenceIndicesBetweenStops(StopEntry fromStop, StopEntry toStop)
          For the specified stop pair, find all the BlockSequenceIndex that travel between the two stops.
 List<BlockTripIndex> getBlockTripIndices()
           
 List<BlockTripIndex> getBlockTripIndicesForAgencyId(String agencyId)
           
 List<BlockTripIndex> getBlockTripIndicesForBlock(org.onebusaway.gtfs.model.AgencyAndId blockId)
           
 List<BlockTripIndex> getBlockTripIndicesForRouteCollectionId(org.onebusaway.gtfs.model.AgencyAndId routeCollectionId)
           
 List<FrequencyBlockTripIndex> getFrequencyBlockTripIndices()
          Frequency Indices
 List<FrequencyBlockTripIndex> getFrequencyBlockTripIndicesForAgencyId(String agencyId)
           
 List<FrequencyBlockTripIndex> getFrequencyBlockTripIndicesForBlock(org.onebusaway.gtfs.model.AgencyAndId blockId)
           
 List<FrequencyBlockTripIndex> getFrequencyBlockTripIndicesForRouteCollectionId(org.onebusaway.gtfs.model.AgencyAndId routeCollectionId)
           
 List<org.onebusaway.collections.tuple.Pair<FrequencyStopTripIndex>> getFrequencyIndicesBetweenStops(StopEntry fromStop, StopEntry toStop)
           
 List<FrequencyBlockStopTimeIndex> getFrequencyStopTimeIndicesForStop(StopEntry stopEntry)
           
 List<FrequencyStopTripIndex> getFrequencyStopTripIndicesForStop(StopEntry stop)
           
 List<BlockStopSequenceIndex> getStopSequenceIndicesForStop(StopEntry stopEntry)
           
 List<BlockStopTimeIndex> getStopTimeIndicesForStop(StopEntry stopEntry)
           
 

Method Detail

getBlockTripIndices

List<BlockTripIndex> getBlockTripIndices()

getBlockTripIndicesForAgencyId

List<BlockTripIndex> getBlockTripIndicesForAgencyId(String agencyId)

getBlockTripIndicesForRouteCollectionId

List<BlockTripIndex> getBlockTripIndicesForRouteCollectionId(org.onebusaway.gtfs.model.AgencyAndId routeCollectionId)

getBlockTripIndicesForBlock

List<BlockTripIndex> getBlockTripIndicesForBlock(org.onebusaway.gtfs.model.AgencyAndId blockId)

getStopTimeIndicesForStop

List<BlockStopTimeIndex> getStopTimeIndicesForStop(StopEntry stopEntry)

getStopSequenceIndicesForStop

List<BlockStopSequenceIndex> getStopSequenceIndicesForStop(StopEntry stopEntry)

getAllBlockSequenceIndices

List<BlockSequenceIndex> getAllBlockSequenceIndices()

getBlockSequenceIndicesBetweenStops

List<org.onebusaway.collections.tuple.Pair<BlockStopSequenceIndex>> getBlockSequenceIndicesBetweenStops(StopEntry fromStop,
                                                                                                        StopEntry toStop)
For the specified stop pair, find all the BlockSequenceIndex that travel between the two stops. We will actually return a list of pairs of BlockStopSequenceIndex, where each block stop sequence index is a pointer into the underlying BlockSequenceIndex for the two stops. Effectively, this method tells you all the blocks that travel between the two stops directly.

Parameters:
fromStop - the source stop
toStop - the destination stop
Returns:
the list of all BlockStopSequenceIndex that link the two stops directly

getBlockLayoverIndices

List<BlockLayoverIndex> getBlockLayoverIndices()
Layover Indices


getBlockLayoverIndicesForAgencyId

List<BlockLayoverIndex> getBlockLayoverIndicesForAgencyId(String agencyId)

getBlockLayoverIndicesForRouteCollectionId

List<BlockLayoverIndex> getBlockLayoverIndicesForRouteCollectionId(org.onebusaway.gtfs.model.AgencyAndId rotueCollectionId)

getBlockLayoverIndicesForBlock

List<BlockLayoverIndex> getBlockLayoverIndicesForBlock(org.onebusaway.gtfs.model.AgencyAndId blockId)

getFrequencyBlockTripIndices

List<FrequencyBlockTripIndex> getFrequencyBlockTripIndices()
Frequency Indices


getFrequencyBlockTripIndicesForAgencyId

List<FrequencyBlockTripIndex> getFrequencyBlockTripIndicesForAgencyId(String agencyId)

getFrequencyBlockTripIndicesForRouteCollectionId

List<FrequencyBlockTripIndex> getFrequencyBlockTripIndicesForRouteCollectionId(org.onebusaway.gtfs.model.AgencyAndId routeCollectionId)

getFrequencyBlockTripIndicesForBlock

List<FrequencyBlockTripIndex> getFrequencyBlockTripIndicesForBlock(org.onebusaway.gtfs.model.AgencyAndId blockId)

getFrequencyStopTimeIndicesForStop

List<FrequencyBlockStopTimeIndex> getFrequencyStopTimeIndicesForStop(StopEntry stopEntry)

getFrequencyStopTripIndicesForStop

List<FrequencyStopTripIndex> getFrequencyStopTripIndicesForStop(StopEntry stop)

getFrequencyIndicesBetweenStops

List<org.onebusaway.collections.tuple.Pair<FrequencyStopTripIndex>> getFrequencyIndicesBetweenStops(StopEntry fromStop,
                                                                                                    StopEntry toStop)


Copyright © 2011 OneBusAway. All Rights Reserved.