Class DefaultServiceCalendarProducer

java.lang.Object
org.entur.netex.gtfs.export.producer.DefaultServiceCalendarProducer
All Implemented Interfaces:
ServiceCalendarProducer

public class DefaultServiceCalendarProducer extends Object implements ServiceCalendarProducer
  • Constructor Details

    • DefaultServiceCalendarProducer

      public DefaultServiceCalendarProducer(GtfsDatasetRepository gtfsDatasetRepository)
  • 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: ServiceCalendarProducer
      Produce a GTFS Service Calendar for a given GTFS service.
      Specified by:
      produce in interface ServiceCalendarProducer
      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.