org.onebusaway.transit_data_federation.services.blocks
Class AbstractBlockTripIndex
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_trips
protected final List<BlockTripEntry> _trips
AbstractBlockTripIndex
public AbstractBlockTripIndex(List<BlockTripEntry> trips)
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.