package test.rewolucja.scheduling.plan; import java.util.ArrayList; import schedframe.scheduling.plan.AllocationInterface; import schedframe.scheduling.plan.impl.ScheduledTask; import test.rewolucja.GSSIMJobInterface; public class ScheduledTaskNew extends ScheduledTask implements ScheduledTaskInterfaceNew{ protected GSSIMJobInterface task; protected ArrayList allocationList; public ScheduledTaskNew(){ super(); allocationList = new ArrayList(); } public ScheduledTaskNew(org.qcg.broker.schemas.schedulingplan.Task value){ super(value); allocationList = new ArrayList(); } public ScheduledTaskNew(GSSIMJobInterface task){ super(); this.task = task; allocationList = new ArrayList(); } public void addAllocation( AllocationInterface allocation) throws IndexOutOfBoundsException { super.addAllocation(allocation); allocationList.add( (AllocationNew)allocation); } public void addAllocation(int index, AllocationInterface allocation) throws IndexOutOfBoundsException { super.addAllocation(index, allocation); allocationList.add(index, (AllocationNew)allocation); } public ArrayList getAllocations() { return this.allocationList; } public void setAllocation(int index, AllocationInterface allocation) throws IndexOutOfBoundsException { super.setAllocation(index, allocation); allocationList.set(index, (AllocationNew)allocation); } public GSSIMJobInterface getTask(){ return this.task; } }