Examples of incrementTimeInSeconds()


Examples of org.opentripplanner.routing.core.StateEditor.incrementTimeInSeconds()

      Vertex fromVertex = new WalkToStopVertex(_context, _stop);
      Vertex toVertex = new TPDepartureVertex(_context, pathState);
      EdgeNarrative narrative = narrative(s0, fromVertex, toVertex);

      StateEditor edit = s0.edit(this, narrative);
      edit.incrementTimeInSeconds(options.minTransferTime);

      double w = options.minTransferTime * options.waitAtBeginningFactor;
      edit.incrementWeight(w);

      State r = edit.makeState();
View Full Code Here

Examples of org.opentripplanner.routing.core.StateEditor.incrementTimeInSeconds()

    EdgeNarrative narrative = createNarrative(s0);

    StateEditor edit = s0.edit(this, narrative);
    int runningTime = computeRunningTime();
    edit.incrementTimeInSeconds(runningTime);
    edit.incrementWeight(runningTime);

    return edit.makeState();
  }
View Full Code Here

Examples of org.opentripplanner.routing.core.StateEditor.incrementTimeInSeconds()

    StopTimeEntry stopTime = bst.getStopTime();
    int dwellTime = stopTime.getSlackTime();

    EdgeNarrative narrative = createNarrative(s0);
    StateEditor edit = s0.edit(this, narrative);
    edit.incrementTimeInSeconds(dwellTime);
    edit.incrementWeight(dwellTime);

    return edit.makeState();
  }
View Full Code Here

Examples of org.opentripplanner.routing.core.StateEditor.incrementTimeInSeconds()

    int t = transferTime + options.minTransferTime;

    EdgeNarrative narrative = createNarrative(s0, s0.getTime() + t * 1000);

    StateEditor edit = s0.edit(this, narrative);
    edit.incrementTimeInSeconds(t);

    double weight = ItineraryWeightingLibrary.computeTransferWeight(
        transferTime, options);
    edit.incrementWeight(weight);

View Full Code Here

Examples of org.opentripplanner.routing.core.StateEditor.incrementTimeInSeconds()

    StopTimeEntry stopTime = bst.getStopTime();
    int dwellTime = stopTime.getSlackTime();

    EdgeNarrative narrative = createNarrative(s0);
    StateEditor edit = s0.edit(this, narrative);
    edit.incrementTimeInSeconds(dwellTime);
    edit.incrementWeight(dwellTime);
    return edit.makeState();
  }

  private EdgeNarrative createNarrative(State s0) {
View Full Code Here

Examples of org.opentripplanner.routing.core.StateEditor.incrementTimeInSeconds()

  public State traverse(State s0) {

    EdgeNarrative narrative = createNarrative(s0);
    StateEditor edit = s0.edit(this, narrative);
    int runningTime = computeRunningTime();
    edit.incrementTimeInSeconds(runningTime);
    edit.incrementWeight(runningTime);
    return edit.makeState();
  }

  /****
 
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.