Revision 1396,
1021 bytes
checked in by wojtekp, 11 years ago
(diff) |
|
-
Property svn:mime-type set to
text/plain
|
Rev | Line | |
---|
[477] | 1 | package example.energy; |
---|
| 2 | |
---|
| 3 | import schedframe.Parameters; |
---|
| 4 | import schedframe.PluginConfiguration; |
---|
| 5 | import schedframe.resources.computing.profiles.energy.EnergyEvent; |
---|
| 6 | import schedframe.resources.computing.profiles.energy.power.plugin.EnergyEstimationPlugin; |
---|
[1207] | 7 | import schedframe.resources.devices.PhysicalResource; |
---|
[477] | 8 | import schedframe.scheduling.manager.tasks.JobRegistry; |
---|
| 9 | |
---|
| 10 | public abstract class BaseEnergyEstimationPlugin implements EnergyEstimationPlugin { |
---|
| 11 | |
---|
| 12 | @Override |
---|
| 13 | public PluginConfiguration getConfiguration() { |
---|
| 14 | // TODO Auto-generated method stub |
---|
| 15 | return null; |
---|
| 16 | } |
---|
| 17 | |
---|
| 18 | @Override |
---|
[1396] | 19 | public double estimateAirflow(EnergyEvent event, JobRegistry jobRegistry, PhysicalResource resource) { |
---|
[477] | 20 | throw new RuntimeException("Not implemented."); |
---|
| 21 | } |
---|
| 22 | |
---|
| 23 | @Override |
---|
[1207] | 24 | public double estimateTemperature(EnergyEvent event, JobRegistry jobRegistry, PhysicalResource resource) { |
---|
[477] | 25 | throw new RuntimeException("Not implemented."); |
---|
| 26 | } |
---|
| 27 | |
---|
| 28 | public void init(Parameters parameters) { |
---|
| 29 | |
---|
| 30 | } |
---|
| 31 | |
---|
| 32 | public String getName() { |
---|
| 33 | return getClass().getName(); |
---|
| 34 | } |
---|
| 35 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.