Package edu.uky.ai.planning
Class Step
java.lang.Object
edu.uky.ai.planning.Step
- All Implemented Interfaces:
Comparable<Step>
A step is a single ground action in a plan which changes the world's state.
- Author:
- Stephen G. Ware
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal PropositionWhat becomes true after the step has been takenfinal StringThe name of the stepfinal PropositionWhat must be true before the step can be taken -
Constructor Summary
ConstructorsConstructorDescriptionStep(String name, Proposition precondition, Proposition effect) Constructs a new step. -
Method Summary
-
Field Details
-
name
The name of the step -
precondition
What must be true before the step can be taken -
effect
What becomes true after the step has been taken
-
-
Constructor Details
-
Step
Constructs a new step.- Parameters:
name- the name of the stepprecondition- the precondition (must be ground)effect- the effect (must be ground)- Throws:
IllegalArgumentException- if either the precodition or effect are not ground
-
-
Method Details
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<Step>
-