Class Result

java.lang.Object
edu.uky.ai.planning.Result

public class Result extends Object
A result contains information about how and why a search succeeded or failed.
Author:
Stephen G. Ware
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final int
    The number of nodes generated during the search
    final Planner<?>
    The planner that performed the search
    final Problem
    The problem being solved
    final String
    A brief, human-readable explanation of the results
    final Plan
    The plan, or null if the search failed
    final boolean
    Whether or not the search was successful
    final long
    The amount of time the search took (in milliseconds)
    final int
    The number of nodes visited during the search
  • Constructor Summary

    Constructors
    Constructor
    Description
    Result(Planner<?> planner, Problem problem, Plan solution, String reason, int visited, int generated, long time)
    Constructs a new result object.
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • planner

      public final Planner<?> planner
      The planner that performed the search
    • problem

      public final Problem problem
      The problem being solved
    • success

      public final boolean success
      Whether or not the search was successful
    • solution

      public final Plan solution
      The plan, or null if the search failed
    • reason

      public final String reason
      A brief, human-readable explanation of the results
    • visited

      public final int visited
      The number of nodes visited during the search
    • generated

      public final int generated
      The number of nodes generated during the search
    • time

      public final long time
      The 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 used
      problem - the problem being solved
      solution - the plan (possibly null)
      reason - the explanation of results
      visited - the number of nodes visited
      generated - the number of nodes generated
      time - the amount of time spent searching (in milliseconds)
  • Method Details