Package org.onebusaway.uk.atoc.timetable_parser

Examples of org.onebusaway.uk.atoc.timetable_parser.TimetableBundle$FileEntryImpl


    // TODO Auto-generated method stub

  }

  public void readScheduleData(File path) throws IOException {
    TimetableBundle bundle = new TimetableBundle(path);
    _log.info("loading master station names");
    bundle.readMasterStationNames(new MasterStationNameHandler());
    _log.info("loading timetable");
    bundle.readTimetable(new ScheduleHandler());
    _log.info("load complete");
  }
View Full Code Here


  }

  @PostConstruct
  public void start() throws IOException, JAXBException {

    TimetableBundle bundle = new TimetableBundle(_atocTimetablePath);
    _log.info("loading master station names");
    bundle.readMasterStationNames(new MasterStationNameHandler());
    _log.info("loading timetable");
    bundle.readTimetable(new ScheduleHandler());
    _log.info("load complete");

    if (_naptanPath != null) {
      _log.info("creating JAXB context");
      JAXBContext context = JAXBContext.newInstance("uk.org.naptan");
View Full Code Here

  private Map<String, Set<String>> _berthsByStanox = new HashMap<String, Set<String>>();

  private Set<String> _stanox = new HashSet<String>();

  public void run() throws IOException {
    TimetableBundle bundle = new TimetableBundle(new File(
        "/Users/bdferris/Downloads/uk-rail/data.atoc.org"));
    bundle.readMasterStationNames(new MasterStationNameHandler());
    bundle.readTimetable(new ScheduleHandler());

    System.out.println("stanoxCount=" + _stanox.size());

    File path = new File("/Users/bdferris/Downloads/uk-rail/berths.csv");
    BufferedReader reader = new BufferedReader(new FileReader(path));
View Full Code Here

TOP

Related Classes of org.onebusaway.uk.atoc.timetable_parser.TimetableBundle$FileEntryImpl

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.