Package org.opentripplanner.routing.core

Examples of org.opentripplanner.routing.core.Edge


    if (_pathState.hasTransfers()) {
      TransferPatternService tpService = _context.getTransferPatternService();
      List<TPState> transferStates = _pathState.getTransferStates(tpService);
      for (TPState nextState : transferStates) {
        Edge edge = new TPTransferEdge(_context, _pathState, nextState,
            _departure, _arrival, true);
        edges.add(edge);
      }
    }

    if (_pathState.isExitAllowed()) {
      TPDepartureVertex from = new TPDepartureVertex(_context, _pathState);
      Edge edge = new TPFreeEdge(_context, from, this);
      return Arrays.asList(edge);
    }

    return edges;
  }
View Full Code Here


      }
    }

    if (_pathState.isExitAllowed()) {
      TPArrivalVertex to = new TPArrivalVertex(_context, _pathState);
      Edge edge = new TPFreeEdge(_context, this, to);
      return Arrays.asList(edge);
    }

    return edges;
  }
View Full Code Here

    } else if (v instanceof TPOfflineOriginVertex) {
      TPOfflineOriginVertex originVertex = (TPOfflineOriginVertex) v;
      return Arrays.asList(originVertex.getStop());
    }

    Edge payload = state.getBackEdge();
    EdgeNarrative narrative = state.getBackEdgeNarrative();

    if (payload instanceof TPOfflineTransferEdge) {

      TPOfflineBlockArrivalVertex fromV = (TPOfflineBlockArrivalVertex) narrative.getFromVertex();
View Full Code Here

    TransitLegBuilder builder = new TransitLegBuilder();

    while (currentIndex < states.size()) {

      State state = states.get(currentIndex);
      Edge edge = state.getBackEdge();
      EdgeNarrative narrative = state.getBackEdgeNarrative();
      TraverseMode mode = narrative.getMode();

      if (!mode.isTransit())
        break;
View Full Code Here

TOP

Related Classes of org.opentripplanner.routing.core.Edge

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.