Go to the documentation of this file.
10 #ifndef SFBDPANCAKEPUZZLE_H
11 #define SFBDPANCAKEPUZZLE_H
38 out <<
"[" <<
loc.start <<
", " <<
loc.goal <<
"]";
81 fprintf(stderr,
"ERROR: Single State HCost not implemented for SFBDPancakeEnvironment\n");
82 exit(1);
return -1.0;}
85 fprintf(stderr,
"ERROR: Single State Goal Test not implemented for SFBDPancakeEnvironment\n");
86 exit(1);
return false;
virtual void OpenGLDraw() const
virtual void ClearGoal()
Clears the goal from memory.
SFBDPancakeEnvironment(int theSize)
virtual bool IsGoalStored() const
virtual uint64_t GetActionHash(pancakeMovePair act) const
virtual void GetActions(const pancakeStatePair &stateID, std::vector< pancakeMovePair > &actions) const
virtual double HCost(const pancakeStatePair &state1, const pancakeStatePair &state2) const
Heuristic value between two arbitrary nodes.
static bool operator==(const pancakeMovePair &l1, const pancakeMovePair &l2)
virtual double GCost(const pancakeStatePair &state1, const pancakeStatePair &state2) const
virtual void OpenGLDraw(const pancakeStatePair &s, const pancakeStatePair &, float) const
Draw the transition at some percentage 0...1 between two states.
int MeasureLocalHeuristic(const BurnedPancakePuzzleState &a, const BurnedPancakePuzzleState &b) const
virtual uint64_t GetStateHash(const pancakeStatePair &state) const
BurnedPancakePuzzleState goal
virtual bool GoalTest(const pancakeStatePair &state, const pancakeStatePair &goal) const
OccupancyInterface< pancakeStatePair, pancakeMovePair > * GetOccupancyInfo()
virtual bool GoalTest(const pancakeStatePair &) const
Goal Test if the goal is stored.
virtual void ApplyAction(pancakeStatePair &s, pancakeMovePair a) const
BurnedPancakePuzzleState start
pancakeMovePair(uint16_t act, bool start)
virtual void GetSuccessors(const pancakeStatePair &stateID, std::vector< pancakeStatePair > &neighbors) const
static std::ostream & operator<<(std::ostream &out, const pancakeStatePair &loc)
virtual pancakeMovePair GetAction(const pancakeStatePair &s1, const pancakeStatePair &s2) const
virtual ~SFBDPancakeEnvironment()
virtual double HCost(const pancakeStatePair &) const
Heuristic value between node and the stored goal.
pancakeStatePair(BurnedPancakePuzzleState s, BurnedPancakePuzzleState g)
BurnedPancakePuzzle * pan
virtual void StoreGoal(pancakeStatePair &)
Stores the goal for use by single-state HCost.
virtual bool InvertAction(pancakeMovePair &a) const