Package org.opentripplanner.routing.core

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


    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

    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

  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.