Examples of StopTransferService


Examples of org.onebusaway.transit_data_federation.services.tripplanner.StopTransferService

    return ItineraryWeightingLibrary.computeTransferTime(transfer, options);
  }

  private StopTransfer findForwardTransfer(StopEntry fromStop, StopEntry toStop) {
    StopTransferService stService = _context.getStopTransferService();
    List<StopTransfer> transfers = stService.getTransfersFromStop(fromStop);
    for (StopTransfer transfer : transfers) {
      if (transfer.getStop() == toStop)
        return transfer;
    }
    return null;
View Full Code Here

Examples of org.onebusaway.transit_data_federation.services.tripplanner.StopTransferService

    edges.add(new DepartureReverseEdge(_context, _instance));

    /**
     * We can be coming from a transfer from another stop.
     */
    StopTransferService stopTransferService = _context.getStopTransferService();
    List<StopTransfer> transfers = stopTransferService.getTransfersToStop(stop);

    for (StopTransfer transfer : transfers)
      edges.add(new TransferAndDepartureEdge(_context, _instance, transfer));

    return edges;
View Full Code Here

Examples of org.onebusaway.transit_data_federation.services.tripplanner.StopTransferService

    edges.add(new ArrivalEdge(_context, _instance));

    /**
     * We can alight from the vehicle AND transfer to another stop
     */
    StopTransferService stopTransferService = _context.getStopTransferService();
    List<StopTransfer> transfers = stopTransferService.getTransfersFromStop(stop);

    for (StopTransfer transfer : transfers)
      edges.add(new ArrivalAndTransferEdge(_context, _instance, transfer));

    return edges;
View Full Code Here

Examples of org.onebusaway.transit_data_federation.services.tripplanner.StopTransferService

    edges.add(new TPOfflineArrivalEdge(_context, _instance));

    /**
     * We can alight from the vehicle AND transfer to another stop
     */
    StopTransferService stopTransferService = _context.getStopTransferService();
    List<StopTransfer> transfers = stopTransferService.getTransfersFromStop(stop);

    for (StopTransfer transfer : transfers)
      edges.add(new TPOfflineTransferEdge(_context, this, transfer));

    return edges;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.