Class DepthFirstSearch
java.lang.Object
fr.uga.pddl4j.planners.statespace.search.AbstractStateSpaceSearch
fr.uga.pddl4j.planners.statespace.search.DepthFirstSearch
- All Implemented Interfaces:
SearchStrategy
,StateSpaceSearch
,Serializable
This class implements Depth First Search strategy.
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from interface fr.uga.pddl4j.planners.SearchStrategy
SearchStrategy.Name
-
Field Summary
Fields inherited from interface fr.uga.pddl4j.planners.statespace.search.StateSpaceSearch
DEFAULT_HEURISTIC, DEFAULT_HEURISTIC_WEIGHT, DEFAULT_TIMEOUT
-
Constructor Summary
ConstructorDescriptionCreates a new Greedy best First Search search strategy with default parameters.DepthFirstSearch(int timeout)
Creates a new Greedy best First Search search strategy. -
Method Summary
Methods inherited from class fr.uga.pddl4j.planners.statespace.search.AbstractStateSpaceSearch
extractPlan, getCreatedNodes, getExploredNodes, getHeuristic, getMemoryUsed, getPendingNodes, getSearchingTime, getTimeout, getWeight, resetNodesStatistics, searchPlan, searchSolutionNode, setCreatedNodes, setExploredNodes, setHeuristic, setMemoryUsed, setPendingNodes, setSearchingTime, setTimeOut, setWeight
-
Constructor Details
-
DepthFirstSearch
public DepthFirstSearch()Creates a new Greedy best First Search search strategy with default parameters. -
DepthFirstSearch
public DepthFirstSearch(int timeout)Creates a new Greedy best First Search search strategy.- Parameters:
timeout
- the time out of the planner.
-
-
Method Details
-
search
The greedy best first search algorithm. Solves the planning problem and returns the first solution plan found. This method must be completed.- Parameters:
codedProblem
- the problem to be solved. The problem cannot be null.- Returns:
- a solution plan or null if it does not exist.
-