All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentripplanner.routing.api.request.TransferOptimizationRequest Maven / Gradle / Ivy

package org.opentripplanner.routing.api.request;

import org.opentripplanner.routing.algorithm.transferoptimization.api.TransferOptimizationParameters;
import org.opentripplanner.util.OTPFeature;

public class TransferOptimizationRequest implements TransferOptimizationParameters {
  public boolean optimizeTransferWaitTime = true;
  public double minSafeWaitTimeFactor = 5.0;
  public double backTravelWaitTimeFactor = 1.0;
  public double extraStopBoardAlightCostsFactor = 0.0;

  @Override
  public boolean optimizeTransferPriority() {
    return OTPFeature.TransferConstraints.isOn();
  }

  @Override
  public boolean optimizeTransferWaitTime() {
    return optimizeTransferWaitTime;
  }

  @Override
  public double backTravelWaitTimeFactor() {
    return backTravelWaitTimeFactor;
  }

  @Override
  public double minSafeWaitTimeFactor() {
    return minSafeWaitTimeFactor;
  }

  @Override
  public double extraStopBoardAlightCostsFactor() {
    return extraStopBoardAlightCostsFactor;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy