org.onebusaway.transit_data_federation.services.blocks
Class BlockSequenceIndex

java.lang.Object
  extended by org.onebusaway.transit_data_federation.services.blocks.AbstractBlockSequenceIndex
      extended by 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

Field Summary
 
Fields inherited from class org.onebusaway.transit_data_federation.services.blocks.AbstractBlockSequenceIndex
_privateService, _sequences, _serviceIds
 
Constructor Summary
BlockSequenceIndex(List<BlockSequence> sequences, ServiceIntervalBlock serviceIntervalBlock, boolean privateService)
           
 
Method Summary
 ServiceIntervalBlock getServiceIntervalBlock()
           
 String toString()
           
 
Methods inherited from class org.onebusaway.transit_data_federation.services.blocks.AbstractBlockSequenceIndex
getSequences, getServiceIds, isPrivateService, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BlockSequenceIndex

public BlockSequenceIndex(List<BlockSequence> sequences,
                          ServiceIntervalBlock serviceIntervalBlock,
                          boolean privateService)
Method Detail

getServiceIntervalBlock

public ServiceIntervalBlock getServiceIntervalBlock()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011 OneBusAway. All Rights Reserved.