20 package ch.sbb.matsim.routing.pt.raptor;
22 import java.util.function.Supplier;
36 return (
calcSingleTransferCost(transferCostBase+transferCostModeToMode, transferCostPerHour, transferCostMin, transferCostMax, totalTravelTime) * transferCount) - existingTransferCosts;
39 private double calcSingleTransferCost(
double costBase,
double costPerHour,
double costMin,
double costMax,
double travelTime) {
40 double cost = costBase + costPerHour / 3600 * travelTime;
41 double max = Math.max(costMin, costMax);
42 double min = Math.min(costMin, costMax);
double calcTransferCost(SwissRailRaptorCore.PathElement currentPE, Supplier< Transfer > transfer, RaptorStaticConfig staticConfig, RaptorParameters raptorParams, int totalTravelTime, int transferCount, double existingTransferCosts, double currentTime)
double getTransferPenaltyMinimum()
double getTransferPenaltyPerTravelTimeHour()
boolean isUseModeToModeTransferPenalty()
double getTransferPenaltyFixCostPerTransfer()
double getModeToModeTransferPenalty(String fromMode, String toMode)
double calcSingleTransferCost(double costBase, double costPerHour, double costMin, double costMax, double travelTime)
double getTransferPenaltyMaximum()