Ignore:
Timestamp:
04/12/12 14:08:05 (13 years ago)
Author:
piontek
Message:
 
File:
1 edited

Legend:

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

    r163 r256  
    11package example.localplugin; 
    22 
     3import java.util.HashMap; 
     4import java.util.List; 
    35import java.util.Map; 
    46 
     
    1315import schedframe.scheduling.utils.ResourceParameterName; 
    1416import test.rewolucja.GSSIMJobInterface; 
     17import test.rewolucja.resources.ProcessingElements; 
    1518import test.rewolucja.resources.manager.interfaces.ResourceManagerInterface; 
     19import test.rewolucja.resources.physical.implementation.Processor; 
    1620import test.rewolucja.scheduling.JobRegistry; 
    1721import test.rewolucja.scheduling.plan.AllocationNew; 
     
    6165        } 
    6266         
     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         
    6378        public void addToSchedulingPlan(SchedulingPlanNew plan, TaskInterface<?> task, Map<ResourceParameterName, ResourceUnit> choosenResources ){ 
    6479                 
Note: See TracChangeset for help on using the changeset viewer.