Skip to content

Commit

Permalink
Rename parameters in PathConfig to "includeC1Cost"
Browse files Browse the repository at this point in the history
  • Loading branch information
bartosz committed Jul 24, 2023
1 parent 06ea8e2 commit 8e52f5c
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,21 @@ public PathConfig(SearchContext<T> context) {

/**
* Create a new {@link DestinationArrivalPaths}.
* @param includeGeneralizedCost whether to include generalized cost in the pareto set criteria.
* @param includeC1Cost whether to include generalized cost in the pareto set criteria.
* It will be generated for each leg and a total for the path.
* @param includeC2Cost whether to include c2 cost in the pareto set criteria.
* It will be generated for each leg and a total for the path.
*/
public DestinationArrivalPaths<T> createDestArrivalPaths(
boolean includeGeneralizedCost,
boolean includeC1Cost,
boolean includeC2Cost
) {
return new DestinationArrivalPaths<>(
createPathParetoComparator(includeGeneralizedCost, includeC2Cost),
createPathParetoComparator(includeC1Cost, includeC2Cost),
ctx.calculator(),
includeGeneralizedCost ? ctx.costCalculator() : null,
includeC1Cost ? ctx.costCalculator() : null,
ctx.slackProvider(),
createPathMapper(includeGeneralizedCost),
createPathMapper(includeC1Cost),
ctx.debugFactory(),
ctx.stopNameResolver(),
ctx.lifeCycle()
Expand Down

0 comments on commit 8e52f5c

Please sign in to comment.