Class CalendarServiceDataFactoryImpl
java.lang.Object
org.onebusaway.gtfs.impl.calendar.CalendarServiceDataFactoryImpl
- All Implemented Interfaces:
CalendarServiceDataFactory
We perform initial date calculations in the timezone of the host jvm, which may be different than
the timezone of an agency with the specified service id. To my knowledge, the calculation should
work the same, which is to say I can't immediately think of any cases where the service dates
would be computed incorrectly.
- Author:
- bdferris
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic CalendarServicegetServiceDatesForServiceId(AgencyAndId serviceId, TimeZone serviceIdTimeZone) voidsetExcludeFutureServiceDatesInDays(int excludeFutureServiceDatesInDays) voidupdateData(Collection<Agency> allAgencies, Map<AgencyAndId, List<String>> tripAgencyIdsReferencingServiceId, Map<String, TimeZone> timeZoneMapByAgencyId)
-
Constructor Details
-
CalendarServiceDataFactoryImpl
public CalendarServiceDataFactoryImpl() -
CalendarServiceDataFactoryImpl
-
-
Method Details
-
createService
-
setGtfsDao
-
setExcludeFutureServiceDatesInDays
public void setExcludeFutureServiceDatesInDays(int excludeFutureServiceDatesInDays) -
createData
- Specified by:
createDatain interfaceCalendarServiceDataFactory
-
updateData
public CalendarServiceData updateData(Collection<Agency> allAgencies, Map<AgencyAndId, List<String>> tripAgencyIdsReferencingServiceId, Map<String, TimeZone> timeZoneMapByAgencyId) - Specified by:
updateDatain interfaceCalendarServiceDataFactory
-
getServiceDatesForServiceId
public Set<ServiceDate> getServiceDatesForServiceId(AgencyAndId serviceId, TimeZone serviceIdTimeZone)
-