org.onebusaway.transit_data_federation.services.blocks
Class BlockSequenceIndex
java.lang.Object
org.onebusaway.transit_data_federation.services.blocks.AbstractBlockSequenceIndex
org.onebusaway.transit_data_federation.services.blocks.BlockSequenceIndex
public class BlockSequenceIndex
- extends AbstractBlockSequenceIndex
A BlockSequenceIndex
is an ordered collection of
block sequences, where each block sequence visits
the same sequence of stops and the arrival-departure times for each stop
increase between each block. All blocks are guaranteed to have the same
ServiceIdActivation
. This ordered index allows for fast look-up and
search operations within the various blocks that make up the index.
Note that the sequence of stops is typically not the ENTIRE sequence of stops
for each block, but instead usually a subset. Typically, a block is broken up
into pieces when the block changes direction of travel or has an extended
layover. See BlockIndexFactoryService
for more details.
- Author:
- bdferris
- See Also:
BlockSequence
,
BlockIndexFactoryService
,
BlockStopSequenceIndex
,
BlockIndexService
BlockSequenceIndex
public BlockSequenceIndex(List<BlockSequence> sequences,
ServiceIntervalBlock serviceIntervalBlock,
boolean privateService)
getServiceIntervalBlock
public ServiceIntervalBlock getServiceIntervalBlock()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2012 OneBusAway. All Rights Reserved.