org.onebusaway.transit_data_federation.services.blocks
Class FrequencyServiceIntervalBlock

java.lang.Object
  extended by org.onebusaway.transit_data_federation.services.blocks.FrequencyServiceIntervalBlock
All Implemented Interfaces:
Serializable, Comparable<FrequencyServiceIntervalBlock>

public final class FrequencyServiceIntervalBlock
extends Object
implements Serializable, Comparable<FrequencyServiceIntervalBlock>

Specifies an immutable interval of min and max arrival and departure times. TODO: Rename to FrequencyIntervalIndex to avoid confusing use of 'Block'.

Author:
bdferris
See Also:
Serialized Form

Constructor Summary
FrequencyServiceIntervalBlock(int[] startTimes, int[] endTimes)
           
 
Method Summary
 int compareTo(FrequencyServiceIntervalBlock o)
           
 int[] getEndTimes()
           
 org.onebusaway.gtfs.model.calendar.ServiceInterval getRange()
           
 int[] getStartTimes()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FrequencyServiceIntervalBlock

public FrequencyServiceIntervalBlock(int[] startTimes,
                                     int[] endTimes)
Method Detail

getStartTimes

public int[] getStartTimes()
Returns:
frequency block from times in seconds since midnight

getEndTimes

public int[] getEndTimes()
Returns:
frequency block to times in seconds since midnight

getRange

public org.onebusaway.gtfs.model.calendar.ServiceInterval getRange()

compareTo

public int compareTo(FrequencyServiceIntervalBlock o)
Specified by:
compareTo in interface Comparable<FrequencyServiceIntervalBlock>


Copyright © 2012 OneBusAway. All Rights Reserved.