Package fr.uga.pddl4j.parser


package fr.uga.pddl4j.parser
This package contains the classes of the PDDL parser. The parser accepts PDDL3.0 language and HDDL extension. See BNF Description of PDDL3.0 implemented in the library more details. Note this code is automatically generated with javacc 4.0.

A simple example of how to use the parser:

 public static void main(String[] args) {

  if (args.length == 2 && args[0].equals("-p")) {
      Parser parser = new Parser();
      try {
          parser.parse(args[1]);
        } catch (FileNotFoundException e) {
          System.out.println(e.getMessage());
        }
      if (!parser.getErrorManager().isEmpty()) {
          parser.getErrorManager().printAll();
      }
  } else if (args.length == 4 && args[0].equals("-o") && args[2].equals("-f")) {
    Parser parser = new Parser();
    try {
          parser.parse(args[1], args[3]);
        } catch (FileNotFoundException e) {
          System.out.println(e.getMessage());
        }
      if (!parser.getErrorManager().isEmpty()) {
          parser.mgr.printAll();
        }
    } else {
      System.out.println("\nusage of parser:\n");
      System.out.println("OPTIONS   DESCRIPTIONS\n");
      System.out.println("-p <str>    path for operator and fact file");
      System.out.println("-o <str>    operator file name");
      System.out.println("-f <str>    fact file name\n");
    }
 }
 
  • Interface Summary
    Interface
    Description
    This interface defines the methods of all locatable object.
    This interface defined the methods of a planning domain read by the parser.
    This interface implements the common methods of all object produced by the parser.
    This interface defines the methods of all planning operators.
    This interface defines the methods of a planning problem read by the parser.
  • Class Summary
    Class
    Description
    This abstract class implements the common methods of all object produced by the parser.
    This class implements a parsed problem.
    This class implements the error manager used by the parser and java PDDL compiler.
    This class implements an expression.
    This abstract class implements the common methods of all object produced by the parser.
    This class implements an error message that may generated by the parser.
    This class is used to to parse in the atomic formula skeleton and atomic function skeleton.
    This class defines an abstract planning operator.
    This class implements a planning operator parsed.
    This class implements a derived predicate of the PDDL 3.0 language.
    This class implements a method for htn planning operator parsed.
    This class implements a task network.
    Implements the Parser of the PDD4L library.
    This class implements the symbols manipulated by the parser and by the instantiation process.
    This interface defines the interface of the typed symbols.
  • Enum Class Summary
    Enum Class
    Description
    This enumeration defines the connective that can be used in PDDL expressions implemented by the class Expression.
    This enumeration defines the type of message log in the error manager.
    This enumeration defines the set of PDDL require key.
    The enumeration used to specified the different types of the symbol.
    This enumeration defines the time specifier that can be used in PDDL expressions.
  • Exception Summary
    Exception
    Description
    Thrown to indicate that a malformed expression is occurred.
    Exception use for issues with unexpected expression occurs.