org.onebusaway.transit_data_federation.services.blocks
Class BlockStopTimeIndex
java.lang.Object
org.onebusaway.transit_data_federation.services.blocks.AbstractBlockStopTimeIndex
org.onebusaway.transit_data_federation.services.blocks.BlockStopTimeIndex
- All Implemented Interfaces:
- HasIndexedBlockStopTimes, HasBlockStopTimes
public class BlockStopTimeIndex
- extends AbstractBlockStopTimeIndex
- implements HasIndexedBlockStopTimes
Provides an index over arrivals and departures at a particular stop.
Specifically, provides an ordered list over BlockStopTimeEntry
entries at the stop, where each arrival and departure in the list is greater
than or equal to the previous stop time in the list. All stop times also have
the same ServiceIdActivation
.
- Author:
- bdferris
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BlockStopTimeIndex
public BlockStopTimeIndex(List<BlockConfigurationEntry> blockConfigs,
int[] stopIndices,
org.onebusaway.gtfs.model.calendar.ServiceInterval serviceInterval)
create
public static BlockStopTimeIndex create(BlockTripIndex blockTripIndex,
int blockSequence)
getArrivalTimeForIndex
public int getArrivalTimeForIndex(int index)
HasIndexedBlockStopTimes
Interface
- Specified by:
getArrivalTimeForIndex
in interface HasIndexedBlockStopTimes
getDepartureTimeForIndex
public int getDepartureTimeForIndex(int index)
- Specified by:
getDepartureTimeForIndex
in interface HasIndexedBlockStopTimes
getDistanceAlongBlockForIndex
public double getDistanceAlongBlockForIndex(int index)
Copyright © 2012 OneBusAway. All Rights Reserved.