Revision 258,
672 bytes
checked in by piontek, 13 years ago
(diff) |
|
-
Property svn:mime-type set to
text/plain
|
Rev | Line | |
---|
[104] | 1 | package test.rewolucja.energy.profile; |
---|
| 2 | |
---|
| 3 | public class PState { |
---|
| 4 | |
---|
| 5 | protected PStateType name; |
---|
| 6 | protected double frequency; |
---|
| 7 | protected double voltage; |
---|
| 8 | protected double power; |
---|
[257] | 9 | protected int speed; |
---|
[104] | 10 | |
---|
[257] | 11 | public PState(PStateType name, double frequency, double voltage, double power, int speed) { |
---|
[104] | 12 | super(); |
---|
| 13 | this.name = name; |
---|
| 14 | this.frequency = frequency; |
---|
| 15 | this.voltage = voltage; |
---|
| 16 | this.power = power; |
---|
[258] | 17 | this.speed = speed; |
---|
[104] | 18 | } |
---|
| 19 | |
---|
| 20 | public PStateType getName() { |
---|
| 21 | return name; |
---|
| 22 | } |
---|
| 23 | public double getFrequency() { |
---|
| 24 | return frequency; |
---|
| 25 | } |
---|
| 26 | public double getVoltage() { |
---|
| 27 | return voltage; |
---|
| 28 | } |
---|
| 29 | public double getPower() { |
---|
| 30 | return power; |
---|
| 31 | } |
---|
[257] | 32 | public int getSpeed() { |
---|
| 33 | return speed; |
---|
| 34 | } |
---|
[104] | 35 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.