- Timestamp:
- 04/12/12 14:08:05 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
xssim/branches/tpiontek/src/example/localplugin/BaseLocalPlugin.java
r163 r256 1 1 package example.localplugin; 2 2 3 import java.util.HashMap; 4 import java.util.List; 3 5 import java.util.Map; 4 6 … … 13 15 import schedframe.scheduling.utils.ResourceParameterName; 14 16 import test.rewolucja.GSSIMJobInterface; 17 import test.rewolucja.resources.ProcessingElements; 15 18 import test.rewolucja.resources.manager.interfaces.ResourceManagerInterface; 19 import test.rewolucja.resources.physical.implementation.Processor; 16 20 import test.rewolucja.scheduling.JobRegistry; 17 21 import test.rewolucja.scheduling.plan.AllocationNew; … … 61 65 } 62 66 67 public void addToSchedulingPlan(SchedulingPlanNew plan, TaskInterface<?> task, List<Processor> cpus){ 68 69 Map<ResourceParameterName, ResourceUnit> map = new HashMap<ResourceParameterName, ResourceUnit>(); 70 71 ProcessingElements result = new ProcessingElements(); 72 result.addAll( cpus); 73 map.put(ResourceParameterName.PROCESSINGELEMENTS, result); 74 75 addToSchedulingPlan(plan, task, map); 76 } 77 63 78 public void addToSchedulingPlan(SchedulingPlanNew plan, TaskInterface<?> task, Map<ResourceParameterName, ResourceUnit> choosenResources ){ 64 79
Note: See TracChangeset
for help on using the changeset viewer.