Revision 826,
568 bytes
checked in by wojtekp, 12 years ago
(diff) |
|
-
Property svn:mime-type set to
text/plain
|
Rev | Line | |
---|
[826] | 1 | package test.article2.recs.plugins.energy; |
---|
| 2 | |
---|
| 3 | import schedframe.Parameters; |
---|
| 4 | import schedframe.resources.computing.ComputingResource; |
---|
| 5 | import schedframe.resources.computing.profiles.energy.EnergyEvent; |
---|
| 6 | import schedframe.scheduling.manager.tasks.JobRegistry; |
---|
| 7 | |
---|
| 8 | public class AmdCpuEEP extends RecsCpuBaseEEP { |
---|
| 9 | |
---|
| 10 | public double estimateTemperature(EnergyEvent event, JobRegistry jobRegistry, ComputingResource resource) { |
---|
| 11 | return cpuTypeConstant + inletTemperature + 200; |
---|
| 12 | } |
---|
| 13 | |
---|
| 14 | public void init(Parameters parameters) { |
---|
| 15 | cpuTypeConstant = 10; |
---|
| 16 | inletTemperature = 20; |
---|
| 17 | } |
---|
| 18 | } |
---|
| 19 | |
---|
Note: See
TracBrowser
for help on using the repository browser.