org.onebusaway.transit_data_federation.services.blocks
Class FrequencyBlockStopTimeIndex
java.lang.Object
org.onebusaway.transit_data_federation.services.blocks.AbstractBlockStopTimeIndex
org.onebusaway.transit_data_federation.services.blocks.FrequencyBlockStopTimeIndex
- All Implemented Interfaces:
- HasIndexedFrequencyBlockTrips
public class FrequencyBlockStopTimeIndex
- extends AbstractBlockStopTimeIndex
- implements HasIndexedFrequencyBlockTrips
Provides an index over frequency-based 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 |
FrequencyBlockStopTimeIndex
public FrequencyBlockStopTimeIndex(List<FrequencyEntry> frequencies,
List<BlockConfigurationEntry> blockConfigs,
int[] stopIndices,
org.onebusaway.gtfs.model.calendar.ServiceInterval serviceInterval)
getFrequencies
public List<FrequencyEntry> getFrequencies()
getStartTimeForIndex
public int getStartTimeForIndex(int index)
- Specified by:
getStartTimeForIndex
in interface HasIndexedFrequencyBlockTrips
getEndTimeForIndex
public int getEndTimeForIndex(int index)
- Specified by:
getEndTimeForIndex
in interface HasIndexedFrequencyBlockTrips
getFrequencyStopTimes
public List<FrequencyBlockStopTimeEntry> getFrequencyStopTimes()
Copyright © 2012 OneBusAway. All Rights Reserved.