public class DepthFirstSearch extends java.lang.Object implements SearchForActions, SearchForStates
| Constructor and Description |
|---|
DepthFirstSearch(QueueSearch impl) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Action> |
findActions(Problem p)
Returns a list of actions to the goal if the goal was found, a list
containing a single NoOp Action if already at the goal, or an empty list
if the goal could not be found.
|
java.lang.Object |
findState(Problem p)
Returns a state which is might be but not necessary is a goal state of
the problem.
|
Metrics |
getMetrics()
Returns all the metrics of the search.
|
NodeExpander |
getNodeExpander()
Returns the node expander used by the search.
|
public DepthFirstSearch(QueueSearch impl)
public java.util.List<Action> findActions(Problem p)
SearchForActionsfindActions in interface SearchForActionsp - the search problempublic java.lang.Object findState(Problem p)
SearchForStatesfindState in interface SearchForStatesp - the search problempublic NodeExpander getNodeExpander()
SearchForActionsgetNodeExpander in interface SearchForActionsgetNodeExpander in interface SearchForStatespublic Metrics getMetrics()
SearchForActionsgetMetrics in interface SearchForActionsgetMetrics in interface SearchForStates