#include <heuristic.h>
Classes | |
struct | EvaluationInfo |
Public Member Functions | |
virtual bool | dead_ends_are_reliable () |
double | evaluate (const TimeStampedState &state) |
double | get_heuristic () |
unsigned long | get_num_computations () const |
void | get_preferred_operators (std::vector< const Operator * > &result) |
double | get_waiting_time () |
Heuristic () | |
bool | is_dead_end () |
void | set_preferred (const Operator *op) |
void | set_waiting_time (double time_increment) |
virtual | ~Heuristic () |
Protected Types | |
enum | { DEAD_END = -1 } |
Protected Member Functions | |
virtual double | compute_heuristic (const TimeStampedState &state)=0 |
virtual void | initialize () |
Private Types | |
enum | { NOT_INITIALIZED = -2 } |
Private Attributes | |
double | heuristic |
unsigned long | num_computations |
For stats, how ofter was compute_heuristic called. | |
std::vector< const Operator * > | preferred_operators |
double | waiting_time |
Definition at line 10 of file heuristic.h.
anonymous enum [private] |
Definition at line 12 of file heuristic.h.
anonymous enum [protected] |
Definition at line 37 of file heuristic.h.
Definition at line 6 of file heuristic.cpp.
Heuristic::~Heuristic | ( | ) | [virtual] |
Definition at line 12 of file heuristic.cpp.
virtual double Heuristic::compute_heuristic | ( | const TimeStampedState & | state | ) | [protected, pure virtual] |
Implemented in CyclicCGHeuristic, and NoHeuristic.
virtual bool Heuristic::dead_ends_are_reliable | ( | ) | [inline, virtual] |
Reimplemented in CyclicCGHeuristic, and NoHeuristic.
Definition at line 56 of file heuristic.h.
double Heuristic::evaluate | ( | const TimeStampedState & | state | ) |
Definition at line 32 of file heuristic.cpp.
double Heuristic::get_heuristic | ( | ) |
Definition at line 68 of file heuristic.cpp.
unsigned long Heuristic::get_num_computations | ( | ) | const [inline] |
Definition at line 60 of file heuristic.h.
void Heuristic::get_preferred_operators | ( | std::vector< const Operator * > & | result | ) |
Definition at line 77 of file heuristic.cpp.
double Heuristic::get_waiting_time | ( | ) | [inline] |
Definition at line 68 of file heuristic.h.
virtual void Heuristic::initialize | ( | ) | [inline, protected, virtual] |
Reimplemented in CyclicCGHeuristic, and NoHeuristic.
Definition at line 41 of file heuristic.h.
bool Heuristic::is_dead_end | ( | ) |
Definition at line 63 of file heuristic.cpp.
void Heuristic::set_preferred | ( | const Operator * | op | ) |
Definition at line 16 of file heuristic.cpp.
void Heuristic::set_waiting_time | ( | double | time_increment | ) | [inline] |
Definition at line 63 of file heuristic.h.
double Heuristic::heuristic [private] |
Definition at line 16 of file heuristic.h.
unsigned long Heuristic::num_computations [private] |
For stats, how ofter was compute_heuristic called.
Definition at line 34 of file heuristic.h.
std::vector<const Operator *> Heuristic::preferred_operators [private] |
Definition at line 17 of file heuristic.h.
double Heuristic::waiting_time [private] |
Definition at line 18 of file heuristic.h.