Examples of incrementInitialWaitTime()


Examples of org.onebusaway.transit_data_federation.impl.otp.OBAStateEditor.incrementInitialWaitTime()

      edit.setTime(arrivalTime);
      edit.incrementNumBoardings();
      edit.setEverBoarded(true);

      if (s0.getNumBoardings() == 0)
        edit.incrementInitialWaitTime(dwellTime * 1000);

      double w = ItineraryWeightingLibrary.computeWeightForWait(s0, dwellTime);
      edit.incrementWeight(w);

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

Examples of org.onebusaway.transit_data_federation.impl.otp.OBAStateEditor.incrementInitialWaitTime()

    edit.incrementWeight(w);
    edit.setTime(time);

    if (s0.getNumBoardings() == 0)
      edit.incrementInitialWaitTime(dwellTime * 1000);

    State r = edit.makeState();
    results = r.addToExistingResultChain(results);

    return results;
View Full Code Here

Examples of org.onebusaway.transit_data_federation.impl.otp.OBAStateEditor.incrementInitialWaitTime()

    int dwellTime = (int) ((toTime - time) / 1000);
    double w = ItineraryWeightingLibrary.computeWeightForWait(s0, dwellTime);
    edit.incrementWeight(w);

    if (s0.getNumBoardings() == 0)
      edit.incrementInitialWaitTime(dwellTime * 1000);

    State r = edit.makeState();
    results = r.addToExistingResultChain(results);

    return results;
View Full Code Here

Examples of org.onebusaway.transit_data_federation.impl.otp.OBAStateEditor.incrementInitialWaitTime()

    int dwellTime = (int) ((departureTime - time) / 1000);
    double w = ItineraryWeightingLibrary.computeWeightForWait(s0, dwellTime);

    if (s0.getNumBoardings() == 0)
      edit.incrementInitialWaitTime(dwellTime * 1000);

    edit.appendTripSequence(instance.getBlockTrip());
    edit.incrementWeight(w);

    return edit.makeState();
View Full Code Here

Examples of org.onebusaway.transit_data_federation.impl.otp.OBAStateEditor.incrementInitialWaitTime()

    double w = transferWeight
        + ItineraryWeightingLibrary.computeWeightForWait(s0, dwellTime);
    edit.incrementWeight(w);

    if (s0.getNumBoardings() == 0)
      edit.incrementInitialWaitTime(dwellTime * 1000);

    edit.appendTripSequence(instance.getStopTime().getTrip());

    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.