Changeset 184 for xssim/trunk


Ignore:
Timestamp:
03/26/12 12:00:05 (13 years ago)
Author:
wojtekp
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • xssim/trunk/src/example/timeestimation/ExecTimeEstimationPlugin.java

    r104 r184  
    33import gssim.schedframe.scheduling.ExecTaskInterface; 
    44 
    5 import java.util.List; 
    65import java.util.Map; 
    76import java.util.Properties; 
    87 
    98import schedframe.resources.units.ResourceUnit; 
    10 import schedframe.scheduling.TaskInterface; 
    119import schedframe.scheduling.events.SchedulingEvent; 
    1210import schedframe.scheduling.plugin.SchedulingPluginConfiguration; 
    1311import schedframe.scheduling.utils.ResourceParameterName; 
    1412import test.rewolucja.resources.ProcessingElements; 
    15 import test.rewolucja.resources.physical.implementation.CPU; 
    1613 
    1714 
     
    3936                ProcessingElements pes = (ProcessingElements) allocatedResources.get(ResourceParameterName.PROCESSINGELEMENTS); 
    4037 
     38                // obtain single pe speed 
     39                int speed = pes.getSpeed(); 
    4140 
    42                 int speed = pes.getSpeed(); 
    43                 int cnt = pes.getAmount(); 
    44                  
    45                 // number of used processors   
     41                // number of used pe   
     42                int cnt = pes.getUsedAmount(); 
    4643 
    4744                double remainingLength =  task.getLength() * (1- completionPercentage); 
     
    6966 
    7067        public void init(Properties properties) { 
    71                 /*  
    72                  * This method should be called by AbstractAllocationPolicy or any class that extends 
    73                  * AbstractAllocationPolicy. Default implementation does not invoke it. 
    74                  */ 
    7568        } 
    7669 
Note: See TracChangeset for help on using the changeset viewer.