Package org.onebusaway.uk.network_rail.gtfs_realtime.model

Examples of org.onebusaway.uk.network_rail.gtfs_realtime.model.TrainState


    if (_statePath == null || _inReplay) {
      return;
    }
    List<TrainState> states = new ArrayList<TrainState>();
    for (TrainInstance instance : _trainsById.values()) {
      TrainState state = new TrainState();
      state.setTrainId(instance.getTrainId());
      state.setTrainUid(instance.getSchedule().getTrainUid());
      state.setServiceDate(instance.getServiceDate());
      state.setLastUpdateTimestamp(instance.getLastUpdateTime());
      states.add(state);
    }

    ObjectOutputStream out = new ObjectOutputStream(new BufferedOutputStream(
        new FileOutputStream(_statePath)));
View Full Code Here

TOP

Related Classes of org.onebusaway.uk.network_rail.gtfs_realtime.model.TrainState

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.