Package edu.uky.ai.planning
Class Operator
java.lang.Object
edu.uky.ai.planning.Operator
An operator is an action template that describes one way to change the world in terms
of its precondition (what must be true before the action can be taken) and effect
(what becomes true after the action is taken).
- Author:
- Stephen G. Ware
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Proposition
What becomes true after the action is takenfinal String
The name of the actionfinal ImmutableArray<Variable>
The parameters that provide the specific details for the actionfinal Proposition
What must be true before the action can be taken -
Constructor Summary
ConstructorsConstructorDescriptionOperator
(String name, Variable[] parameters, Proposition precondition, Proposition effect) Constructs a new action template.Operator
(String name, ImmutableArray<Variable> parameters, Proposition precondition, Proposition effect) Constructs a new action template. -
Method Summary
Modifier and TypeMethodDescriptionmakeStep
(Substitution substitution) Creates a ground step (i.e.toString()
-
Field Details
-
name
The name of the action -
parameters
The parameters that provide the specific details for the action -
precondition
What must be true before the action can be taken -
effect
What becomes true after the action is taken
-
-
Constructor Details
-
Operator
public Operator(String name, ImmutableArray<Variable> parameters, Proposition precondition, Proposition effect) Constructs a new action template.- Parameters:
name
- the name of the actionparameters
- the parameters that provide specific detailprecondition
- what must be true beforeeffect
- what becomes true after
-
Operator
Constructs a new action template.- Parameters:
name
- the name of the actionparameters
- the parameters that provide specific detailprecondition
- what must be true beforeeffect
- what becomes true after
-
-
Method Details