Symphony 1.0
|
#include <simple_maze.h>
Public Member Functions | |
MazeProblem () | |
~MazeProblem () | |
bool | goal_test (State *state) override |
Tests if a given state satisfies the goal condition. | |
std::vector< std::shared_ptr< Action > > | actions (std::shared_ptr< State > state) override |
Retrieves the set of actions applicable to a given state. | |
double | heuristic (State *state) override |
Computes a heuristic estimate for a given state. | |
Public Member Functions inherited from Problem | |
Problem () | |
Constructor for the Problem class. | |
virtual | ~Problem () |
Virtual destructor for the Problem class. | |
virtual State * | initial_state () |
Retrieves the initial state of the problem. | |
Additional Inherited Members | |
Public Attributes inherited from Problem | |
State * | initial_state_ |
Pointer to the initial state of the problem. | |
Definition at line 57 of file simple_maze.h.
|
inline |
Definition at line 59 of file simple_maze.h.
References Problem::initial_state_.
|
inline |
Definition at line 62 of file simple_maze.h.
|
inlineoverridevirtual |
Retrieves the set of actions applicable to a given state.
This method must be implemented by the user to define the available actions for a specific state.
state | The current state. |
Implements Problem.
Definition at line 69 of file simple_maze.h.
References actions().
Referenced by actions().
|
inlineoverridevirtual |
Tests if a given state satisfies the goal condition.
This method must be implemented by the user to define the goal state criteria.
state | The state to test. |
Implements Problem.
Definition at line 64 of file simple_maze.h.
References MazeState::maze.
|
inlineoverridevirtual |
Computes a heuristic estimate for a given state.
This method must be implemented by the user to define a heuristic function for the problem.
state | The state for which to compute the heuristic. |
Implements Problem.
Definition at line 96 of file simple_maze.h.