Revision 1382,
869 bytes
checked in by wojtekp, 11 years ago
(diff) |
|
-
Property svn:mime-type set to
text/plain
|
Line | |
---|
1 | package example.timeestimation; |
---|
2 | |
---|
3 | import java.util.Map; |
---|
4 | |
---|
5 | import dcworms.schedframe.scheduling.ExecTask; |
---|
6 | import schedframe.Parameters; |
---|
7 | import schedframe.PluginConfiguration; |
---|
8 | import schedframe.events.scheduling.SchedulingEvent; |
---|
9 | import schedframe.resources.units.ResourceUnit; |
---|
10 | import schedframe.resources.units.ResourceUnitName; |
---|
11 | import schedframe.scheduling.plugin.estimation.ExecutionTimeEstimationPlugin; |
---|
12 | |
---|
13 | public abstract class BaseTimeEstimationPlugin implements ExecutionTimeEstimationPlugin { |
---|
14 | |
---|
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 | } |
---|
25 | |
---|
26 | public double estimateMigrationTime(SchedulingEvent event, ExecTask task, |
---|
27 | Map<ResourceUnitName, ResourceUnit> srcResources, Map<ResourceUnitName, ResourceUnit> dstResources) { |
---|
28 | return 0; |
---|
29 | } |
---|
30 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.