Package edu.uky.ai.planning
Class Result
java.lang.Object
edu.uky.ai.planning.Result
A result contains information about how and why a search succeeded or failed.
- Author:
- Stephen G. Ware
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intThe number of nodes generated during the searchfinal Planner<?>The planner that performed the searchfinal ProblemThe problem being solvedfinal StringA brief, human-readable explanation of the resultsfinal PlanThe plan, or null if the search failedfinal booleanWhether or not the search was successfulfinal longThe amount of time the search took (in milliseconds)final intThe number of nodes visited during the search -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
planner
The planner that performed the search -
problem
The problem being solved -
success
public final boolean successWhether or not the search was successful -
solution
The plan, or null if the search failed -
reason
A brief, human-readable explanation of the results -
visited
public final int visitedThe number of nodes visited during the search -
generated
public final int generatedThe number of nodes generated during the search -
time
public final long timeThe amount of time the search took (in milliseconds)
-
-
Constructor Details
-
Result
public Result(Planner<?> planner, Problem problem, Plan solution, String reason, int visited, int generated, long time) Constructs a new result object.- Parameters:
planner- the planner usedproblem- the problem being solvedsolution- the plan (possibly null)reason- the explanation of resultsvisited- the number of nodes visitedgenerated- the number of nodes generatedtime- the amount of time spent searching (in milliseconds)
-
-
Method Details