org.onebusaway.gtfs.model.calendar
Class ServiceIdIntervals

java.lang.Object
  extended by org.onebusaway.gtfs.model.calendar.ServiceIdIntervals
All Implemented Interfaces:
Serializable, Iterable<Map.Entry<LocalizedServiceId,ServiceInterval>>

public class ServiceIdIntervals
extends Object
implements Serializable, Iterable<Map.Entry<LocalizedServiceId,ServiceInterval>>

A Map of LocalizedServiceId and ServiceInterval objects, with convenience methods for adding additional service ids and arrival-departure time intervals.

Author:
bdferris
See Also:
Serialized Form

Constructor Summary
ServiceIdIntervals()
           
 
Method Summary
 void addIntervals(ServiceIdIntervals intervals)
           
 void addStopTime(LocalizedServiceId serviceId, int arrivalTime, int departureTime)
           
 ServiceInterval getIntervalForServiceId(LocalizedServiceId serviceId)
           
 Set<LocalizedServiceId> getServiceIds()
           
 Iterator<Map.Entry<LocalizedServiceId,ServiceInterval>> iterator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceIdIntervals

public ServiceIdIntervals()
Method Detail

addStopTime

public void addStopTime(LocalizedServiceId serviceId,
                        int arrivalTime,
                        int departureTime)

addIntervals

public void addIntervals(ServiceIdIntervals intervals)

getServiceIds

public Set<LocalizedServiceId> getServiceIds()

getIntervalForServiceId

public ServiceInterval getIntervalForServiceId(LocalizedServiceId serviceId)

iterator

public Iterator<Map.Entry<LocalizedServiceId,ServiceInterval>> iterator()
Specified by:
iterator in interface Iterable<Map.Entry<LocalizedServiceId,ServiceInterval>>


Copyright © 2011 OneBusAway. All Rights Reserved.