3 using System.Collections.Generic;
4 using System.Collections.ObjectModel;
12 protected internal IList<Action> actionSequence;
13 private IList<object> actionsObjects;
15 public Plan(
string plan,
string error) :
base(plan, error) { }
17 public virtual IList<Action> Actions
21 if (actionSequence ==
null)
23 actionSequence =
new List<Action>();
26 return new ReadOnlyCollection<Action>(actionSequence);
30 public virtual IList<object> ActionsObjects
34 if (actionsObjects ==
null)
36 actionsObjects =
new List<object>();
39 foreach (
Action a
in Actions)
41 object obj = mapper.GetObject(a.Name);
44 actionsObjects.Add(obj);
48 return actionsObjects;
52 public void StoreAction(
string action)
54 actionSequence.Add(
new Action(action));