org.jscience.computing.ai.planning
Class Planner

java.lang.Object
  extended by org.jscience.computing.ai.planning.Planner

public class Planner
extends java.lang.Object

This class is the implementation of the Planner algorithm.


Constructor Summary
Planner()
           
 
Method Summary
static java.util.LinkedList findPlans(TaskList tasksIn, boolean findAll)
          This function finds plan(s) for a given initial task list.
static Domain getDomain()
          This function returns the planning domain.
static State getState()
          This function returns the current state of the world.
static void initialize(Domain domainIn, State stateIn)
          This function is used to initialize the planning algorithm.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Planner

public Planner()
Method Detail

findPlans

public static java.util.LinkedList findPlans(TaskList tasksIn,
                                             boolean findAll)
This function finds plan(s) for a given initial task list.

Parameters:
tasksIn - the initial task list to be achieved.
findAll - true if the function is to return all the possible plans, false if the function is to return only the the first plan found.
Returns:
0 or more plans that achieve the given task list.

getDomain

public static Domain getDomain()
This function returns the planning domain.

Returns:
the current planning domain.

getState

public static State getState()
This function returns the current state of the world.

Returns:
the current state of the world.

initialize

public static void initialize(Domain domainIn,
                              State stateIn)
This function is used to initialize the planning algorithm.

Parameters:
domainIn - the planning domain.
stateIn - the initial state of the world.