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