org.onebusaway.transit_data_federation.services.blocks
Class FrequencyBlockStopTimeIndex

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

Field Summary
 
Fields inherited from class org.onebusaway.transit_data_federation.services.blocks.AbstractBlockStopTimeIndex
_blockConfigs, _stopIndices
 
Constructor Summary
FrequencyBlockStopTimeIndex(List<FrequencyEntry> frequencies, List<BlockConfigurationEntry> blockConfigs, int[] stopIndices, org.onebusaway.gtfs.model.calendar.ServiceInterval serviceInterval)
           
 
Method Summary
 int getEndTimeForIndex(int index)
           
 List<FrequencyEntry> getFrequencies()
           
 List<FrequencyBlockStopTimeEntry> getFrequencyStopTimes()
           
 int getStartTimeForIndex(int index)
           
 
Methods inherited from class org.onebusaway.transit_data_federation.services.blocks.AbstractBlockStopTimeIndex
computeServiceInterval, getBlockConfigs, getServiceIds, getServiceInterval, getStop, getStopTimeForIndex, getStopTimes, getTrips, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FrequencyBlockStopTimeIndex

public FrequencyBlockStopTimeIndex(List<FrequencyEntry> frequencies,
                                   List<BlockConfigurationEntry> blockConfigs,
                                   int[] stopIndices,
                                   org.onebusaway.gtfs.model.calendar.ServiceInterval serviceInterval)
Method Detail

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.