Revision 104,
487 bytes
checked in by wojtekp, 13 years ago
(diff) |
|
-
Property svn:mime-type set to
text/plain
|
Line | |
---|
1 | package test.rewolucja.energy.profile; |
---|
2 | |
---|
3 | |
---|
4 | public enum ProcessorFrequencyState { |
---|
5 | CPU_FREQ_3(3000, 350), |
---|
6 | CPU_FREQ_2_66(2660, 343), |
---|
7 | CPU_FREQ_2_33(2330, 337), |
---|
8 | CPU_FREQ_2(2000, 330); |
---|
9 | |
---|
10 | protected double frequency; |
---|
11 | protected double powerUsage; |
---|
12 | |
---|
13 | private ProcessorFrequencyState(double freq, double powerUsage){ |
---|
14 | this.frequency = freq; |
---|
15 | this.powerUsage = powerUsage; |
---|
16 | } |
---|
17 | |
---|
18 | public double getFrequency() { |
---|
19 | return frequency; |
---|
20 | } |
---|
21 | |
---|
22 | public double getPowerUsage() { |
---|
23 | return powerUsage; |
---|
24 | } |
---|
25 | |
---|
26 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.