1
2
3
4
5
6
7
8
9 package bexee.model.activity;
10
11 import java.util.List;
12
13 /***
14 * A sequence structured activity. The contained activities will be executed in
15 * the order they have been added to this sequence.
16 *
17 * @author Patric Fornasier
18 * @author Pawel Kowalski
19 * @version $Revision: 1.1 $, $Date: 2004/12/15 14:18:11 $
20 */
21 public interface Sequence extends Activity {
22
23 //***************************************************/
24
25 //***************************************************/
26 /***
27 * Add an activity to the activities contained in this sequence structured
28 * activitiy. The added activity will be appended to the end of the
29 * activities list.
30 *
31 * @param activity
32 * an <code>Activity</code> value
33 */
34 public void addActivity(Activity activity);
35
36 /***
37 * Add an activity to the activities contained in this sequence structured
38 * activitiy. The added activity will be added at the position specified.
39 *
40 * @param position
41 * an <code>int</code> value
42 * @param activity
43 * an <code>Activity</code> value
44 */
45 public void addActivity(int position, Activity activity);
46
47 /***
48 * Set the whole list of activities.
49 *
50 * @uml.property name="activities"
51 * @uml.associationEnd multiplicity="(0 -1)" javaType="java.util.Collection"
52 * aggregation= "composite"
53 * elementType="bexee.model.activity.Activity"
54 * @param activities
55 * a <code>List</code> value
56 */
57 public void setActivities(List activities);
58
59 /***
60 * Get the list of all contained activities.
61 *
62 * @return a <code>List</code> value
63 */
64 public List getActivities();
65 }