Changeset 1382 for DCWoRMS/branches
- Timestamp:
- 06/18/14 12:22:27 (11 years ago)
- Location:
- DCWoRMS/branches/coolemall/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/branches/coolemall/src/example/timeestimation/BaseTimeEstimationPlugin.java
r477 r1382 1 1 package example.timeestimation; 2 2 3 import java.util.Map; 4 5 import dcworms.schedframe.scheduling.ExecTask; 3 6 import schedframe.Parameters; 4 7 import schedframe.PluginConfiguration; 8 import schedframe.events.scheduling.SchedulingEvent; 9 import schedframe.resources.units.ResourceUnit; 10 import schedframe.resources.units.ResourceUnitName; 5 11 import schedframe.scheduling.plugin.estimation.ExecutionTimeEstimationPlugin; 6 12 7 public abstract class BaseTimeEstimationPlugin implements ExecutionTimeEstimationPlugin {8 13 public abstract class BaseTimeEstimationPlugin implements ExecutionTimeEstimationPlugin { 14 9 15 public PluginConfiguration getConfiguration() { 10 16 return null; … … 17 23 public void init(Parameters parameters) { 18 24 } 25 26 public double estimateMigrationTime(SchedulingEvent event, ExecTask task, 27 Map<ResourceUnitName, ResourceUnit> srcResources, Map<ResourceUnitName, ResourceUnit> dstResources) { 28 return 0; 29 } 19 30 } -
DCWoRMS/branches/coolemall/src/schedframe/scheduling/plugin/estimation/ExecutionTimeEstimationPlugin.java
r490 r1382 29 29 * @param allocatedResources resource units allocated for task execution 30 30 * @param task which will be executed 31 * @param remainingLength31 * @param completionPercentage 32 32 * @return estimated execution time of a task of specified length 33 33 */ … … 35 35 double completionPercentage); 36 36 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); 38 46 }
Note: See TracChangeset
for help on using the changeset viewer.