Revision 1382,
869 bytes
checked in by wojtekp, 11 years ago
(diff) |
|
-
Property svn:mime-type set to
text/plain
|
Rev | Line | |
---|
[477] | 1 | package example.timeestimation; |
---|
| 2 | |
---|
[1382] | 3 | import java.util.Map; |
---|
| 4 | |
---|
| 5 | import dcworms.schedframe.scheduling.ExecTask; |
---|
[477] | 6 | import schedframe.Parameters; |
---|
| 7 | import schedframe.PluginConfiguration; |
---|
[1382] | 8 | import schedframe.events.scheduling.SchedulingEvent; |
---|
| 9 | import schedframe.resources.units.ResourceUnit; |
---|
| 10 | import schedframe.resources.units.ResourceUnitName; |
---|
[477] | 11 | import schedframe.scheduling.plugin.estimation.ExecutionTimeEstimationPlugin; |
---|
| 12 | |
---|
[1382] | 13 | public abstract class BaseTimeEstimationPlugin implements ExecutionTimeEstimationPlugin { |
---|
| 14 | |
---|
[477] | 15 | public PluginConfiguration getConfiguration() { |
---|
| 16 | return null; |
---|
| 17 | } |
---|
| 18 | |
---|
| 19 | public String getName() { |
---|
| 20 | return getClass().getName(); |
---|
| 21 | } |
---|
| 22 | |
---|
| 23 | public void init(Parameters parameters) { |
---|
| 24 | } |
---|
[1382] | 25 | |
---|
| 26 | public double estimateMigrationTime(SchedulingEvent event, ExecTask task, |
---|
| 27 | Map<ResourceUnitName, ResourceUnit> srcResources, Map<ResourceUnitName, ResourceUnit> dstResources) { |
---|
| 28 | return 0; |
---|
| 29 | } |
---|
[477] | 30 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.