Module org.entur.netex.gtfs.export
Class DefaultServiceCalendarProducer
java.lang.Object
org.entur.netex.gtfs.export.producer.DefaultServiceCalendarProducer
- All Implemented Interfaces:
ServiceCalendarProducer
-
Field Summary
Fields inherited from interface org.entur.netex.gtfs.export.producer.ServiceCalendarProducer
SERVICE_AVAILABLE, SERVICE_UNAVAILABLE -
Constructor Summary
Constructors -
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.
-
Constructor Details
-
DefaultServiceCalendarProducer
-
-
Method Details
-
produce
public 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) Description copied from interface:ServiceCalendarProducerProduce a GTFS Service Calendar for a given GTFS service.- Specified by:
producein interfaceServiceCalendarProducer- 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.
-