org.onebusaway.transit_data_federation.services.blocks
Class LayoverIntervalBlock
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LayoverIntervalBlock
public LayoverIntervalBlock(int[] startTimes,
int[] endTimes)
- Parameters:
startTimes
- start times in seconds since midnightendTimes
- end times in seconds since midnight
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.