Package edu.uky.ai.planning
Class Main
java.lang.Object
edu.uky.ai.planning.Main
The entry point for the planning application.
- Author:
- Stephen G. Ware
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidCompares the performance of one or more planners on one or more problems.static voidLaunches the planning application according to its command line arguments.static voidUses a given planner to solve a given problem.
-
Constructor Details
-
Main
public Main()
-
-
Method Details
-
main
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 useproblem- the problem to solvemaxNodes- the maximum nodes that may be visited during searchmaxTime- the maximum milliseconds search may takeoutput- 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 compareproblems- the problems to solvemaxNodes- the maximum nodes that a planner may visit when solving a problemmaxTime- the maximum milliseconds a planner may take when solving a problemoutput- where output will be written in HTML format- Throws:
IOException- if a problem occurs while writing to the output
-