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