org.onebusaway.transit_data_federation.services.blocks
Class LayoverIntervalBlock

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

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

Specifies an immutable interval of min and max arrival and departure times for layover intervals. See BlockLayoverIndex for our definition of 'layover'. TODO: Rename to LayoverInternvalIndex to avoid confusing use of 'Block'.

Author:
bdferris
See Also:
Serialized Form

Constructor Summary
LayoverIntervalBlock(int[] startTimes, int[] endTimes)
           
 
Method Summary
 int compareTo(LayoverIntervalBlock 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

LayoverIntervalBlock

public LayoverIntervalBlock(int[] startTimes,
                            int[] endTimes)
Parameters:
startTimes - start times in seconds since midnight
endTimes - end times in seconds since midnight
Method Detail

getStartTimes

public int[] getStartTimes()
Returns:
start times in seconds since midnight

getEndTimes

public int[] getEndTimes()
Returns:
end times in seconds since midnight

getRange

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

compareTo

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


Copyright © 2012 OneBusAway. All Rights Reserved.