Revision 258,
672 bytes
checked in by piontek, 13 years ago
(diff) |
|
-
Property svn:mime-type set to
text/plain
|
Line | |
---|
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; |
---|
9 | protected int speed; |
---|
10 | |
---|
11 | public PState(PStateType name, double frequency, double voltage, double power, int speed) { |
---|
12 | super(); |
---|
13 | this.name = name; |
---|
14 | this.frequency = frequency; |
---|
15 | this.voltage = voltage; |
---|
16 | this.power = power; |
---|
17 | this.speed = speed; |
---|
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 | } |
---|
32 | public int getSpeed() { |
---|
33 | return speed; |
---|
34 | } |
---|
35 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.