Skip to content

Commit

Permalink
change parameter_names in constructor to match feature
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDold committed Mar 12, 2024
1 parent d2a4882 commit e162e78
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/search/landmarks/landmark_cost_partitioning_heuristic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ using namespace std;
namespace landmarks {
LandmarkCostPartitioningHeuristic::LandmarkCostPartitioningHeuristic(
const shared_ptr<LandmarkFactory> &lm_factory,
bool use_preferred_operators,
bool pref,
bool prog_goal,
bool prog_gn,
bool prog_r,
Expand All @@ -28,7 +28,7 @@ LandmarkCostPartitioningHeuristic::LandmarkCostPartitioningHeuristic(
CostPartitioningMethod cost_partitioning,
bool alm,
lp::LPSolverType lpsolver)
: LandmarkHeuristic(use_preferred_operators, transform, cache_estimates,
: LandmarkHeuristic(pref, transform, cache_estimates,
description, verbosity) {
if (log.is_at_least_normal()) {
log << "Initializing landmark cost partitioning heuristic..." << endl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class LandmarkCostPartitioningHeuristic : public LandmarkHeuristic {
public:
LandmarkCostPartitioningHeuristic(
const std::shared_ptr<LandmarkFactory> &lm_factory,
bool use_preferred_operators,
bool pref,
bool prog_goal,
bool prog_gn,
bool prog_r,
Expand Down
4 changes: 2 additions & 2 deletions src/search/landmarks/landmark_sum_heuristic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ static bool are_dead_ends_reliable(

LandmarkSumHeuristic::LandmarkSumHeuristic(
const shared_ptr<LandmarkFactory> &lm_factory,
bool use_preferred_operators,
bool pref,
bool prog_goal,
bool prog_gn,
bool prog_r,
const shared_ptr<AbstractTask> &transform,
bool cache_estimates,
const string &description,
utils::Verbosity verbosity)
: LandmarkHeuristic(use_preferred_operators, transform, cache_estimates,
: LandmarkHeuristic(pref, transform, cache_estimates,
description, verbosity),
dead_ends_reliable(
are_dead_ends_reliable(
Expand Down
2 changes: 1 addition & 1 deletion src/search/landmarks/landmark_sum_heuristic.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class LandmarkSumHeuristic : public LandmarkHeuristic {
int get_heuristic_value(const State &ancestor_state) override;
public:
LandmarkSumHeuristic(const std::shared_ptr<LandmarkFactory> &lm_factory,
bool use_preferred_operators,
bool pref,
bool prog_goal,
bool prog_gn,
bool prog_r,
Expand Down
4 changes: 2 additions & 2 deletions src/search/operator_counting/pho_constraints.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
using namespace std;

namespace operator_counting {
PhOConstraints::PhOConstraints(const shared_ptr<pdbs::PatternCollectionGenerator> &pattern_generator)
: pattern_generator(pattern_generator) {
PhOConstraints::PhOConstraints(const shared_ptr<pdbs::PatternCollectionGenerator> &patterns)
: pattern_generator(patterns) {
}

void PhOConstraints::initialize_constraints(
Expand Down
2 changes: 1 addition & 1 deletion src/search/operator_counting/pho_constraints.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class PhOConstraints : public ConstraintGenerator {
int constraint_offset;
std::shared_ptr<pdbs::PDBCollection> pdbs;
public:
explicit PhOConstraints(const std::shared_ptr<pdbs::PatternCollectionGenerator> &pattern_generator);
explicit PhOConstraints(const std::shared_ptr<pdbs::PatternCollectionGenerator> &patterns);

virtual void initialize_constraints(
const std::shared_ptr<AbstractTask> &task, lp::LinearProgram &lp) override;
Expand Down

0 comments on commit e162e78

Please sign in to comment.