Class Main

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

public class Main extends Object
The entry point for the planning application.
Author:
Stephen G. Ware
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    benchmark(Planner<?>[] planners, Problem[] problems, int maxNodes, long maxTime, Writer output)
    Compares the performance of one or more planners on one or more problems.
    static void
    main(String[] args)
    Launches the planning application according to its command line arguments.
    static void
    plan(Planner<?> planner, Problem problem, int maxNodes, long maxTime, Writer output)
    Uses a given planner to solve a given problem.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Main

      public Main()
  • Method Details

    • main

      public static void main(String[] args) throws Exception
      Launches the planning application according to its command line arguments.
      Parameters:
      args - the command line arguments
      Throws:
      Exception - if any uncaught exceptions are thrown
    • plan

      public static void plan(Planner<?> planner, Problem problem, int maxNodes, long maxTime, Writer output) throws IOException
      Uses a given planner to solve a given problem.
      Parameters:
      planner - the planner to use
      problem - the problem to solve
      maxNodes - the maximum nodes that may be visited during search
      maxTime - the maximum milliseconds search may take
      output - where the solution plan will be written (if one is found)
      Throws:
      IOException - if a problem occurs while writing to the output
    • benchmark

      public static void benchmark(Planner<?>[] planners, Problem[] problems, int maxNodes, long maxTime, Writer output) throws IOException
      Compares the performance of one or more planners on one or more problems.
      Parameters:
      planners - the planners to compare
      problems - the problems to solve
      maxNodes - the maximum nodes that a planner may visit when solving a problem
      maxTime - the maximum milliseconds a planner may take when solving a problem
      output - where output will be written in HTML format
      Throws:
      IOException - if a problem occurs while writing to the output