Package org.onebusaway.gtfs.model.calendar

Examples of org.onebusaway.gtfs.model.calendar.CalendarServiceData


  @Before
  public void before() {
    _service = new BlockCalendarServiceImpl();

    _calendarData = new CalendarServiceData();

    _calendarService = new CalendarServiceImpl();
    _calendarService.setData(_calendarData);

    _extendedCalendarService = new ExtendedCalendarServiceImpl();
View Full Code Here


    /****
     * Calendar Service
     ****/

    _calendarService = new CalendarServiceImpl();
    CalendarServiceData data = new CalendarServiceData();
    _calendarService.setData(data);

    addServiceDates(data, "sA", new ServiceDate(2010, 9, 10), new ServiceDate(
        2010, 9, 11));
    addServiceDates(data, "sB", new ServiceDate(2010, 9, 11), new ServiceDate(
View Full Code Here

  public void run() {

    CalendarServiceDataFactoryImpl factory = new CalendarServiceDataFactoryImpl();
    factory.setGtfsDao(_dao);
    factory.setExcludeFutureServiceDatesInDays(_excludeFutureServiceDatesInDays);
    CalendarServiceData data = factory.createData();
    data.makeReadOnly();

    try {

      ObjectSerializationLibrary.writeObject(
          _bundle.getCalendarServiceDataPath(), data);
View Full Code Here

TOP

Related Classes of org.onebusaway.gtfs.model.calendar.CalendarServiceData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.