org.onebusaway.gtfs.model.calendar
Class ServiceIdIntervals
java.lang.Object
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
| 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 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.