Package edu.uky.ai.planning
Class ForwardPlan
java.lang.Object
edu.uky.ai.planning.ForwardPlan
A totally ordered plan which is built from beginning (first step) to end
last step). Note that this data structure is immutable. The
addStep(Step)
method returns a new plan with the given step added
to the end without modifying the plan on which that method was called.- Author:
- Stephen G. Ware
-
Constructor Details
-
ForwardPlan
public ForwardPlan()Constructs a new plan with 0 steps.
-
-
Method Details
-
toString
-
size
public int size()Description copied from interface:Plan
Returns the number of steps in the plan. -
iterator
-
addStep
Returns a new plan with the given step added at the end.- Parameters:
step
- the next step to take- Returns:
- a new plan whose last step is the given step
-