Package org.opentripplanner.routing.core

Examples of org.opentripplanner.routing.core.TraverseOptions


      return traverseForward(s0);
  }

  private State traverseForward(State s0) {

    TraverseOptions options = s0.getOptions();

    /**
     * Only allow transition to a transit stop if transit is enabled
     */
    if (!SupportLibrary.isTransitEnabled(options))
View Full Code Here


    return s0.edit(this, narrative).makeState();
  }

  private State traverseReverse(State s0) {

    TraverseOptions options = s0.getOptions();

    EdgeNarrative narrative = createNarrative(s0);
    StateEditor edit = s0.edit(this, narrative);
    edit.incrementTimeInSeconds(options.minTransferTime);
    double w = options.minTransferTime * options.waitAtBeginningFactor;
 
View Full Code Here

      return traverseForward(s0);
  }

  private State traverseForward(State s0) {

    TraverseOptions options = s0.getOptions();

    /**
     * Check if we've reached our transfer limit
     */
    if (s0.getNumBoardings() >= options.maxTransfers)
View Full Code Here

    return edit.makeState();
  }

  private State traverseReverse(State s0) {

    TraverseOptions options = s0.getOptions();

    int transferTime = ItineraryWeightingLibrary.computeTransferTime(_transfer,
        options);
    double weight = ItineraryWeightingLibrary.computeTransferWeight(
        transferTime, options);
View Full Code Here

    _stop = stop;
  }

  @Override
  public State traverse(State s0) {
    TraverseOptions options = s0.getOptions();
    if (options.isArriveBy())
      return traverseReverse(s0);
    else
      return traverseForward(s0);
  }
View Full Code Here

  private State traverseReverse(State s0) {

    State results = null;

    long time = s0.getTime();
    TraverseOptions options = s0.getOptions();

    /**
     * Look for arrivals in the previous X minutes
     */
    long timeFrom = SupportLibrary.getPreviousTimeWindow(_context, time);
View Full Code Here

    _transfer = transfer;
  }

  @Override
  public State traverse(State s0) {
    TraverseOptions options = s0.getOptions();
    if (options.isArriveBy())
      return traverseReverse(s0);
    else
      return traverseForward(s0);
  }
View Full Code Here

  private State traverseForward(State s0) {

    EdgeNarrative narrative = createNarrative(s0, s0.getTime());
    StateEditor edit = s0.edit(this, narrative);

    TraverseOptions options = s0.getOptions();
    int transferTime = computeTransferTime(options);
    edit.setTime(_instance.getBestArrivalTime());

    double weight = computeWeightForTransferTime(options, transferTime);
    edit.incrementWeight(weight);
View Full Code Here

    return edit.makeState();
  }

  private State traverseReverse(State s0) {

    TraverseOptions options = s0.getOptions();

    /**
     * Check if we've reached our transfer limit
     */
    if (s0.getNumBoardings() >= options.maxTransfers)
View Full Code Here

    _stop = stop;
  }

  @Override
  public State traverse(State s0) {
    TraverseOptions options = s0.getOptions();
    if (options.isArriveBy())
      return traverseReverse(s0);
    else
      return traverseForward(s0);
  }
View Full Code Here

TOP

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

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.