Changeset 481 for DCWoRMS/trunk/src/schedframe/scheduling/plan
- Timestamp:
- 10/08/12 10:23:45 (13 years ago)
- Location:
- DCWoRMS/trunk/src/schedframe/scheduling/plan
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/trunk/src/schedframe/scheduling/plan/ScheduledTaskInterface.java
r478 r481 4 4 5 5 import schedframe.DescriptionContainer; 6 import schedframe.scheduling.tasks. WorkloadUnit;6 import schedframe.scheduling.tasks.TaskInterface; 7 7 8 8 public interface ScheduledTaskInterface<T> extends DescriptionContainer<T> { … … 190 190 191 191 192 public ArrayList<AllocationInterface > getAllocations();192 public ArrayList<AllocationInterface<?>> getAllocations(); 193 193 194 public WorkloadUnitgetTask();194 public TaskInterface<?> getTask(); 195 195 196 196 } -
DCWoRMS/trunk/src/schedframe/scheduling/plan/SchedulingPlanInterface.java
r477 r481 99 99 100 100 101 public ArrayList<ScheduledTaskInterface > getTasks();101 public ArrayList<ScheduledTaskInterface<?>> getTasks(); 102 102 } -
DCWoRMS/trunk/src/schedframe/scheduling/plan/impl/ScheduledTask.java
r478 r481 6 6 import org.exolab.castor.xml.MarshalException; 7 7 import org.exolab.castor.xml.ValidationException; 8 import org.qcg.broker.schemas.schedulingplan.types.AllocationStatus; 8 9 9 10 import schedframe.scheduling.plan.AllocationInterface; 10 11 import schedframe.scheduling.plan.ScheduledTaskInterface; 11 12 import schedframe.scheduling.plan.ScheduledTimeInterface; 12 import schedframe.scheduling.tasks.WorkloadUnit; 13 14 15 import org.qcg.broker.schemas.schedulingplan.types.AllocationStatus; 13 import schedframe.scheduling.tasks.TaskInterface; 16 14 17 15 public class ScheduledTask implements ScheduledTaskInterface<org.qcg.broker.schemas.schedulingplan.Task> { … … 22 20 public ScheduledTask(){ 23 21 t = new org.qcg.broker.schemas.schedulingplan.Task(); 24 allocationList = new ArrayList<AllocationInterface >();22 allocationList = new ArrayList<AllocationInterface<?>>(); 25 23 } 26 24 27 25 public ScheduledTask(org.qcg.broker.schemas.schedulingplan.Task value){ 28 26 t = value; 29 allocationList = new ArrayList<AllocationInterface >();27 allocationList = new ArrayList<AllocationInterface<?>>(); 30 28 } 31 29 … … 178 176 179 177 180 protected WorkloadUnittask;181 protected ArrayList<AllocationInterface > allocationList;178 protected TaskInterface<?> task; 179 protected ArrayList<AllocationInterface<?>> allocationList; 182 180 183 public ScheduledTask( WorkloadUnittask){181 public ScheduledTask(TaskInterface<?> task){ 184 182 this(); 185 183 this.task = task; 186 184 } 187 185 188 public ArrayList<AllocationInterface > getAllocations() {186 public ArrayList<AllocationInterface<?>> getAllocations() { 189 187 return this.allocationList; 190 188 } 191 189 192 public WorkloadUnitgetTask(){190 public TaskInterface<?> getTask(){ 193 191 return this.task; 194 192 } -
DCWoRMS/trunk/src/schedframe/scheduling/plan/impl/SchedulingPlan.java
r477 r481 18 18 public SchedulingPlan(){ 19 19 sp = new org.qcg.broker.schemas.schedulingplan.SchedulingPlan(); 20 taskList = new ArrayList<ScheduledTaskInterface >();20 taskList = new ArrayList<ScheduledTaskInterface<?>>(); 21 21 } 22 22 23 23 public SchedulingPlan(org.qcg.broker.schemas.schedulingplan.SchedulingPlan value){ 24 24 sp = value; 25 taskList = new ArrayList<ScheduledTaskInterface >();25 taskList = new ArrayList<ScheduledTaskInterface<?>>(); 26 26 } 27 27 … … 106 106 107 107 108 protected ArrayList<ScheduledTaskInterface > taskList;108 protected ArrayList<ScheduledTaskInterface<?>> taskList; 109 109 110 public ArrayList<ScheduledTaskInterface > getTasks() {110 public ArrayList<ScheduledTaskInterface<?>> getTasks() { 111 111 112 112 return this.taskList;
Note: See TracChangeset
for help on using the changeset viewer.