org.onebusaway.transit_data_federation.impl
Class ExtendedCalendarServiceImpl

java.lang.Object
  extended by org.onebusaway.transit_data_federation.impl.ExtendedCalendarServiceImpl
All Implemented Interfaces:
ExtendedCalendarService

@Component
public class ExtendedCalendarServiceImpl
extends Object
implements ExtendedCalendarService


Constructor Summary
ExtendedCalendarServiceImpl()
           
 
Method Summary
 boolean areServiceIdsActiveOnServiceDate(ServiceIdActivation serviceIds, Date serviceDate)
           
 Set<Date> getDatesForServiceIds(ServiceIdActivation serviceIds)
           
 List<Date> getDatesForServiceIdsAsOrderedList(ServiceIdActivation serviceIds)
           
 List<Date> getNextServiceDatesForDepartureInterval(ServiceIdActivation serviceIds, org.onebusaway.gtfs.model.calendar.ServiceInterval serviceInterval, long time)
           
 List<Date> getPreviousServiceDatesForArrivalInterval(ServiceIdActivation serviceIds, org.onebusaway.gtfs.model.calendar.ServiceInterval serviceInterval, long time)
           
 List<Date> getServiceDatesForInterval(ServiceIdActivation serviceIds, org.onebusaway.gtfs.model.calendar.ServiceInterval serviceInterval, long time, boolean findDepartures)
           
 Set<org.onebusaway.gtfs.model.calendar.ServiceDate> getServiceDatesForServiceIds(ServiceIdActivation serviceIds)
           
 Collection<Date> getServiceDatesWithinRange(ServiceIdActivation serviceIds, org.onebusaway.gtfs.model.calendar.ServiceInterval interval, Date from, Date to)
           
 void setCalendarService(org.onebusaway.gtfs.services.calendar.CalendarService calendarService)
           
 void setServiceDateLowerBoundsInWeeks(int serviceDateLowerBoundsInWeeks)
           
 void setServiceDateRangeCache(net.sf.ehcache.Cache serviceDateRangeCache)
           
 void setServiceDateRangeCacheInterval(int hours)
           
 void setServiceDateUpperBoundsInWeeks(int serviceDateUpperBoundsInWeeks)
           
 void setTransitGraphDao(TransitGraphDao transitGraphDao)
           
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtendedCalendarServiceImpl

public ExtendedCalendarServiceImpl()
Method Detail

setServiceDateLowerBoundsInWeeks

public void setServiceDateLowerBoundsInWeeks(int serviceDateLowerBoundsInWeeks)

setServiceDateUpperBoundsInWeeks

public void setServiceDateUpperBoundsInWeeks(int serviceDateUpperBoundsInWeeks)

setCalendarService

public void setCalendarService(org.onebusaway.gtfs.services.calendar.CalendarService calendarService)

setTransitGraphDao

public void setTransitGraphDao(TransitGraphDao transitGraphDao)

setServiceDateRangeCacheInterval

public void setServiceDateRangeCacheInterval(int hours)

setServiceDateRangeCache

public void setServiceDateRangeCache(net.sf.ehcache.Cache serviceDateRangeCache)

start

@PostConstruct
public void start()

getServiceDatesForServiceIds

public Set<org.onebusaway.gtfs.model.calendar.ServiceDate> getServiceDatesForServiceIds(ServiceIdActivation serviceIds)
Specified by:
getServiceDatesForServiceIds in interface ExtendedCalendarService

getDatesForServiceIds

public Set<Date> getDatesForServiceIds(ServiceIdActivation serviceIds)
Specified by:
getDatesForServiceIds in interface ExtendedCalendarService

getDatesForServiceIdsAsOrderedList

public List<Date> getDatesForServiceIdsAsOrderedList(ServiceIdActivation serviceIds)
Specified by:
getDatesForServiceIdsAsOrderedList in interface ExtendedCalendarService

getServiceDatesWithinRange

public Collection<Date> getServiceDatesWithinRange(ServiceIdActivation serviceIds,
                                                   org.onebusaway.gtfs.model.calendar.ServiceInterval interval,
                                                   Date from,
                                                   Date to)
Specified by:
getServiceDatesWithinRange in interface ExtendedCalendarService

areServiceIdsActiveOnServiceDate

public boolean areServiceIdsActiveOnServiceDate(ServiceIdActivation serviceIds,
                                                Date serviceDate)
Specified by:
areServiceIdsActiveOnServiceDate in interface ExtendedCalendarService

getServiceDatesForInterval

public List<Date> getServiceDatesForInterval(ServiceIdActivation serviceIds,
                                             org.onebusaway.gtfs.model.calendar.ServiceInterval serviceInterval,
                                             long time,
                                             boolean findDepartures)
Specified by:
getServiceDatesForInterval in interface ExtendedCalendarService

getNextServiceDatesForDepartureInterval

public List<Date> getNextServiceDatesForDepartureInterval(ServiceIdActivation serviceIds,
                                                          org.onebusaway.gtfs.model.calendar.ServiceInterval serviceInterval,
                                                          long time)
Specified by:
getNextServiceDatesForDepartureInterval in interface ExtendedCalendarService

getPreviousServiceDatesForArrivalInterval

public List<Date> getPreviousServiceDatesForArrivalInterval(ServiceIdActivation serviceIds,
                                                            org.onebusaway.gtfs.model.calendar.ServiceInterval serviceInterval,
                                                            long time)
Specified by:
getPreviousServiceDatesForArrivalInterval in interface ExtendedCalendarService


Copyright © 2011 OneBusAway. All Rights Reserved.