package test.rewolucja.scheduling.plan; import java.util.ArrayList; import schedframe.scheduling.plan.ScheduledTaskInterface; import schedframe.scheduling.plan.impl.SchedulingPlan; public class SchedulingPlanNew extends SchedulingPlan implements SchedulingPlanInterfaceNew { protected ArrayList taskList; public SchedulingPlanNew(){ super(); taskList = new ArrayList(); } public SchedulingPlanNew(org.qcg.broker.schemas.schedulingplan.SchedulingPlan value){ super(value); taskList = new ArrayList(); } public void addTask(ScheduledTaskInterface task) throws IndexOutOfBoundsException { super.addTask(task); taskList.add((ScheduledTaskNew)task); } public void addTask(int index, ScheduledTaskInterface task) throws IndexOutOfBoundsException { super.addTask(index, task); taskList.add(index, (ScheduledTaskNew)task); } public ArrayList getTasks() { return this.taskList; } }