| Package | Description |
|---|---|
| org.onebusaway.gtfs.impl.calendar | |
| org.onebusaway.gtfs.model.calendar | |
| org.onebusaway.gtfs.services.calendar |
| Modifier and Type | Method and Description |
|---|---|
int |
ServiceIdOp.compareInterval(ServiceInterval interval,
Date serviceDate,
Date from,
Date to)
Returns -1 if the service interval comes before the from-to interval.
|
abstract int |
ServiceIdOp.getFromTime(ServiceInterval interval) |
List<Date> |
CalendarServiceImpl.getNextDepartureServiceDates(LocalizedServiceId serviceId,
ServiceInterval interval,
long targetTime) |
List<Date> |
CalendarServiceImpl.getPreviousArrivalServiceDates(LocalizedServiceId serviceId,
ServiceInterval interval,
long targetTime) |
List<Date> |
CalendarServiceImpl.getServiceDateArrivalsWithinRange(LocalizedServiceId serviceId,
ServiceInterval interval,
Date from,
Date to) |
List<Date> |
CalendarServiceImpl.getServiceDateDeparturesWithinRange(LocalizedServiceId serviceId,
ServiceInterval interval,
Date from,
Date to) |
List<Date> |
CalendarServiceImpl.getServiceDatesWithinRange(LocalizedServiceId serviceId,
ServiceInterval interval,
Date from,
Date to) |
abstract int |
ServiceIdOp.getToTime(ServiceInterval interval) |
Date |
ServiceIdOp.shiftTime(ServiceInterval interval,
Date time) |
| Modifier and Type | Method and Description |
|---|---|
ServiceInterval |
ServiceInterval.extend(int arrivalTime,
int departureTime)
Construct a new
ServiceInterval by extending the current service
interval, adjusting the arrival and departure intervals to include the
additional arrival and departure time specified in the arguments. |
static ServiceInterval |
ServiceInterval.extend(ServiceInterval serviceInterval,
int arrivalTime,
int departureTime) |
ServiceInterval |
ServiceIdIntervals.getIntervalForServiceId(LocalizedServiceId serviceId) |
| Modifier and Type | Method and Description |
|---|---|
Iterator<Map.Entry<LocalizedServiceId,ServiceInterval>> |
ServiceIdIntervals.iterator() |
| Modifier and Type | Method and Description |
|---|---|
static ServiceInterval |
ServiceInterval.extend(ServiceInterval serviceInterval,
int arrivalTime,
int departureTime) |
| Modifier and Type | Method and Description |
|---|---|
List<Date> |
CalendarService.getNextDepartureServiceDates(LocalizedServiceId serviceId,
ServiceInterval interval,
long targetTime)
Computes the list of service dates whose departure service interval (min to
max departure time) overlaps the specified target time.
|
List<Date> |
CalendarService.getPreviousArrivalServiceDates(LocalizedServiceId serviceId,
ServiceInterval interval,
long targetTime)
Computes the list of service dates whose arrival service interval (min to
max departure time) overlaps the specified target time.
|
List<Date> |
CalendarService.getServiceDateArrivalsWithinRange(LocalizedServiceId serviceId,
ServiceInterval interval,
Date from,
Date to)
See the description from
CalendarService.getServiceDatesWithinRange(LocalizedServiceId, ServiceInterval, Date, Date)
. |
List<Date> |
CalendarService.getServiceDateDeparturesWithinRange(LocalizedServiceId serviceId,
ServiceInterval interval,
Date from,
Date to)
See the description from
CalendarService.getServiceDatesWithinRange(LocalizedServiceId, ServiceInterval, Date, Date)
. |
List<Date> |
CalendarService.getServiceDatesWithinRange(LocalizedServiceId serviceId,
ServiceInterval interval,
Date from,
Date to)
Given the specified localized service id, which has a corresponding set of
localized service dates, determine the sublist of service dates that, when
extended with the specified
ServiceInterval, overlap with the
specified from-to time range. |
Copyright © 2015 OneBusAway. All Rights Reserved.