Skip to content

PDDL.java

RukNdf edited this page Mar 16, 2021 · 5 revisions

pddl object.

Methods

boolean goalAchieved()

Tests if the goal has been achieved in the current state.

void fixPlanCase()

Fixes case differences between the plan and the domain actions and problem objects.

Object[] tryPlan(boolean print)

Tries to apply the plan and returns an object with the result. If print is true it prints each action to the terminal.

  • Null -----------------------> All actions were applied successfully.
  • [Action | Null] ------------> Action "Action" was invalid.
  • [Action | [pList | nList]] ---> Action "Action" wasn't applicable, second object is a pair of two lists, the list of all positive requirements not present in the current state, and all the negative requirements present.

void planTest()

Verbose tryPlan, prints errors to the terminal.

void valOut(String outN)

Generates a LaTeX file [outN] based on the hardcoded template file [String template] (by default it points to the "template" file). By default the file contains the name of the problem, domain, files, and a report on the plan.

void printDomain()

Prints the domain.

void printProbPl()

Prints the problem and plan.

void printState()

Prints the current state.

Clone this wiki locally