|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectJSHOP2.JSHOP2
public class JSHOP2
This class is the implementation of the JSHOP2 algorithm.
Field Summary | |
---|---|
private static Plan |
currentPlan
The plan currently being constructed. |
private static Domain |
domain
The domain description for the planning problem. |
private static int |
numPlans
Incremented whenever a plan is found. |
private static int |
planNo
The maximum number of plans to be returned. |
private static java.util.LinkedList<Plan> |
plans
The plans are stored in this variable as a list of type Plan . |
private static java.util.ArrayList<PlanStepInfo> |
planStepList
An ArrayList that represents the steps taken to find every
plan. |
private static State |
state
The current state of the world. |
private static TaskList |
tasks
The task list to be achieved. |
Constructor Summary | |
---|---|
JSHOP2()
|
Method Summary | |
---|---|
private static boolean |
findPlanHelper(TaskList chosenTask)
This is the helper function that finds a plan. |
static java.util.LinkedList<Plan> |
findPlans(TaskList tasksIn,
int planNoIn)
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 |
Field Detail |
---|
private static Plan currentPlan
private static Domain domain
private static int planNo
private static java.util.LinkedList<Plan> plans
Plan
.
private static State state
private static TaskList tasks
private static java.util.ArrayList<PlanStepInfo> planStepList
ArrayList
that represents the steps taken to find every
plan.
private static int numPlans
Constructor Detail |
---|
public JSHOP2()
Method Detail |
---|
public static java.util.LinkedList<Plan> findPlans(TaskList tasksIn, int planNoIn)
tasksIn
- the initial task list to be achieved.planNoIn
- the maximum number of plans to be returned.
private static boolean findPlanHelper(TaskList chosenTask)
chosenTask
- the task list chosen to look for the next task atom to achieve.
This variable is usually set to the whole task network unless
there is a method that is chosen to decomopose a task, and the
decomposition of that task has not gone all the way down to an
operator. In that case, this variable will be set to the task
decomposed by that method.
true
if a plan is found, false
otherwise.public static Domain getDomain()
public static State getState()
public static void initialize(Domain domainIn, State stateIn)
domainIn
- the planning domain.stateIn
- the initial state of the world.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |