Ignore:
Timestamp:
03/15/12 11:14:52 (13 years ago)
Author:
wojtekp
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • xssim/trunk/src/example/localplugin/BaseLocalPlugin.java

    r104 r129  
    8989        } 
    9090         
     91        public void addToSchedulingPlan(SchedulingPlanNew plan, TaskInterface<?> task){ 
     92                 
     93                AllocationNew allocation = new AllocationNew(); 
     94                allocation.setProcessesCount(1); 
     95                allocation.setProviderName(null); 
     96                 
     97                ScheduledTaskNew scheduledTask = new ScheduledTaskNew(task); 
     98                scheduledTask.setTaskId(task.getId()); 
     99                scheduledTask.setJobId(task.getJobId()); 
     100                scheduledTask.addAllocation(allocation);                 
     101                 
     102                plan.addTask(scheduledTask); 
     103        } 
    91104 
    92105} 
Note: See TracChangeset for help on using the changeset viewer.