Class PFD

All Implemented Interfaces:
HTNPlanner, STNPlanner, Planner, Serializable, Callable<Integer>

public final class PFD extends AbstractSTNPlanner
This class implement a simple task network planner enable to deal with partial ordered htn representation. The search method is an implementation of the partial order STN procedure describes in the book of Automated Planning of Ghallab and al. page 243.
 
 PFD [-hiV] [-l=<logLevel>] [-t=<timeout>] <domain> <problem>

 Description:

 Solves a specified planning problem using a Partial-order Forward Decomposition
 strategy.

 Parameters:
       <domain>              The domain file.
       <problem>             The problem file.

 Options:
   -t, --timeout=<timeout>   Set the time out of the planner in seconds (preset
                               600s).
   -l, --log=<logLevel>      Set the level of trace of the planner: ALL, DEBUG,
                               INFO, ERROR, FATAL, OFF, TRACE (preset INFO).
   -i, --interactive         Set the planner in interactive mode for debug
   -h, --help                Show this help message and exit.
   -V, --version             Print version information and exit.
 
 

Commande line example:

 
     java -cp build/libs/pddl4j-4.0-all.jar fr.uga.pddl4j.planners.htn.stn.PFDPlanner
          src/test/resources/benchmarks/hddl/ipc2020/barman/domain.hddl
          src/test/resources/benchmarks/hddl/ipc2020/barman/p01.hddl
 
 
Since:
4.0
See Also:
PlannerConfiguration, Serialized Form
  • Constructor Details

    • PFD

      public PFD()
      Creates a new planner with a default configuration.
    • PFD

      public PFD(PlannerConfiguration configuration)
      Creates a new abstract STN planner with the default configuration.
      Parameters:
      configuration - the configuration of the planner.
  • Method Details

    • solve

      public Plan solve(Problem problem) throws ProblemNotSupportedException
      Solves the planning problem and returns the first solution search found. The search method is an implementation of the partial order STN procedure describes in the book of Automated Planning of Ghallab and al. page 243.
      Parameters:
      problem - the problem to be solved.
      Returns:
      a solution search or null if it does not exist.
      Throws:
      ProblemNotSupportedException - if the problem to solve is not supported by the planner.
    • main

      public static void main(String[] args)
      The main method of the PFD planner.
      Parameters:
      args - the arguments of the command line.