|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.cmu.cs.coral.icf.plan_based.planners.pip.PIPPlanGenerator
Generates plan for the Prodigy Inspired Planner (PIP). This class implements the guts of the algrithm
Field Summary | |
private java.util.Stack |
backtrackPoints
the decisions that have been made so far (used for backtracking) |
private Choice |
lastChoice
the last choice that was made |
private PIPPlan |
plan
the current plan |
Constructor Summary | |
PIPPlanGenerator()
Construct a PIPPlanGenerator |
Method Summary | |
private java.util.Iterator |
genChoices()
Generates the choices that can be used for the next decision. |
private void |
preprocess(PlannerDomain domain,
PlannerProblem problem)
Preprocess the domain and problem to be used by the planning algorithm |
private PIPPlan |
search(PlannerDomain domain,
PlannerProblem problem)
Finds a plan that solves the problem if one exists |
PIPPlan |
solve(PlannerDomain domain,
PlannerProblem problem)
Solve a planning problem. |
private boolean |
tryBindingSelection(OpNodeExpansionChoice op_choice,
BindingSelectionChoice binding_choice,
ChangeTracker change_tracker)
Tries to expand the op node chosen with the variable binding chosen. |
private boolean |
tryChoice(Choice choice,
ChangeTracker change_tracker)
Tries to execute the choice that was made. |
private boolean |
tryGoalNodeExpansion(GoalNodeExpansionChoice choice,
ChangeTracker change_tracker)
Tries to expand the given goal node. |
private boolean |
tryNextAlternative(Decision decision)
Tries the next altenative remaining at this decision point. |
private boolean |
tryOpApplication(OpApplicationChoice choice,
ChangeTracker change_tracker)
Tries to apply the operator specified by this choice. |
private boolean |
tryOpNodeExpansion(OpNodeExpansionChoice choice,
ChangeTracker change_tracker)
Tries to expand the given op node. |
private boolean |
tryOpSelection(GoalNodeExpansionChoice goal_choice,
OperatorSelectionChoice op_choice,
ChangeTracker change_tracker)
Tries to expand the goal node chosen with the operator chosen. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private java.util.Stack backtrackPoints
private PIPPlan plan
private Choice lastChoice
Constructor Detail |
public PIPPlanGenerator()
Method Detail |
public PIPPlan solve(PlannerDomain domain, PlannerProblem problem)
domain
- the domain to useproblem
- the problem to solveprivate void preprocess(PlannerDomain domain, PlannerProblem problem)
domain
- the domain to useproblem
- the problem to useprivate PIPPlan search(PlannerDomain domain, PlannerProblem problem)
domain
- the domain to useproblem
- the problem to useprivate java.util.Iterator genChoices()
private boolean tryNextAlternative(Decision decision)
decision
- the decision point to try the next alternative forprivate boolean tryChoice(Choice choice, ChangeTracker change_tracker)
choice
- the option to trychange_tracker
- the change tracker to track changes to the plan withprivate boolean tryOpApplication(OpApplicationChoice choice, ChangeTracker change_tracker)
choice
- the op application choice madechange_tracker
- the change tracker to track changes to the plan withprivate boolean tryGoalNodeExpansion(GoalNodeExpansionChoice choice, ChangeTracker change_tracker)
choice
- the goal node chosen to be expandedchange_tracker
- the change tracker to track changes to the plan withprivate boolean tryOpNodeExpansion(OpNodeExpansionChoice choice, ChangeTracker change_tracker)
choice
- the op node chosen to be expandedchange_tracker
- the change tracker to track changes to the plan withprivate boolean tryOpSelection(GoalNodeExpansionChoice goal_choice, OperatorSelectionChoice op_choice, ChangeTracker change_tracker)
goal_choice
- the choice of goal nodeop_choice
- the choice of operatorchange_tracker
- the change tracker to track changes to the plan withprivate boolean tryBindingSelection(OpNodeExpansionChoice op_choice, BindingSelectionChoice binding_choice, ChangeTracker change_tracker)
op_choice
- the operator chosen for expansionbinding_choice
- the binding chosenchange_tracker
- the change tracker to track changes to the plan with
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |