Changeset 184
- Timestamp:
- 03/26/12 12:00:05 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
xssim/trunk/src/example/timeestimation/ExecTimeEstimationPlugin.java
r104 r184 3 3 import gssim.schedframe.scheduling.ExecTaskInterface; 4 4 5 import java.util.List;6 5 import java.util.Map; 7 6 import java.util.Properties; 8 7 9 8 import schedframe.resources.units.ResourceUnit; 10 import schedframe.scheduling.TaskInterface;11 9 import schedframe.scheduling.events.SchedulingEvent; 12 10 import schedframe.scheduling.plugin.SchedulingPluginConfiguration; 13 11 import schedframe.scheduling.utils.ResourceParameterName; 14 12 import test.rewolucja.resources.ProcessingElements; 15 import test.rewolucja.resources.physical.implementation.CPU;16 13 17 14 … … 39 36 ProcessingElements pes = (ProcessingElements) allocatedResources.get(ResourceParameterName.PROCESSINGELEMENTS); 40 37 38 // obtain single pe speed 39 int speed = pes.getSpeed(); 41 40 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(); 46 43 47 44 double remainingLength = task.getLength() * (1- completionPercentage); … … 69 66 70 67 public void init(Properties properties) { 71 /*72 * This method should be called by AbstractAllocationPolicy or any class that extends73 * AbstractAllocationPolicy. Default implementation does not invoke it.74 */75 68 } 76 69
Note: See TracChangeset
for help on using the changeset viewer.