Package edu.uky.ai.planning.ps
Class PlanSpaceNode
java.lang.Object
edu.uky.ai.planning.ps.PlanSpaceNode
- All Implemented Interfaces:
Partial
- Direct Known Subclasses:
PlanSpaceRoot
This class represents an specific partial plan in a plan-space search.
- Author:
- Stephen G. Ware
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal BindingsThe binding constraints specifying which variables map to which valuesfinal ImmutableList<CausalLink>The causal links describing how step preconditions are satisfiedfinal ImmutableList<Flaw>A list of flaws (if any) that prevent this plan from being a solutionfinal DirectedAcyclicGraph<PartialStep>The constraints on how steps are orderedfinal PlanSpaceNodeThis node's parent (the node of which this node is a refinement)final ImmutableList<PartialStep>The steps in this plan -
Method Summary
Modifier and TypeMethodDescriptionexpand(ImmutableList<PartialStep> steps, Bindings bindings, DirectedAcyclicGraph<PartialStep> orderings, ImmutableList<CausalLink> causalLinks, ImmutableList<Flaw> flaws) Creates a child partial plan node (a node for this this node is the parent) with the given steps, bindings, orderings, causal links, and flaws.getRoot()Returns toroot nodeof this search space.toString()toString(Substitution substitution) Returns a string representation of this object in which all variables which have values in the given substitution have been replaced with those values.
-
Field Details
-
parent
This node's parent (the node of which this node is a refinement) -
steps
The steps in this plan -
bindings
The binding constraints specifying which variables map to which values -
orderings
The constraints on how steps are ordered -
causalLinks
The causal links describing how step preconditions are satisfied -
flaws
A list of flaws (if any) that prevent this plan from being a solution
-
-
Method Details
-
toString
-
toString
Description copied from interface:PartialReturns a string representation of this object in which all variables which have values in the given substitution have been replaced with those values. -
getRoot
Returns toroot nodeof this search space.- Returns:
- the root node
-
expand
public PlanSpaceNode expand(ImmutableList<PartialStep> steps, Bindings bindings, DirectedAcyclicGraph<PartialStep> orderings, ImmutableList<CausalLink> causalLinks, ImmutableList<Flaw> flaws) Creates a child partial plan node (a node for this this node is the parent) with the given steps, bindings, orderings, causal links, and flaws.- Parameters:
steps- the steps in the child planbindings- the bindings in the child planorderings- the orderings between steps in the child plancausalLinks- the causal links in the child planflaws- the flaws in the child plan- Returns:
- a child partial plan node
-