Module org.entur.netex.gtfs.export
Interface ServiceCalendarProducer
- All Known Implementing Classes:
DefaultServiceCalendarProducer
public interface ServiceCalendarProducer
Produce a GTFS Service Calendar.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionorg.onebusaway.gtfs.model.ServiceCalendarproduce(String serviceId, org.onebusaway.gtfs.model.calendar.ServiceDate startDate, org.onebusaway.gtfs.model.calendar.ServiceDate endDate, Collection<DayOfWeek> daysOfWeeks) Produce a GTFS Service Calendar for a given GTFS service.
-
Field Details
-
SERVICE_UNAVAILABLE
static final int SERVICE_UNAVAILABLE- See Also:
-
SERVICE_AVAILABLE
static final int SERVICE_AVAILABLE- See Also:
-
-
Method Details
-
produce
org.onebusaway.gtfs.model.ServiceCalendar produce(String serviceId, org.onebusaway.gtfs.model.calendar.ServiceDate startDate, org.onebusaway.gtfs.model.calendar.ServiceDate endDate, Collection<DayOfWeek> daysOfWeeks) Produce a GTFS Service Calendar for a given GTFS service.- Parameters:
serviceId- the id of the GTFS service.startDate- the start date of the calendar period.endDate- the end date of the calendar period.daysOfWeeks- the days of week on which the service runs. If empty the service runs every day of the week.- Returns:
- the GTFS service calendar for this GTFS service.
-