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 { |
1573 | - | 9 | private char[] name; |
1535 | - | 10 | private int[] data; |
11 | private int configurationSetNumber; |
||
12 | private int configurationVersionNumber; |
||
13 | |||
1573 | - | 14 | public UniversalWriteParamSetRequestFrame(int configurationVersionNumber, char[] name, int[] data) { |
1535 | - | 15 | super(FC_ADDRESS); |
16 | this.configurationVersionNumber = configurationVersionNumber; |
||
1573 | - | 17 | this.name = name; |
1535 | - | 18 | this.data = data; |
19 | } |
||
20 | |||
21 | @Override |
||
22 | public void accept(RequestFrameVisitor o) throws IOException { |
||
23 | o.visit(this); |
||
24 | } |
||
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 | |||
1564 | - | 38 | public int getDataLength() { |
39 | return data.length; |
||
40 | } |
||
1573 | - | 41 | |
1535 | - | 42 | public int[] getData() { |
43 | return data; |
||
44 | } |
||
1573 | - | 45 | |
46 | public char[] getName() { |
||
47 | return name; |
||
48 | } |
||
1535 | - | 49 | } |