org.onebusaway.transit_data_federation.services.blocks
Class ServiceIntervalBlock

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

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

Specifies an immutable interval of min and max arrival and departure times.

Author:
bdferris
See Also:
Serialized Form

Constructor Summary
ServiceIntervalBlock(int[] minArrivals, int[] minDepartures, int[] maxArrivals, int[] maxDepartures)
           
 
Method Summary
 int compareTo(ServiceIntervalBlock o)
           
 int[] getMaxArrivals()
           
 int[] getMaxDepartures()
           
 int[] getMinArrivals()
           
 int[] getMinDepartures()
           
 org.onebusaway.gtfs.model.calendar.ServiceInterval getRange()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceIntervalBlock

public ServiceIntervalBlock(int[] minArrivals,
                            int[] minDepartures,
                            int[] maxArrivals,
                            int[] maxDepartures)
Parameters:
minArrivals - min arrival time in seconds since midnight
minDepartures - min departure time in seconds since midnight
maxArrivals - max arrival time in seconds since midnight
maxDepartures - max departue time in seconds since midnight
Method Detail

getMinArrivals

public int[] getMinArrivals()
Returns:
min arrival time in seconds since midnight

getMinDepartures

public int[] getMinDepartures()
Returns:
min departure time in seconds since midnight

getMaxArrivals

public int[] getMaxArrivals()
Returns:
max arrival time in seconds since midnight

getMaxDepartures

public int[] getMaxDepartures()
Returns:
max departure time in seconds since midnight

getRange

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

compareTo

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


Copyright © 2011 OneBusAway. All Rights Reserved.