Ignore:
Timestamp:
06/26/14 14:18:01 (11 years ago)
Author:
wojtekp
Message:
 
Location:
DCWoRMS/branches/coolemall/src/example/timeestimation/coolemall
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • DCWoRMS/branches/coolemall/src/example/timeestimation/coolemall/CPUFreqScalingPhaseTimeEstimationPlugin.java

    r1364 r1396  
    22 
    33import java.util.Map; 
    4  
    5 import org.joda.time.DateTime; 
    64 
    75import schedframe.events.scheduling.SchedulingEvent; 
     
    1412import schedframe.resources.units.ResourceUnitName; 
    1513import schedframe.resources.units.StandardResourceUnitName; 
    16 import schedframe.scheduling.tasks.phases.ResourceConsumption; 
    1714import dcworms.schedframe.scheduling.ExecTask; 
    18 import dcworms.schedframe.scheduling.Executable; 
    1915import example.timeestimation.BaseTimeEstimationPlugin; 
    2016 
     
    2622                        double completionPercentage) { 
    2723                 
    28                 String taskFreqString = task.getCurrentResourceConsumption().getReferenceHardware().get("cpu_maxfreq"); 
     24                String taskFreqString = task.getExecutionProfile().getCurrentResourceConsumption().getReferenceHardware().get("cpu_maxfreq"); 
    2925                double taskFreq = Double.valueOf(taskFreqString); 
    3026                 
     
    4945                        currentFrequency = taskFreq; 
    5046 
    51                 double execTime = (1 - completionPercentage/100) * task.getCurrentResourceConsumption().getDuration() * (taskFreq / currentFrequency); 
     47                double execTime = (1 - completionPercentage/100) * task.getExecutionProfile().getCurrentResourceConsumption().getDuration() * (taskFreq / currentFrequency); 
    5248 
    5349                // if the result is very close to 0, but less then one millisecond then round this result to 0.001 
  • DCWoRMS/branches/coolemall/src/example/timeestimation/coolemall/PhaseTimeEstimationPlugin.java

    r1253 r1396  
    2525                Executable exec = (Executable) task; 
    2626 
    27                 ResourceConsumption resConsumption = exec.getResourceConsumptionProfile().getCurrentResourceConsumption(); 
     27                ResourceConsumption resConsumption = exec.getExecutionProfile().getCurrentResourceConsumption(); 
    2828 
    2929                double execTime = (1 - completionPercentage/100) * resConsumption.getDuration(); 
Note: See TracChangeset for help on using the changeset viewer.