org.onebusaway.transit_data_federation.impl.blocks
Class BlockIndexServiceImpl
java.lang.Object
org.onebusaway.transit_data_federation.impl.blocks.BlockIndexServiceImpl
- All Implemented Interfaces:
- BlockIndexService
@Component
public class BlockIndexServiceImpl
- extends Object
- implements BlockIndexService
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BlockIndexServiceImpl
public BlockIndexServiceImpl()
setBundle
public void setBundle(FederatedTransitDataBundle bundle)
setBlockIndexFactoryService
public void setBlockIndexFactoryService(BlockIndexFactoryService blockIndexFactoryService)
setGraphDao
public void setGraphDao(TransitGraphDao graphDao)
setup
@PostConstruct
@Refreshable(dependsOn="blockIndexData")
public void setup()
throws Exception
- Throws:
Exception
getBlockTripIndices
public List<BlockTripIndex> getBlockTripIndices()
- Specified by:
getBlockTripIndices
in interface BlockIndexService
getBlockTripIndicesForAgencyId
public List<BlockTripIndex> getBlockTripIndicesForAgencyId(String agencyId)
- Specified by:
getBlockTripIndicesForAgencyId
in interface BlockIndexService
getBlockTripIndicesForRouteCollectionId
public List<BlockTripIndex> getBlockTripIndicesForRouteCollectionId(org.onebusaway.gtfs.model.AgencyAndId routeCollectionId)
- Specified by:
getBlockTripIndicesForRouteCollectionId
in interface BlockIndexService
getBlockTripIndicesForBlock
public List<BlockTripIndex> getBlockTripIndicesForBlock(org.onebusaway.gtfs.model.AgencyAndId blockId)
- Specified by:
getBlockTripIndicesForBlock
in interface BlockIndexService
getStopTimeIndicesForStop
public List<BlockStopTimeIndex> getStopTimeIndicesForStop(StopEntry stopEntry)
- Specified by:
getStopTimeIndicesForStop
in interface BlockIndexService
getAllBlockSequenceIndices
public List<BlockSequenceIndex> getAllBlockSequenceIndices()
- Specified by:
getAllBlockSequenceIndices
in interface BlockIndexService
getStopSequenceIndicesForStop
public List<BlockStopSequenceIndex> getStopSequenceIndicesForStop(StopEntry stopEntry)
- Specified by:
getStopSequenceIndicesForStop
in interface BlockIndexService
getBlockSequenceIndicesBetweenStops
public List<org.onebusaway.collections.tuple.Pair<BlockStopSequenceIndex>> getBlockSequenceIndicesBetweenStops(StopEntry fromStop,
StopEntry toStop)
- Description copied from interface:
BlockIndexService
- 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.
- Specified by:
getBlockSequenceIndicesBetweenStops
in interface BlockIndexService
- Parameters:
fromStop
- the source stoptoStop
- the destination stop
- Returns:
- the list of all
BlockStopSequenceIndex
that link the two
stops directly
getBlockLayoverIndices
public List<BlockLayoverIndex> getBlockLayoverIndices()
- Description copied from interface:
BlockIndexService
- Layover Indices
- Specified by:
getBlockLayoverIndices
in interface BlockIndexService
getBlockLayoverIndicesForAgencyId
public List<BlockLayoverIndex> getBlockLayoverIndicesForAgencyId(String agencyId)
- Specified by:
getBlockLayoverIndicesForAgencyId
in interface BlockIndexService
getBlockLayoverIndicesForRouteCollectionId
public List<BlockLayoverIndex> getBlockLayoverIndicesForRouteCollectionId(org.onebusaway.gtfs.model.AgencyAndId routeCollectionId)
- Specified by:
getBlockLayoverIndicesForRouteCollectionId
in interface BlockIndexService
getBlockLayoverIndicesForBlock
public List<BlockLayoverIndex> getBlockLayoverIndicesForBlock(org.onebusaway.gtfs.model.AgencyAndId blockId)
- Specified by:
getBlockLayoverIndicesForBlock
in interface BlockIndexService
getFrequencyBlockTripIndices
public List<FrequencyBlockTripIndex> getFrequencyBlockTripIndices()
- Description copied from interface:
BlockIndexService
- Frequency Indices
- Specified by:
getFrequencyBlockTripIndices
in interface BlockIndexService
getFrequencyBlockTripIndicesForAgencyId
public List<FrequencyBlockTripIndex> getFrequencyBlockTripIndicesForAgencyId(String agencyId)
- Specified by:
getFrequencyBlockTripIndicesForAgencyId
in interface BlockIndexService
getFrequencyBlockTripIndicesForRouteCollectionId
public List<FrequencyBlockTripIndex> getFrequencyBlockTripIndicesForRouteCollectionId(org.onebusaway.gtfs.model.AgencyAndId routeCollectionId)
- Specified by:
getFrequencyBlockTripIndicesForRouteCollectionId
in interface BlockIndexService
getFrequencyBlockTripIndicesForBlock
public List<FrequencyBlockTripIndex> getFrequencyBlockTripIndicesForBlock(org.onebusaway.gtfs.model.AgencyAndId blockId)
- Specified by:
getFrequencyBlockTripIndicesForBlock
in interface BlockIndexService
getFrequencyStopTimeIndicesForStop
public List<FrequencyBlockStopTimeIndex> getFrequencyStopTimeIndicesForStop(StopEntry stopEntry)
- Specified by:
getFrequencyStopTimeIndicesForStop
in interface BlockIndexService
getFrequencyStopTripIndicesForStop
public List<FrequencyStopTripIndex> getFrequencyStopTripIndicesForStop(StopEntry stop)
- Specified by:
getFrequencyStopTripIndicesForStop
in interface BlockIndexService
getFrequencyIndicesBetweenStops
public List<org.onebusaway.collections.tuple.Pair<FrequencyStopTripIndex>> getFrequencyIndicesBetweenStops(StopEntry fromStop,
StopEntry toStop)
- Specified by:
getFrequencyIndicesBetweenStops
in interface BlockIndexService
Copyright © 2012 OneBusAway. All Rights Reserved.