Package org.onebusaway.transit_data_federation.services.tripplanner

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


    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

    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

    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

Related Classes of org.onebusaway.transit_data_federation.services.tripplanner.StopTransferService

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.