Examples of TraverseOptions


Examples of org.opentripplanner.routing.core.TraverseOptions

   ****/

  @Override
  public State traverse(State s0) {

    TraverseOptions options = s0.getOptions();

    int transferTime = computeTransferTime(options);

    EdgeNarrative narrative = computeNarrative(s0);

View Full Code Here

Examples of org.opentripplanner.routing.core.TraverseOptions

    _pathState = pathState;
  }

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

Examples of org.opentripplanner.routing.core.TraverseOptions

    _pathState = pathState;
  }

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

Examples of org.opentripplanner.routing.core.TraverseOptions

    }

    @Override
    public State traverse(State s0) {

      TraverseOptions options = s0.getOptions();

      if (options.isArriveBy())
        return null;

      Vertex toVertex = new TPOfflineBlockDepartureVertex(_context, _instance);
      EdgeNarrative narrative = narrative(s0, TPOfflineTransferVertex.this,
          toVertex);
View Full Code Here

Examples of org.opentripplanner.routing.core.TraverseOptions

public class ItineraryWeightingLibrary {

  public static double computeWeightForWait(State state,
      int dwellTime) {

    TraverseOptions options = state.getOptions();
    double w = dwellTime * options.waitReluctance;

    /**
     * If this is the initial boarding, we penalize the wait time differently
     */
 
View Full Code Here

Examples of org.opentripplanner.routing.core.TraverseOptions

    _isReverseEdge = isReverseEdge;
  }

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

Examples of org.opentripplanner.routing.core.TraverseOptions

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

  private State traverseReverse(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

Examples of org.opentripplanner.routing.core.TraverseOptions

    _from = from;
  }

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

Examples of org.opentripplanner.routing.core.TraverseOptions

    _instance = instance;
  }

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

Examples of org.opentripplanner.routing.core.TraverseOptions

    _isReverseEdge = isReverseEdge;
  }

  @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
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.