source: xssim/src/test/rewolucja/scheduling/plan/SchedulingPlanNew.java @ 104

Revision 104, 1.0 KB checked in by wojtekp, 13 years ago (diff)
  • Property svn:mime-type set to text/plain
Line 
1package test.rewolucja.scheduling.plan;
2
3import java.util.ArrayList;
4
5import schedframe.scheduling.plan.ScheduledTaskInterface;
6import schedframe.scheduling.plan.impl.SchedulingPlan;
7
8public class SchedulingPlanNew extends SchedulingPlan implements SchedulingPlanInterfaceNew {
9
10
11        protected ArrayList<ScheduledTaskInterfaceNew> taskList;
12       
13        public SchedulingPlanNew(){
14                super();
15                taskList = new ArrayList<ScheduledTaskInterfaceNew>();
16        }
17       
18        public SchedulingPlanNew(org.qcg.broker.schemas.schedulingplan.SchedulingPlan value){
19                super(value);
20                taskList = new ArrayList<ScheduledTaskInterfaceNew>();
21        }
22
23
24        public <Task_> void addTask(ScheduledTaskInterface<Task_> task)
25                        throws IndexOutOfBoundsException {
26                super.addTask(task);
27                taskList.add((ScheduledTaskNew)task);
28
29        }
30
31        public <Task_> void addTask(int index, ScheduledTaskInterface<Task_> task)
32                        throws IndexOutOfBoundsException {
33                super.addTask(index, task);
34                taskList.add(index, (ScheduledTaskNew)task);
35        }
36
37        public ArrayList<ScheduledTaskInterfaceNew> getTasks() {
38
39                return this.taskList;
40        }
41
42
43
44}
Note: See TracBrowser for help on using the repository browser.