no_heuristic.cpp
Go to the documentation of this file.
00001 #include "no_heuristic.h"
00002 
00003 #include "globals.h"
00004 #include "operator.h"
00005 #include "state.h"
00006 
00007 using namespace std;
00008 
00009 void NoHeuristic::initialize()
00010 {
00011     cout << "Initializing no heuristic..." << endl;
00012 }
00013 
00014 double NoHeuristic::compute_heuristic(const TimeStampedState &state)
00015 {
00016     if(state.satisfies(g_goal) && state.scheduled_effects.empty())
00017         return 0.0;
00018 
00019     return (state.timestamp + 1.0);
00020 
00021     //    return 1;
00022 }


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