org.onebusaway.transit_data_federation.services.blocks
Class AbstractBlockTripIndex

java.lang.Object
  extended by org.onebusaway.transit_data_federation.services.blocks.AbstractBlockTripIndex
All Implemented Interfaces:
HasBlockTrips
Direct Known Subclasses:
BlockLayoverIndex, BlockTripIndex, FrequencyBlockTripIndex

public abstract class AbstractBlockTripIndex
extends Object
implements HasBlockTrips

Abstract support class for building searchable indices over BlockTripEntry elements. The class has checks to ensure that each block trip has the same ServiceIdActivation.

Author:
bdferris

Field Summary
protected  List<BlockTripEntry> _trips
           
 
Constructor Summary
AbstractBlockTripIndex(List<BlockTripEntry> trips)
           
 
Method Summary
 ServiceIdActivation getServiceIds()
           
 List<BlockTripEntry> getTrips()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_trips

protected final List<BlockTripEntry> _trips
Constructor Detail

AbstractBlockTripIndex

public AbstractBlockTripIndex(List<BlockTripEntry> trips)
Method Detail

getTrips

public List<BlockTripEntry> getTrips()
Specified by:
getTrips in interface HasBlockTrips
Returns:
the list of BlockTripEntry elements.

getServiceIds

public ServiceIdActivation getServiceIds()
Specified by:
getServiceIds in interface HasBlockTrips
Returns:
the service calendar activation for the list of BlockTripEntry elements.

size

public int size()


Copyright © 2012 OneBusAway. All Rights Reserved.