Classes | Public Member Functions | Protected Types | Protected Member Functions | Private Types | Private Attributes
Heuristic Class Reference

#include <heuristic.h>

Inheritance diagram for Heuristic:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

Definition at line 10 of file heuristic.h.


Member Enumeration Documentation

anonymous enum [private]
Enumerator:
NOT_INITIALIZED 

Definition at line 12 of file heuristic.h.

anonymous enum [protected]
Enumerator:
DEAD_END 

Definition at line 37 of file heuristic.h.


Constructor & Destructor Documentation

Definition at line 6 of file heuristic.cpp.

Heuristic::~Heuristic ( ) [virtual]

Definition at line 12 of file heuristic.cpp.


Member Function Documentation

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.

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.

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.


Member Data Documentation

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.


The documentation for this class was generated from the following files:


tfd_modules
Author(s): Maintained by Christian Dornhege (see AUTHORS file).
autogenerated on Mon Oct 6 2014 07:52:06