Package edu.uky.ai.planning.ps
Class PartialStep
java.lang.Object
edu.uky.ai.planning.ps.PartialStep
- All Implemented Interfaces:
Partial
This class represents a step in a partial plan. A partial step is like an
Operator
because it has parameters, and
like a Step
because those parameters will
eventually all be ground in specific values from the bindings of a partial
plan.- Author:
- Stephen G. Ware
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ImmutableArray<Literal>
An array of this step's effectsfinal Operator
The operator of which this step is an instance (or null if this step is not an instance of any operator)final ImmutableArray<Variable>
All the variables used in this stepfinal ImmutableArray<Literal>
An array of this step's preconditions -
Constructor Summary
ConstructorsConstructorDescriptionPartialStep
(Operator operator) Constructs a partial step from anOperator
(a step template). -
Method Summary
Modifier and TypeMethodDescriptionmakeStep
(Substitution substitution) Given a substitution that specific values for all of this step's parameters, this method will return theStep
object that this object represents.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
-
operator
The operator of which this step is an instance (or null if this step is not an instance of any operator) -
parameters
All the variables used in this step -
preconditions
An array of this step's preconditions -
effects
An array of this step's effects
-
-
Constructor Details
-
PartialStep
Constructs a partial step from anOperator
(a step template).- Parameters:
operator
- the operator of which this step will be an instance
-
-
Method Details
-
toString
-
toString
Description copied from interface:Partial
Returns a string representation of this object in which all variables which have values in the given substitution have been replaced with those values. -
makeStep
Given a substitution that specific values for all of this step's parameters, this method will return theStep
object that this object represents.- Parameters:
substitution
- a substitution containing values for all of this step's parameters- Returns:
- a step
-