OLD | NEW |
1 #ifndef PREF_EVALUATOR_H | 1 #ifndef PREF_EVALUATOR_H |
2 #define PREF_EVALUATOR_H | 2 #define PREF_EVALUATOR_H |
3 | 3 |
4 #include "scalar_evaluator.h" | 4 #include "scalar_evaluator.h" |
5 | 5 |
6 #include <string> | 6 #include <string> |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 | 9 |
10 class PrefEvaluator : public ScalarEvaluator { | 10 class PrefEvaluator : public ScalarEvaluator { |
11 private: | 11 private: |
12 bool value_preferred; | 12 bool value_preferred; |
13 | 13 protected: |
| 14 void evaluate(int g, bool preferred); |
| 15 bool is_last_evaluated_dead_end() const; |
| 16 int get_last_evaluated_value() const; |
14 public: | 17 public: |
15 PrefEvaluator(); | 18 PrefEvaluator(); |
16 ~PrefEvaluator(); | 19 ~PrefEvaluator(); |
17 | 20 |
18 void evaluate(int g, bool preferred); | |
19 bool is_dead_end() const; | |
20 bool dead_end_is_reliable() const; | 21 bool dead_end_is_reliable() const; |
21 int get_value() const; | |
22 void get_involved_heuristics(std::set<Heuristic *> &) {return; } | 22 void get_involved_heuristics(std::set<Heuristic *> &) {return; } |
23 }; | 23 }; |
24 | 24 |
25 #endif | 25 #endif |
OLD | NEW |