Changeset 1382 for DCWoRMS/branches


Ignore:
Timestamp:
06/18/14 12:22:27 (11 years ago)
Author:
wojtekp
Message:
 
Location:
DCWoRMS/branches/coolemall/src
Files:
2 edited

Legend:

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

    r477 r1382  
    11package example.timeestimation; 
    22 
     3import java.util.Map; 
     4 
     5import dcworms.schedframe.scheduling.ExecTask; 
    36import schedframe.Parameters; 
    47import schedframe.PluginConfiguration; 
     8import schedframe.events.scheduling.SchedulingEvent; 
     9import schedframe.resources.units.ResourceUnit; 
     10import schedframe.resources.units.ResourceUnitName; 
    511import schedframe.scheduling.plugin.estimation.ExecutionTimeEstimationPlugin; 
    612 
    7 public abstract class BaseTimeEstimationPlugin implements ExecutionTimeEstimationPlugin{ 
    8          
     13public abstract class BaseTimeEstimationPlugin implements ExecutionTimeEstimationPlugin { 
     14 
    915        public PluginConfiguration getConfiguration() { 
    1016                return null; 
     
    1723        public void init(Parameters parameters) { 
    1824        } 
     25 
     26        public double estimateMigrationTime(SchedulingEvent event, ExecTask task, 
     27                        Map<ResourceUnitName, ResourceUnit> srcResources, Map<ResourceUnitName, ResourceUnit> dstResources) { 
     28                return 0; 
     29        } 
    1930} 
  • DCWoRMS/branches/coolemall/src/schedframe/scheduling/plugin/estimation/ExecutionTimeEstimationPlugin.java

    r490 r1382  
    2929         * @param allocatedResources resource units allocated for task execution 
    3030         * @param task which will be executed 
    31          * @param remainingLength  
     31         * @param completionPercentage 
    3232         * @return estimated execution time of a task of specified length 
    3333         */ 
     
    3535                                                                        double completionPercentage); 
    3636         
    37  
     37         
     38        /** 
     39         *  
     40         * @param srcResources resource units to migrate from 
     41         * @param dstResources resource units to migrate to 
     42         * @param task which will be executed 
     43         * @return estimated execution time of a task of specified length 
     44         */ 
     45        public double estimateMigrationTime(SchedulingEvent event, ExecTask task, Map<ResourceUnitName, ResourceUnit> srcResources, Map<ResourceUnitName, ResourceUnit> dstResources); 
    3846} 
Note: See TracChangeset for help on using the changeset viewer.