Rev 1535 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1535 | Rev 1564 | ||
---|---|---|---|
1 | package dongfang.mkt.frames; |
1 | package dongfang.mkt.frames; |
2 | 2 | ||
3 | import java.io.IOException; |
3 | import java.io.IOException; |
4 | - | ||
5 | import dongfang.mkt.RequestFrameVisitor; |
4 | |
6 | 5 | ||
7 | public class UniversalWriteParamSetRequestFrame extends RequestFrame { |
6 | public class UniversalWriteParamSetRequestFrame extends RequestFrame { |
8 | private int[] data; |
7 | private int[] data; |
9 | private int configurationSetNumber; |
8 | private int configurationSetNumber; |
10 | private int configurationVersionNumber; |
9 | private int configurationVersionNumber; |
11 | 10 | ||
12 | public UniversalWriteParamSetRequestFrame(int configurationVersionNumber, int[] data) { |
11 | public UniversalWriteParamSetRequestFrame(int configurationVersionNumber, int[] data) { |
13 | super(FC_ADDRESS); |
12 | super(FC_ADDRESS); |
14 | this.configurationVersionNumber = configurationVersionNumber; |
13 | this.configurationVersionNumber = configurationVersionNumber; |
15 | this.data = data; |
14 | this.data = data; |
16 | } |
15 | } |
17 | 16 | ||
18 | @Override |
17 | @Override |
19 | public void accept(RequestFrameVisitor o) throws IOException { |
18 | public void accept(RequestFrameVisitor o) throws IOException { |
20 | o.visit(this); |
19 | o.visit(this); |
21 | } |
20 | } |
22 | 21 | ||
23 | public int getConfigurationSetNumber() { |
22 | public int getConfigurationSetNumber() { |
24 | return configurationSetNumber; |
23 | return configurationSetNumber; |
25 | } |
24 | } |
26 | 25 | ||
27 | public void setConfigurationSetNumber(int n) { |
26 | public void setConfigurationSetNumber(int n) { |
28 | this.configurationSetNumber = n ; |
27 | this.configurationSetNumber = n ; |
29 | } |
28 | } |
30 | 29 | ||
31 | public int getConfigurationVersionNumber() { |
30 | public int getConfigurationVersionNumber() { |
32 | return configurationVersionNumber; |
31 | return configurationVersionNumber; |
33 | } |
32 | } |
- | 33 | ||
- | 34 | public int getDataLength() { |
|
- | 35 | return data.length; |
|
- | 36 | } |
|
34 | 37 | ||
35 | public int[] getData() { |
38 | public int[] getData() { |
36 | return data; |
39 | return data; |
37 | } |
40 | } |
38 | } |
41 | } |
39 | 42 |