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

Examples of org.onebusaway.uk.network_rail.gtfs_realtime.model.BerthStepIdentifier$Id


    Map<RawNode, List<Integer>> edges = forward ? node.getOutgoing()
        : node.getIncoming();
    for (RawNode edge : edges.keySet()) {
      if (edge instanceof RawBerthNode) {
        RawBerthNode berthNode = (RawBerthNode) edge;
        BerthStepIdentifier id = berthNode.getId();
        fromBerths.put(id.getFromBerthId(), berthNode);
        toBerths.put(id.getToBerthId(), berthNode);
      }
    }
    if (forward) {
      fromBerths.keySet().retainAll(toBerths.keySet());
      node.getOutgoing().keySet().removeAll(fromBerths.values());
View Full Code Here


  private void addEdges(SerializedNarrative.TrainInstance trainInstance,
      List<SerializedNarrative.Event> events) throws IOException {

    TrackIdentifier prevId = null;
    long prevTime = 0;
    BerthStepIdentifier prevBerthStepId = null;
    long prevBerthStepTime = 0;

    for (SerializedNarrative.Event event : events) {
      TrackIdentifier id = getTrackIdentifierForEvent(event);
      if (id != null) {
View Full Code Here

TOP

Related Classes of org.onebusaway.uk.network_rail.gtfs_realtime.model.BerthStepIdentifier$Id

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.