Class CalendarServiceDataFactoryImpl
- java.lang.Object
-
- org.onebusaway.gtfs.impl.calendar.CalendarServiceDataFactoryImpl
-
- All Implemented Interfaces:
CalendarServiceDataFactory
public class CalendarServiceDataFactoryImpl extends Object implements 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
Constructors Constructor Description CalendarServiceDataFactoryImpl()CalendarServiceDataFactoryImpl(GtfsRelationalDao dao)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CalendarServiceDatacreateData()static CalendarServicecreateService(GtfsRelationalDao dao)Set<ServiceDate>getServiceDatesForServiceId(AgencyAndId serviceId, TimeZone serviceIdTimeZone)voidsetExcludeFutureServiceDatesInDays(int excludeFutureServiceDatesInDays)voidsetGtfsDao(GtfsRelationalDao dao)CalendarServiceDataupdateData(Collection<Agency> allAgencies, Map<AgencyAndId,List<String>> tripAgencyIdsReferencingServiceId, Map<String,TimeZone> timeZoneMapByAgencyId)
-
-
-
Constructor Detail
-
CalendarServiceDataFactoryImpl
public CalendarServiceDataFactoryImpl()
-
CalendarServiceDataFactoryImpl
public CalendarServiceDataFactoryImpl(GtfsRelationalDao dao)
-
-
Method Detail
-
createService
public static CalendarService createService(GtfsRelationalDao dao)
-
setGtfsDao
public void setGtfsDao(GtfsRelationalDao dao)
-
setExcludeFutureServiceDatesInDays
public void setExcludeFutureServiceDatesInDays(int excludeFutureServiceDatesInDays)
-
createData
public CalendarServiceData 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)
-
-