|
|||||||||
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.TailPlan
Represents the part of the plan generated by backward chaining from the goal.
Field Summary | |
private java.util.Set |
applicableOps
the actions in the plan that can be applied, i.e. |
private java.util.Set |
expandableNodes
the nodes that have yet to be expanded (used for expanding nodes) |
private java.util.Map |
literalToGoalNodeMap
mapping from literals to goal node that considers them (used for repeated goal detection, updating the set of applicable ops, and updating maintainance goals) |
private java.util.Set |
maintainanceGoals
the goals that have been achieved that are preconditions of operators in the tail plan that haven't been applied yet (used for noticing when replanning to achieve preconditions is necessary) |
private PlanDAG |
planDAG
The graph representing the operators and goals in the tail plan. |
Constructor Summary | |
TailPlan()
Construct an empty tail plan. |
Method Summary | |
boolean |
applyOp(ActionNode action_node,
ChangeTracker change_tracker)
Apply the action specified to the current state. |
boolean |
expandGoalNode(GoalNode goal_node,
PlannerActionSchema op,
ChangeTracker change_tracker)
Expand the goal node with the given operator. |
boolean |
expandOpNode(OpNode op_node,
Binding binding,
ChangeTracker change_tracker)
Expand the op node with the given binding. |
java.util.Map |
getLiteralToGoalNodeMap()
Gets the mapping from literals to goal nodes |
void |
initialize(GoalNode goal)
Initialize the tail plan with the given goal acting as the root. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private PlanDAG planDAG
private java.util.Set expandableNodes
private java.util.Set maintainanceGoals
private java.util.Map literalToGoalNodeMap
private java.util.Set applicableOps
Constructor Detail |
public TailPlan()
Method Detail |
public void initialize(GoalNode goal)
goal
- the goal to achievepublic boolean expandGoalNode(GoalNode goal_node, PlannerActionSchema op, ChangeTracker change_tracker)
goal_node
- the node to expandop
- the operator to usechange_tracker
- where to record the changespublic boolean expandOpNode(OpNode op_node, Binding binding, ChangeTracker change_tracker)
op_node
- the operator node to expandbinding
- the binding to usechange_tracker
- where to track the changespublic boolean applyOp(ActionNode action_node, ChangeTracker change_tracker)
action_node
- the action to applychange_tracker
- where to track the changespublic java.util.Map getLiteralToGoalNodeMap()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |