public class Plan extends Object
| Constructor and Description | 
|---|
| Plan()Creates a new instance of Plan | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addStep(Action[] a)Adds an action to the end of the plan | 
| protected boolean | containedIn(List<Plan> planList)Returns true if an ArrayList of plans contains a plan equivalent to this one | 
| Action[] | getStep(int index)Returns a specified action in the plan | 
| protected boolean | match(Plan p2)Returns true if this plan is equivalent to another | 
| int | numSteps()Returns the number of steps (actions) in the plan | 
| String | toString()Converts the plan to a String | 
public int numSteps()
public void addStep(Action[] a)
a - public Action[] getStep(int index)
index - protected boolean match(Plan p2)
p2 - Plan being checked for equivalence to this oneprotected boolean containedIn(List<Plan> planList)
planList - ArrayList containing Plan objects that are to be tested for
        equivalence to this one.