AI 24/25 Project Software
Documentation for the AI 24/25 course programming project software
Loading...
Searching...
No Matches
weighted_evaluator.h
1#ifndef EVALUATORS_WEIGHTED_EVALUATOR_H
2#define EVALUATORS_WEIGHTED_EVALUATOR_H
3
4#include "downward/evaluator.h"
5
6#include <memory>
7
8namespace weighted_evaluator {
9class WeightedEvaluator : public Evaluator {
10 std::shared_ptr<Evaluator> evaluator;
11 int weight;
12
13public:
14 WeightedEvaluator(
15 const std::shared_ptr<Evaluator>& eval,
16 int weight,
17 const std::string& description,
18 utils::Verbosity verbosity);
19
20 virtual bool dead_ends_are_reliable() const override;
21 virtual EvaluationResult
22 compute_result(EvaluationContext& eval_context) override;
23 virtual void
24 get_path_dependent_evaluators(std::set<Evaluator*>& evals) override;
25};
26} // namespace weighted_evaluator
27
28#endif