org.onebusaway.gtfs.model.calendar
Class ServiceIdIntervals
java.lang.Object
org.onebusaway.gtfs.model.calendar.ServiceIdIntervals
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Iterable<java.util.Map.Entry<LocalizedServiceId,ServiceInterval>>
public class ServiceIdIntervals
- extends java.lang.Object
- implements java.io.Serializable, java.lang.Iterable<java.util.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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceIdIntervals
public ServiceIdIntervals()
addStopTime
public void addStopTime(LocalizedServiceId serviceId,
int arrivalTime,
int departureTime)
addIntervals
public void addIntervals(ServiceIdIntervals intervals)
getServiceIds
public java.util.Set<LocalizedServiceId> getServiceIds()
getIntervalForServiceId
public ServiceInterval getIntervalForServiceId(LocalizedServiceId serviceId)
iterator
public java.util.Iterator<java.util.Map.Entry<LocalizedServiceId,ServiceInterval>> iterator()
- Specified by:
iterator in interface java.lang.Iterable<java.util.Map.Entry<LocalizedServiceId,ServiceInterval>>
Copyright © 2010 OneBusAway. All Rights Reserved.